summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-08-06 12:04:08 +0000
committerCoprDistGit <infra@openeuler.org>2025-08-06 12:04:08 +0000
commit08a6b6d4e5efad475dbcc07a8829cbc7a7425afc (patch)
treedaa16e8025f998f62c5ea407d408cd0588c81a6c
parent60336a5811b8f9b3fecec79b8b73bdd7ba30b583 (diff)
automatic import of catch2openeuler25.03
-rw-r--r--.gitignore1
-rw-r--r--catch2.spec61
-rw-r--r--sources1
3 files changed, 63 insertions, 0 deletions
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 <mimanchiok@qq.com> - 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