From 18e6d7cfc6c80a3ffdc3e992a01b1ffa6c0a1bec Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:08:15 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.13.7-1mamba;Sat Oct 23 2021] --- README.md | 2 ++ catch2.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 catch2.spec diff --git a/README.md b/README.md index bd8f550..f4d0c42 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # catch2 +A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD - using C++11, C++14, C++17 and later (or C++03 on the Catch1.x branch). + diff --git a/catch2.spec b/catch2.spec new file mode 100644 index 0000000..cab2291 --- /dev/null +++ b/catch2.spec @@ -0,0 +1,58 @@ +Name: catch2 +Version: 2.13.7 +Release: 1mamba +Summary: A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/catchorg/Catch2 +Source: https://github.com/catchorg/Catch2.git/v%{version}/Catch2-%{version}.tar.bz2 +License: Boost Software License +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD - using C++11, C++14, C++17 and later (or C++03 on the Catch1.x branch). + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q -n Catch2-%{version} + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/catch2/ +%{_includedir}/catch2/*.hpp +%dir %{_libdir}/cmake/Catch2 +%{_libdir}/cmake/Catch2/*.cmake +%{_datadir}/Catch2/gdbinit +%{_datadir}/Catch2/lldbinit +%dir %{_datadir}/doc/Catch2 +%{_datadir}/doc/Catch2/*.md +%{_datadir}/pkgconfig/catch2.pc +%doc README.md + +%changelog +* Sat Oct 23 2021 Silvan Calarco 2.13.7-1mamba +- package created using the webbuild interface