## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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 appname cmakerc %global _description %{expand: CMakeRC is a resource compiler provided in a single CMake script that can easily be included in another project. For the purpose of this project, a resource compiler is a tool that will compile arbitrary data into a program. The program can then read this data from without needing to store that data on disk external to the program.} Name: cmrc Version: 2.0.1 Release: %autorelease License: MIT Summary: Standalone CMake-Based C++ Resource Compiler URL: https://github.com/vector-of-bool/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch # https://github.com/vector-of-bool/cmrc/pull/40 Patch100: %{name}-installation.patch # https://github.com/vector-of-bool/cmrc/pull/48 Patch101: %{name}-cmake-compatibility.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build %description %{_description} %package devel Summary: Standalone CMake-Based C++ Resource Compiler Provides: %{appname} = %{?epoch:%{epoch}:}%{version}-%{release} Provides: %{appname}-devel = %{?epoch:%{epoch}:}%{version}-%{release} Provides: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{_description} %prep %autosetup -p1 %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTS:BOOL=ON %cmake_build %check %ctest %install %cmake_install %files devel %doc README.md %license LICENSE.txt %{_datadir}/cmake/%{appname}/ %changelog ## START: Generated by rpmautospec * Wed Mar 05 2025 Vitaly - 2.0.1-10 - Backported the upstream patch with CMake 4 compatibility. * Thu Jan 16 2025 Fedora Release Engineering - 2.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild ## END: Generated by rpmautospec