build dep packages using debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
6e555c2f2d
commit
c9d81be752
@ -5,22 +5,29 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global built_tag v1.0.3
|
||||
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
||||
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
|
||||
|
||||
Name: aardvark-dns
|
||||
Version: %{gen_version}
|
||||
Release: %autorelease
|
||||
Summary: Authoritative DNS server for A/AAAA container records
|
||||
Version: 1.0.3
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
Packager: Lokesh Mandvekar <https://github.com/lsm5>
|
||||
License: ASL-2.0+
|
||||
Release: 0%{?dist}
|
||||
%else
|
||||
License: ASL 2.0 and BSD and MIT
|
||||
Release: %autorelease
|
||||
ExclusiveArch: %{rust_arches}
|
||||
%endif
|
||||
Summary: Authoritative DNS server for A/AAAA container records
|
||||
URL: https://github.com/containers/%{name}
|
||||
Source0: %{url}/archive/%{built_tag}/%{version}.tar.gz
|
||||
Source0: %{url}/archive/%{built_tag}.tar.gz
|
||||
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
|
||||
BuildRequires: cargo
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: git
|
||||
%else
|
||||
BuildRequires: git-core
|
||||
BuildRequires: make
|
||||
BuildRequires: rust-srpm-macros
|
||||
ExclusiveArch: %{rust_arches}
|
||||
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
|
||||
Provides: bundled(crate(aardvark-dns)) = v1.0.3
|
||||
Provides: bundled(crate(aho-corasick)) = v0.7.18
|
||||
@ -123,6 +130,7 @@ Provides: bundled(crate(unicode-normalization)) = v0.1.19
|
||||
Provides: bundled(crate(unicode-xid)) = v0.2.3
|
||||
Provides: bundled(crate(url)) = v2.2.2
|
||||
Provides: bundled(crate(version_check)) = v0.9.4
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
@ -131,7 +139,7 @@ Forwards other request to configured resolvers.
|
||||
Read more about configuration in `src/backend/mod.rs`.
|
||||
|
||||
%prep
|
||||
%autosetup -Sgit -n %{name}-%{built_tag_strip}
|
||||
%autosetup -Sgit
|
||||
tar fx %{SOURCE1}
|
||||
mkdir -p .cargo
|
||||
|
||||
@ -155,4 +163,6 @@ EOF
|
||||
%{_libexecdir}/podman/%{name}
|
||||
|
||||
%changelog
|
||||
%if "%{_vendor}" != "debbuild"
|
||||
%autochangelog
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user