Name: ut Version: 1.2.0 Release: %{autorelease} Summary: A simple C++23 unit test library License: MIT URL: https://github.com/openalgz/ut Source0: %{url}/archive/v%{version}/ut-%{version}.tar.gz # Enable build module as a shared library Patch: shared-library.patch # Enale use normal library install directory Patch: libdir.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build %description A simple and fast compiling unit test library. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 %build %cmake -DUT_ENABLE_MODULES=ON \ -DUT_ENABLE_SHARED=ON \ -Dzb8_INSTALL_CMAKEDIR=%{_datadir}/cmake/ut \ -G Ninja %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libut_ut.so.1{,.*} %files devel %{_includedir}/ut/ %{_includedir}/ut.ixx %{_libdir}/libut_ut.so %{_datadir}/cmake/ut/ %changelog %autochangelog