## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} Name: semver Version: 0.3.1 Release: %autorelease License: MIT Summary: Semantic Versioning for modern C++ URL: https://github.com/Neargye/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build # semver currently support only catch v2 %if 0%{?fedora} >= 38 || 0%{?rhel} >= 10 BuildRequires: catch2-devel %else BuildRequires: catch-devel %endif %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 ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Mar 15 2024 Peter Lemenkov - 0.3.1-1 - semver ver. 0.3.1 * Sat Jan 27 2024 Fedora Release Engineering - 0.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 0.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Feb 28 2023 Vitaly Zaitsev - 0.3.0-7 - Fixed FTBFS in EPEL/ELN due to catch v3 update. * Tue Feb 28 2023 Vitaly Zaitsev - 0.3.0-6 - Fixed FTBFS due to catch v3 update. * Sat Jan 21 2023 Fedora Release Engineering - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * 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. ## END: Generated by rpmautospec