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 15:59:18 -04:00
parent c73d61dba3
commit e073684b7c

View File

@ -25,7 +25,7 @@
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%global git0 https://%{import_path} %global git0 https://%{import_path}
%global built_tag v1.9.2 %global built_tag_strip 1.9.2
Name: %{repo} Name: %{repo}
Epoch: %{conditional_epoch} Epoch: %{conditional_epoch}
@ -40,7 +40,7 @@ Release: %autorelease
%endif %endif
Summary: Inspect container images and repositories on registries Summary: Inspect container images and repositories on registries
URL: %{git0} URL: %{git0}
Source0: %{git0}/archive/%{built_tag}.tar.gz Source0: %{git0}/archive/v%{built_tag_strip}.tar.gz
BuildRequires: go-md2man BuildRequires: go-md2man
%if "%{_vendor}" == "debbuild" %if "%{_vendor}" == "debbuild"
BuildRequires: git BuildRequires: git
@ -108,7 +108,7 @@ Requires: squashfs-tools
This package contains system tests for %{name} This package contains system tests for %{name}
%prep %prep
%autosetup -Sgit %autosetup -Sgit %{name}-%{built_tag_strip}
sed -i 's/install-binary: bin\/%{name}/install-binary:/' Makefile sed -i 's/install-binary: bin\/%{name}/install-binary:/' Makefile
sed -i 's/completions: bin\/%{name}/completions:/' Makefile sed -i 's/completions: bin\/%{name}/completions:/' Makefile
sed -i 's/install-docs: docs/install-docs:/' Makefile sed -i 's/install-docs: docs/install-docs:/' Makefile