2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 20:00:19 +00:00

Update xCAT-genesis-base.spec

Automatically get xCAT version from installed package, rather than having to manually replace the `%%REPLACE_CURRENT_VERSION%%` string.
This commit is contained in:
Kilian Cavalotti
2022-08-23 08:27:07 -07:00
committed by GitHub
parent 9df17c8d00
commit f5cc2631bf

@ -1,4 +1,4 @@
%define version %%REPLACE_CURRENT_VERSION%%
%define version %(rpm -q xCAT --qf "%{VERSION}" 2>/dev/null)
Version: %{?version:%{version}}%{!?version:%(cat Version)}
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
%ifarch i386 i586 i686 x86