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:
@ -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
|
||||
|
Reference in New Issue
Block a user