%undefine __cmake_in_source_build %global snapdate 20240117 %global snaphash e633ba7ccb23de31fcbaf704029b63f8ec883d3d %define modulename cmake-shared Name: liri-%{modulename} Summary: Additional modules for the CMake build system Version: 2.1.0 Release: 0.1%{?snaphash:.%{snapdate}git%(echo %{snaphash} | cut -c -13)}%{?dist} License: BSD-3 Url: https://liri.io Source0: https://github.com/lirios/%{modulename}/%{?snaphash:archive}%{!?snaphash:releases/download}/%{?snaphash}%{!?snaphash:v%{version}}/%{name}-%{?snaphash}%{!?snaphash:%{version}}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake >= 3.19.0-1 BuildRequires: extra-cmake-modules >= 5.245.0-1 Requires: extra-cmake-modules >= 5.245.0-1 BuildArch: noarch %description Additional modules for the CMake build system. %prep %setup -q -n %{?snaphash:%{modulename}-%{snaphash}}%{!?snaphash:%{name}-%{version}} %build %cmake %cmake_build %install %cmake_install %files %doc README.md %{_datadir}/LiriCMakeShared/