simplify macros
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
parent
45fb0b81d9
commit
8d2ffc9fbe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user