From 77b16fc288df83de8175b1d9fde39091f133da91 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Tue, 4 Oct 2022 14:37:09 -0400 Subject: [PATCH] adjust macros for correct version Signed-off-by: Lokesh Mandvekar --- netavark.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netavark.spec b/netavark.spec index 70eee64..4e8524a 100644 --- a/netavark.spec +++ b/netavark.spec @@ -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}