blob: a65f4bd0d21d07e4c3b083a18cb7bee3b0d0f8c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
|