mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user