use easier tag macros to make both fedora and debbuild happy

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-08-17 14:33:13 -04:00
parent 747f613913
commit c1afe7de3a

View File

@ -8,7 +8,7 @@
%global debug_package %{nil} %global debug_package %{nil}
%endif %endif
%global built_tag v2.1.3 %global built_tag_strip 2.1.3
Name: conmon Name: conmon
Epoch: 2 Epoch: 2
@ -23,7 +23,7 @@ Release: %autorelease
%endif %endif
Summary: OCI container runtime monitor Summary: OCI container runtime monitor
URL: https://github.com/containers/%{name} URL: https://github.com/containers/%{name}
Source0: %{url}/archive/%{built_tag}.tar.gz Source0: %{url}/archive/v%{built_tag_strip}.tar.gz
BuildRequires: go-md2man BuildRequires: go-md2man
%if "%{_vendor}" == "debbuild" %if "%{_vendor}" == "debbuild"
BuildRequires: git BuildRequires: git
@ -49,7 +49,7 @@ Requires: libseccomp
%{summary}. %{summary}.
%prep %prep
%autosetup -Sgit %autosetup -Sgit %{name}-%{built_tag_strip}
sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile
sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile