%global debug_package %{nil} Name: semver Version: 0.3.0 Release: 4%{?dist} License: MIT Summary: Semantic Versioning for modern C++ URL: https://github.com/Neargye/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # https://github.com/Neargye/semver/pull/29 Patch100: %{name}-fix-installation.patch # https://github.com/Neargye/semver/pull/30 Patch101: %{name}-added-missing-slash.patch BuildRequires: catch-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build %description C++ library compare and manipulate versions are available as extensions to the ..-. format complying with Semantic Versioning 2.0.0. %package devel Summary: Development files for %{name} Provides: %{name}-static%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release} Provides: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Provides: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: libstdc++-devel%{?_isa} %description devel %{summary}. %prep %autosetup -p1 # Unbundling catch... rm -rf test/3rdparty/Catch2 ln -svf %{_includedir}/catch2 test/3rdparty/Catch2 %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DSEMVER_OPT_BUILD_EXAMPLES:BOOL=ON \ -DSEMVER_OPT_BUILD_TESTS:BOOL=ON \ -DSEMVER_OPT_INSTALL:BOOL=ON %cmake_build %check %ctest %install %cmake_install %files devel %doc README.md %license LICENSE %{_includedir}/%{name}.hpp %{_libdir}/cmake/%{name}/ %changelog * Sat Jul 23 2022 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 27 2022 Vitaly Zaitsev - 0.3.0-3 - Fixed FTBFS on Fedora 36. * Sat Jan 22 2022 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 22 2021 Vitaly Zaitsev - 0.3.0-1 - Initial SPEC release.