use easier tag macros to make both fedora and debbuild happy
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
77efabd259
commit
a6a0838f5b
@ -4,7 +4,7 @@
|
||||
# debuginfo doesn't work yet
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global built_tag v1.1.0
|
||||
%global built_tag_strip 1.1.0
|
||||
|
||||
Name: aardvark-dns
|
||||
Version: 1.1.0
|
||||
@ -19,8 +19,8 @@ ExclusiveArch: %{rust_arches}
|
||||
%endif
|
||||
Summary: Authoritative DNS server for A/AAAA container records
|
||||
URL: https://github.com/containers/%{name}
|
||||
Source0: %{url}/archive/%{built_tag}.tar.gz
|
||||
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
|
||||
Source0: %{url}/archive/v%{built_tag_strip}.tar.gz
|
||||
Source1: %{url}/releases/download/v%{built_tag_strip}/%{name}-v%{built_tag_strip}-vendor.tar.gz
|
||||
BuildRequires: cargo
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: git
|
||||
@ -139,7 +139,7 @@ Forwards other request to configured resolvers.
|
||||
Read more about configuration in `src/backend/mod.rs`.
|
||||
|
||||
%prep
|
||||
%autosetup -Sgit
|
||||
%autosetup -Sgit %{name}-%{built_tag_strip}
|
||||
tar fx %{SOURCE1}
|
||||
mkdir -p .cargo
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user