diff --git a/catch2.spec b/catch2.spec index 5d74dccc774..6981c773c90 100644 --- a/catch2.spec +++ b/catch2.spec @@ -1,10 +1,28 @@ -### RPM external catch2 2.13.6 -Source: https://raw.githubusercontent.com/catchorg/Catch2/v%{realversion}/single_include/catch2/catch.hpp +### RPM external catch2 3.11.0 + +Source: https://github.com/catchorg/Catch2/archive/refs/tags/v%{realversion}.tar.gz +BuildRequires: cmake gmake %prep +%setup -n Catch2-%{realversion} %build +cd %{_builddir} +rm -rf build && mkdir build && cd build + +cmake ../Catch2-%{realversion} \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX="%{i}" \ + -DCATCH_INSTALL_HELPERS=ON \ + -DCATCH_INSTALL_EXTRAS=ON \ + -DCMAKE_INSTALL_COMPONENT="devel" + +make %{makeprocesses} VERBOSE=1 %install -mkdir %{i}/include -cp %{_sourcedir}/catch.hpp %{i}/include/ +cd %{_builddir}/build +make install + +%post +%{relocateConfig}share/pkgconfig/catch2*.pc diff --git a/scram-tools.file/tools/catch2/catch2.xml b/scram-tools.file/tools/catch2/catch2.xml index 93eaf67d5b7..4cab8b8f245 100644 --- a/scram-tools.file/tools/catch2/catch2.xml +++ b/scram-tools.file/tools/catch2/catch2.xml @@ -1,6 +1,9 @@ - + + + - + +