diff options
author | CoprDistGit <infra@openeuler.org> | 2025-08-06 12:04:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-08-06 12:04:08 +0000 |
commit | 08a6b6d4e5efad475dbcc07a8829cbc7a7425afc (patch) | |
tree | daa16e8025f998f62c5ea407d408cd0588c81a6c | |
parent | 60336a5811b8f9b3fecec79b8b73bdd7ba30b583 (diff) |
automatic import of catch2openeuler25.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | catch2.spec | 61 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 63 insertions, 0 deletions
@@ -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 <mimanchiok@qq.com> - 2.13.10-1 +- project init @@ -0,0 +1 @@ +7a4dd2fd14fb9f46198eb670ac7834b7 catch2-2.13.10.tar.gz |