%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 - 3.3.2-2 - adopt to new cmake macro - force out-of-source build * Fri Apr 28 2023 will_niutao - 3.3.2-1 - init package for openEuler