use built_tag to generate version

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-01-27 14:07:29 -05:00
parent 58c1acf597
commit 2903784925

View File

@ -8,14 +8,13 @@
%global debug_package %{nil}
%endif
# Used for comparing with latest upstream tag
# to decide whether to autobuild
%global built_tag v2.1.0
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
Name: conmon
Epoch: 2
Version: 2.1.0
Version: %{gen_version}
Release: %autorelease
Summary: OCI container runtime monitor
License: ASL 2.0