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