From 2903784925b102a9e2c5088e7f9a4d6815e6bac4 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 27 Jan 2022 14:07:29 -0500 Subject: [PATCH] use built_tag to generate version Signed-off-by: Lokesh Mandvekar --- conmon.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conmon.spec b/conmon.spec index 09156f8..79ac50d 100644 --- a/conmon.spec +++ b/conmon.spec @@ -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