2
0
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:
Kilian Cavalotti 2022-08-23 08:27:07 -07:00 committed by GitHub
parent 9df17c8d00
commit f5cc2631bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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