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 debug_package %{nil}
|
||||||
|
|
||||||
%global built_tag v1.0.3
|
%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
|
Name: aardvark-dns
|
||||||
Version: %{gen_version}
|
Version: 1.0.3
|
||||||
Release: %autorelease
|
%if "%{_vendor}" == "debbuild"
|
||||||
Summary: Authoritative DNS server for A/AAAA container records
|
Packager: Lokesh Mandvekar <https://github.com/lsm5>
|
||||||
|
License: ASL-2.0+
|
||||||
|
Release: 0%{?dist}
|
||||||
|
%else
|
||||||
License: ASL 2.0 and BSD and MIT
|
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}
|
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
|
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo
|
||||||
|
%if "%{_vendor}" == "debbuild"
|
||||||
|
BuildRequires: git
|
||||||
|
%else
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: rust-srpm-macros
|
BuildRequires: rust-srpm-macros
|
||||||
ExclusiveArch: %{rust_arches}
|
|
||||||
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
|
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
|
||||||
Provides: bundled(crate(aardvark-dns)) = v1.0.3
|
Provides: bundled(crate(aardvark-dns)) = v1.0.3
|
||||||
Provides: bundled(crate(aho-corasick)) = v0.7.18
|
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(unicode-xid)) = v0.2.3
|
||||||
Provides: bundled(crate(url)) = v2.2.2
|
Provides: bundled(crate(url)) = v2.2.2
|
||||||
Provides: bundled(crate(version_check)) = v0.9.4
|
Provides: bundled(crate(version_check)) = v0.9.4
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
@ -131,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 -n %{name}-%{built_tag_strip}
|
%autosetup -Sgit
|
||||||
tar fx %{SOURCE1}
|
tar fx %{SOURCE1}
|
||||||
mkdir -p .cargo
|
mkdir -p .cargo
|
||||||
|
|
||||||
@ -155,4 +163,6 @@ EOF
|
|||||||
%{_libexecdir}/podman/%{name}
|
%{_libexecdir}/podman/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%if "%{_vendor}" != "debbuild"
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user