From 08a6b6d4e5efad475dbcc07a8829cbc7a7425afc Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 6 Aug 2025 12:04:08 +0000 Subject: automatic import of catch2 --- .gitignore | 1 + catch2.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 catch2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ea857de 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/catch2-2.13.10.tar.gz diff --git a/catch2.spec b/catch2.spec new file mode 100644 index 0000000..a65f4bd --- /dev/null +++ b/catch2.spec @@ -0,0 +1,61 @@ +%global debug_package %{nil} + +Name: catch2 +Version: 2.13.10 +Release: 1 +Summary: Modern, C++-native, header-only, framework for unit-tests, TDD and BDD + +License: BSL-1.0 +URL: https://github.com/catchorg/Catch2 +Source0: https://github.com/catchorg/Catch2/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake make gcc-c++ python3 + +%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} +Conflicts: catch-devel + +%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} + + +%build +%cmake \ + -DCATCH_BUILD_EXTRA_TESTS=ON \ + -DCATCH_ENABLE_WERROR=OFF \ + -DCATCH_INSTALL_DOCS=OFF \ + -DBUILD_SHARED_LIBS=OFF . +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%files devel +%doc README.md CODE_OF_CONDUCT.md docs +%license LICENSE.txt +%{_includedir}/catch2/ +%{_datadir}/Catch2/ +%{_datadir}/pkgconfig/catch2.pc +%{_libdir}/cmake/Catch2/ + +%changelog +* Tue Aug 5 2025 mimanchiok - 2.13.10-1 +- project init diff --git a/sources b/sources new file mode 100644 index 0000000..ed99430 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7a4dd2fd14fb9f46198eb670ac7834b7 catch2-2.13.10.tar.gz -- cgit v1.2.3