Reduce macro indirection in the spec file

This commit is contained in:
Benjamin A. Beasley 2022-04-20 09:32:38 -04:00
parent 82f9d6950c
commit 3d68e85753

View File

@ -1,13 +1,11 @@
%global commit 41a3a293f708566bf8cc2196ea2e671205821584
%global snapdate 20220226
%global shortcommit %(echo '%{commit}' | cut -b -7)
Name: c4project
Summary: Useful CMake scripts
# This project has never been assigned a version. The author really intends it
# for use as a git submodule rather than for system-wide installation.
Version: 0^%{snapdate}git%{shortcommit}
Version: 0^%{snapdate}git%(echo '%{commit}' | cut -b -7)
Release: %autorelease
URL: https://github.com/biojppm/cmake
@ -42,8 +40,8 @@ rm -rvf 'bm-xp'
%install
install -d '%{buildroot}%{_datadir}/cmake/%{name}'
cp -vrp * '%{buildroot}%{_datadir}/cmake/%{name}'
install -d '%{buildroot}%{_datadir}/cmake/c4project'
cp -vrp * '%{buildroot}%{_datadir}/cmake/c4project'
%check
@ -54,7 +52,7 @@ cp -vrp * '%{buildroot}%{_datadir}/cmake/%{name}'
%license LICENSE.txt
%doc README.md
%{_datadir}/cmake/%{name}
%{_datadir}/cmake/c4project
%changelog