summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-08-18 08:18:58 +0000
committerCoprDistGit <infra@openeuler.org>2025-08-18 08:18:58 +0000
commit38ec01cf2de2a61d4a88a1eca7282c3bf953120f (patch)
treeb83f1dac760ffa9e6f5b6a0577642ee910d785fa
parent4a895b9a157e622290654c6b6d2d2c167b70e80f (diff)
automatic import of Catch2openeuler25.03
-rw-r--r--.gitignore1
-rw-r--r--Catch2.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b03fcad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v3.3.2.tar.gz
diff --git a/Catch2.spec b/Catch2.spec
new file mode 100644
index 0000000..6bfeea9
--- /dev/null
+++ b/Catch2.spec
@@ -0,0 +1,74 @@
+%undefine __cmake_in_source_build
+%global debug_package %{nil}
+
+Name: Catch2
+Version: 3.3.2
+Release: 2%{?dist}
+Summary: Modern, C++-native, header-only, framework for unit-tests, TDD and BDD
+
+License: BSL-1.0
+URL: https://github.com/catchorg/Catch2
+Source0: v%{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}
+Requires: %{name} = %{version}-%{release}
+
+%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 %{name}-%{version}
+
+
+%build
+%cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATCH_BUILD_EXTRA_TESTS=ON \
+ -DCATCH_ENABLE_WERROR=OFF \
+ -DCATCH_INSTALL_DOCS=OFF \
+ -DBUILD_SHARED_LIBS=ON
+%cmake_build
+
+
+%install
+%cmake_install
+
+
+%files
+%license LICENSE.txt
+%{_libdir}/libCatch2.so.%{version}
+%{_libdir}/libCatch2Main.so.%{version}
+
+
+%files devel
+%doc README.md CODE_OF_CONDUCT.md docs
+%{_includedir}/catch2/
+%{_libdir}/libCatch2.so
+%{_libdir}/libCatch2Main.so
+%{_libdir}/cmake/Catch2/
+%{_datadir}/Catch2/
+%{_datadir}/pkgconfig/catch2.pc
+%{_datadir}/pkgconfig/catch2-with-main.pc
+
+
+%changelog
+* Tue Nov 19 2024 Funda Wang <fundawang@yeah.net> - 3.3.2-2
+- adopt to new cmake macro
+- force out-of-source build
+
+* Fri Apr 28 2023 will_niutao <niutao2@huawei.com> - 3.3.2-1
+- init package for openEuler
diff --git a/sources b/sources
new file mode 100644
index 0000000..0af427e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6a15aa49dbdee13f279b73cab16ae203 v3.3.2.tar.gz