adjust macros for correct version

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-10-04 14:37:09 -04:00
parent e971ddf4c6
commit 77b16fc288

View File

@ -4,10 +4,12 @@
%global debug_package %{nil}
%global built_tag_strip 1.2.0
%global built_tag v1.2.0
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
Name: netavark
Version: 1.2.0
Version: %{gen_version}
Release: %autorelease
License: ASL 2.0 and BSD and MIT
ExclusiveArch: %{rust_arches}