From 608e742452983a28acc481b9d387db956f03618a Mon Sep 17 00:00:00 2001 From: Packit Date: Aug 05 2020 10:44:30 +0000 Subject: Add spec-file for the distribution --- diff --git a/SPECS/catch.spec b/SPECS/catch.spec new file mode 100644 index 0000000..f93761c --- /dev/null +++ b/SPECS/catch.spec @@ -0,0 +1,170 @@ +%global debug_package %{nil} + +Name: catch +Version: 2.2.1 +Release: 2%{?dist} +Summary: A modern, C++-native, header-only, framework for unit-tests, TDD and BDD + +License: Boost +URL: https://github.com/philsquared/Catch +Source0: https://github.com/philsquared/Catch/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake make gcc-c++ /usr/bin/python3 + +Requires: cmake-filesystem + +%description +Catch stands for C++ Automated Test Cases in Headers and is a +multi-paradigm automated test framework for C++ and Objective-C (and, +maybe, C). It is implemented entirely in a set of header files, but +is packaged up as a single header for extra convenience. + + +%package devel +Summary: Development files for %{name} +Provides: %{name}-static = %{version}-%{release} + +%description devel +Catch stands for C++ Automated Test Cases in Headers and is a +multi-paradigm automated test framework for C++ and Objective-C (and, +maybe, C). It is implemented entirely in a set of header files, but +is packaged up as a single header for extra convenience. + + +%prep +%autosetup -p 1 -n Catch2-%{version} +# No python, just python3 +sed -i -e "s|COMMAND python |COMMAND python3 |" CMakeLists.txt + + +%build +%cmake . -Bbuild -DCATCH_ENABLE_WERROR=OFF +%make_build -Cbuild + + +%install +%make_install -Cbuild +rm -rf %{buildroot}/%{_docdir} + + +%check +cd build +ctest -V %{?_smp_mflags} + + +%files devel +%doc README.md CODE_OF_CONDUCT.md docs +%license LICENSE.txt +%{_includedir}/catch/ +%{_datadir}/pkgconfig/catch.pc +%{_libdir}/cmake/Catch2/ + + +%changelog +* Mon Aug 13 2018 Daniel Kopeček - 2.2.1-2 +Resolves: #1615346 - catch fails to build because of missing /usr/bin/python3 during build + +* Sun Mar 11 2018 Tom Hughes - 2.2.1-1 +- Update to 2.2.1 upstream release + +* Wed Mar 7 2018 Tom Hughes - 2.2.0-1 +- Update to 2.2.0 upstream release + +* Sat Feb 10 2018 Tom Hughes - 2.1.2-1 +- Update to 2.1.2 upstream release + +* Wed Feb 07 2018 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Jan 27 2018 Tom Hughes - 2.1.1-1 +- Update to 2.1.1 upstream release + +* Sun Jan 14 2018 Igor Gnatenko - 2.1.0-1 +- Update to 2.1.0 + +* Sun Jan 14 2018 Tom Hughes - 1.12.0-1 +- Update to 1.12.0 upstream release + +* Wed Nov 1 2017 Tom Hughes - 1.11.0-1 +- Update to 1.11.0 upstream release + +* Sun Aug 27 2017 Tom Hughes - 1.10.0-1 +- Update to 1.10.0 upstream release + +* Fri Aug 11 2017 Tom Hughes - 1.9.7-1 +- Update to 1.9.7 upstream release + +* Wed Aug 02 2017 Fedora Release Engineering - 1.9.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.9.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jun 27 2017 Tom Hughes - 1.9.6-1 +- Update to 1.9.6 upstream release + +* Fri Jun 16 2017 Tom Hughes - 1.9.5-1 +- Update to 1.9.5 upstream release + +* Tue May 16 2017 Tom Hughes - 1.9.4-1 +- Update to 1.9.4 upstream release + +* Wed Apr 26 2017 Tom Hughes - 1.9.3-1 +- Update to 1.9.3 upstream release + +* Tue Apr 25 2017 Tom Hughes - 1.9.2-1 +- Update to 1.9.2 upstream release + +* Mon Apr 10 2017 Tom Hughes - 1.9.1-1 +- Update to 1.9.1 upstream release + +* Sat Apr 8 2017 Tom Hughes - 1.9.0-1 +- Update to 1.9.0 upstream release + +* Wed Mar 15 2017 Tom Hughes - 1.8.2-1 +- Update to 1.8.2 upstream release + +* Sat Mar 4 2017 Tom Hughes - 1.8.1-1 +- Update to 1.8.1 upstream release + +* Wed Mar 1 2017 Tom Hughes - 1.8.0-1 +- Update to 1.8.0 upstream release + +* Fri Feb 10 2017 Tom Hughes - 1.7.1-1 +- Update to 1.7.1 upstream release + +* Fri Feb 10 2017 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 3 2017 Tom Hughes - 1.7.0-1 +- Update to 1.7.0 upstream release + +* Sun Jan 29 2017 Tom Hughes - 1.6.1-1 +- Update to 1.6.1 upstream release + +* Sun Jan 15 2017 Tom Hughes - 1.6.0-1 +- Update to 1.6.0 upstream release + +* Tue Dec 13 2016 Tom Hughes - 1.5.9-1 +- Update to 1.5.9 upstream release + +* Thu Nov 10 2016 Igor Gnatenko - 1.5.8-1 +- Update to 1.5.8 + +* Sat May 14 2016 Tom Hughes - 1.5.4-1 +- Update to 1.5.4 upstream release + +* Thu Apr 28 2016 Tom Hughes - 1.5.1-1 +- Update to 1.5.1 upstream release + +* Sun Apr 24 2016 Tom Hughes - 1.5.0-1 +- Update to 1.5.0 upstream release + +* Wed Mar 30 2016 Tom Hughes - 1.4.0-1 +- Update to 1.4.0 upstream release + +* Wed Feb 03 2016 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Sep 18 2015 Tom Hughes - 1.2.1-1 +- Initial build