diff --git a/.gitignore b/.gitignore index 56d22e5..e73f789 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /unittest-cpp-1.6.0-b69b63a.tar.gz /unittest-cpp-1.6.1-b69b63a.tar.gz /unittest-cpp-2.0.0-b69b63a.tar.gz +/unittest-cpp-2.0.0.tar.gz diff --git a/fix_version_2.0.0.patch b/fix_version_2.0.0.patch new file mode 100644 index 0000000..f7249fc --- /dev/null +++ b/fix_version_2.0.0.patch @@ -0,0 +1,12 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ + + AC_PREREQ([2.69]) + AC_INIT([UnitTest++], +- m4_esyscmd_s([git describe --tags | cut -c2-]), ++ [2.0.0], + [pjohnmeyer@gmail.com], + [unittest-cpp]) + + diff --git a/sources b/sources index b2cb5aa..1905b5b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unittest-cpp-2.0.0-b69b63a.tar.gz) = bac1371a2c1a0a67eb0899208afeab318e10edf093460624bcc1fdcfcf7f89e49816aaebe3c7fe8feb58c90b1cdea29a0ab67efd1a38e2aebc2588de6a1d7a28 +SHA512 (unittest-cpp-2.0.0.tar.gz) = 39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab diff --git a/unittest-cpp.spec b/unittest-cpp.spec index 15b6e3c..1b07cd7 100644 --- a/unittest-cpp.spec +++ b/unittest-cpp.spec @@ -1,29 +1,20 @@ - %global _hardened_build 1 -%global commit b69b63ac2bf4a967b35e853026abb68b3f8442ad -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commitdate 20160301 -%global gitversion .%{commitdate}git%{shortcommit} %global oldname UnitTest++ Name: unittest-cpp Version: 2.0.0 -Release: 4%{?dist} +Release: 23%{?dist} Summary: Lightweight unit testing framework for C++ License: MIT -Group: Development/Libraries -# old Url: http://sf.net/projects/unittest-cpp URL: https://github.com/%{name}/%{name} -Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz - -# 2013: unittest++.pc file courtesy of Luke Benstead -# 2016: upstream ships its own file instead. -#Source1: unittest++.pc - +Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz # documentation from 1.4 tarball: docs/UnitTest++.html -Source2: %{name}.html +Source1: %{name}.html +# Fix configure.ac version test +Patch0: fix_version_2.0.0.patch +BuildRequires: make BuildRequires: gcc-c++ BuildRequires: autoconf BuildRequires: libtool @@ -35,7 +26,6 @@ very important aspects of %{name}. %package devel Summary: Object files for development using %{name} -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -44,7 +34,6 @@ necessary for developing test programs. %package static Summary: Static library for %{name} -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description static @@ -52,60 +41,103 @@ The %{name}-static package contains the object files necessary for statically linking test programs. %prep -%setup -q -n %{name}-%{commit} -#cp -p %SOURCE1 %SOURCE2 . -cp -p %SOURCE2 . +%autosetup -p1 +cp -p %SOURCE1 . # autoreconf will complain about missing NEWS and README files touch NEWS ln README.md README # autoreconf will add a GPLv3 license text in COPYING ln LICENSE COPYING autoreconf -i -# upstream https://github.com/unittest-cpp/unittest-cpp/issues/105 -sed -i -e "s,pkgincludedir\ =\ \$(includedir)\/UnitTest++\/,pkgincludedir\ =\ \$(includedir)\/,g" Makefile.in %build %configure # rpmlint unused-direct-shlib-dependency sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool -# fill out our .pc template -#sed -i -e " -# s,^prefix=,prefix=%{_prefix},g -# s,^exec_prefix=,exec_prefix=%{_exec_prefix},g -# s,^libdir=,libdir=%{_libdir},g -# s,^includedir=,includedir=%{_includedir},g -# " unittest++.pc -make %{?_smp_mflags} +%make_build %check make check %install -#mkdir -p %{buildroot}%{_libdir} -#mkdir -p %{buildroot}%{_datadir}/pkgconfig -make DESTDIR=%{buildroot} install -#install -p -m 644 unittest++.pc %{buildroot}%{_datadir}/pkgconfig/ +%make_install rm -f %{buildroot}%{_libdir}/lib%{oldname}.la %files -%doc AUTHORS LICENSE README.md -%{_libdir}/lib%{oldname}.so.* +%doc AUTHORS README.md +%license LICENSE +%{_libdir}/lib%{oldname}.so.2* %files devel -%doc %{name}.html +%doc %{name}.html %{_includedir}/%{oldname} %{_libdir}/lib%{oldname}.so -#%{_datadir}/pkgconfig/unittest++.pc %{_libdir}/pkgconfig/UnitTest++.pc %files static %{_libdir}/lib%{oldname}.a -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 2.0.0-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 2.0.0-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 2.0.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 2.0.0-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Sat Jul 20 2024 Fedora Release Engineering - 2.0.0-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 2.0.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 2.0.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 2.0.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 2.0.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 2.0.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 2.0.0-11 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Feb 14 2020 Leigh Scott - 2.0.0-9 +- Update to 2.0.0 release + +* Fri Jan 31 2020 Fedora Release Engineering - 2.0.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 2.0.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 2.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 2.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Fri Feb 09 2018 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild