From 8d2ffc9fbe69dead06dfa51e27dabcd08e2ab84a Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 17 Jan 2024 16:17:16 +0530 Subject: [PATCH] simplify macros Signed-off-by: Lokesh Mandvekar --- catatonit.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/catatonit.spec b/catatonit.spec index 644f9d3..f1822e5 100644 --- a/catatonit.spec +++ b/catatonit.spec @@ -1,22 +1,20 @@ -%global built_tag v0.1.7 -%global built_tag_strip %(b=%{built_tag}; echo ${b:1}) -%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"}) - Name: catatonit -Version: %{gen_version} +Version: 0.1.7 Summary: A signal-forwarding process manager for containers License: GPL-3.0-or-later Release: %autorelease # For centos on rhcontainerbot/qm copr %if 0%{?centos} Epoch: 4 -ExclusiveArch: aarch64 ppc64le s390x x86_64 -%else +%endif +%if %{defined golang_arches_future} ExclusiveArch: %{golang_arches_future} +%else +ExclusiveArch: aarch64 ppc64le s390x x86_64 %endif URL: https://github.com/openSUSE/%{name} # Tarball fetched from upstream -Source0: %{url}/archive/%{built_tag}.tar.gz +Source0: %{url}/archive/v%{version}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: file @@ -38,7 +36,7 @@ This is a reimplementation of other container init programs (such as signalfd(2)) and has no additional features. %prep -%autosetup -Sgit %{name}-%{built_tag_strip} +%autosetup -Sgit %{name}-%{version} sed -i '$d' configure.ac %build