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:20:09 -04:00
parent 77efabd259
commit a6a0838f5b

View File

@ -4,7 +4,7 @@
# debuginfo doesn't work yet # debuginfo doesn't work yet
%global debug_package %{nil} %global debug_package %{nil}
%global built_tag v1.1.0 %global built_tag_strip 1.1.0
Name: aardvark-dns Name: aardvark-dns
Version: 1.1.0 Version: 1.1.0
@ -19,8 +19,8 @@ ExclusiveArch: %{rust_arches}
%endif %endif
Summary: Authoritative DNS server for A/AAAA container records Summary: Authoritative DNS server for A/AAAA container records
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
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz Source1: %{url}/releases/download/v%{built_tag_strip}/%{name}-v%{built_tag_strip}-vendor.tar.gz
BuildRequires: cargo BuildRequires: cargo
%if "%{_vendor}" == "debbuild" %if "%{_vendor}" == "debbuild"
BuildRequires: git BuildRequires: git
@ -139,7 +139,7 @@ Forwards other request to configured resolvers.
Read more about configuration in `src/backend/mod.rs`. Read more about configuration in `src/backend/mod.rs`.
%prep %prep
%autosetup -Sgit %autosetup -Sgit %{name}-%{built_tag_strip}
tar fx %{SOURCE1} tar fx %{SOURCE1}
mkdir -p .cargo mkdir -p .cargo