update macros to get version correctly

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-10-10 08:43:32 -04:00
parent 5d42cc9de2
commit 0c3e157565

View File

@ -3,7 +3,9 @@
# container-selinux # container-selinux
%global git0 https://github.com/containers/container-selinux %global git0 https://github.com/containers/container-selinux
%global built_tag_strip 2.190.0 %global built_tag v2.190.0
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
# container-selinux stuff (prefix with ds_ for version/release etc.) # container-selinux stuff (prefix with ds_ for version/release etc.)
# Some bits borrowed from the openstack-selinux package # Some bits borrowed from the openstack-selinux package
@ -19,7 +21,7 @@
# Hooked up to autobuilder, please check with @lsm5 before updating # Hooked up to autobuilder, please check with @lsm5 before updating
Name: container-selinux Name: container-selinux
Epoch: 2 Epoch: 2
Version: 2.190.0 Version: %{gen_version}
Release: %autorelease Release: %autorelease
License: GPLv2 License: GPLv2
URL: %{git0} URL: %{git0}