From 3d68e85753e39059cbc352e439ee016c72cd7825 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 20 Apr 2022 09:32:38 -0400 Subject: [PATCH] Reduce macro indirection in the spec file --- c4project.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/c4project.spec b/c4project.spec index 66316ed..0f41a85 100644 --- a/c4project.spec +++ b/c4project.spec @@ -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