2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

hard-code latest xCAT version, in case this RPM is built outside of the xcat-core repo

This commit is contained in:
Kilian Cavalotti 2022-08-30 08:07:03 -07:00
parent 1508bff83c
commit d3a23d48dd

View File

@ -1,4 +1,4 @@
%global version %(rpm -q xCAT --qf "%{VERSION}" 2>/dev/null | grep -Po '[0-9\.]+' || cat ../Version)
%global version %(rpm -q xCAT --qf "%{VERSION}" 2>/dev/null | grep -Po %%'[0-9\.]+' || echo "2.16.5")
Version: %{version}
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
%ifarch i386 i586 i686 x86