0bc43ef
# trust-dns-{client,server} not available
0bc43ef
# using vendored deps
0bc43ef
0bc43ef
# debuginfo doesn't work yet
0bc43ef
%global debug_package %{nil}
1285e1a
RH Container Bot deaa057
%global built_tag v1.1.0
0bc43ef
0bc43ef
Name: aardvark-dns
RH Container Bot deaa057
Version: 1.1.0
0c8a56b
%if "%{_vendor}" == "debbuild"
0c8a56b
Packager: Lokesh Mandvekar <https://github.com/lsm5>
0c8a56b
License: ASL-2.0+
0c8a56b
Release: 0%{?dist}
0c8a56b
%else
0c8a56b
License: ASL 2.0 and BSD and MIT
1285e1a
Release: %autorelease
0c8a56b
ExclusiveArch: %{rust_arches}
0c8a56b
%endif
0bc43ef
Summary: Authoritative DNS server for A/AAAA container records
0bc43ef
URL: https://github.com/containers/%{name}
0c8a56b
Source0: %{url}/archive/%{built_tag}.tar.gz
ae875cd
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
0bc43ef
BuildRequires: cargo
0c8a56b
%if "%{_vendor}" == "debbuild"
0c8a56b
BuildRequires: git
0c8a56b
%else
1285e1a
BuildRequires: git-core
0bc43ef
BuildRequires: make
0bc43ef
BuildRequires: rust-srpm-macros
0bc43ef
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
b00f61e
Provides: bundled(crate(aardvark-dns)) = v1.0.3
0bc43ef
Provides: bundled(crate(aho-corasick)) = v0.7.18
b00f61e
Provides: bundled(crate(anyhow)) = v1.0.57
2f91d1c
Provides: bundled(crate(async-broadcast)) = v0.4.0
b00f61e
Provides: bundled(crate(async-trait)) = v0.1.53
0bc43ef
Provides: bundled(crate(atty)) = v0.2.14
85df0ad
Provides: bundled(crate(autocfg)) = v1.1.0
0bc43ef
Provides: bundled(crate(bitflags)) = v1.3.2
0bc43ef
Provides: bundled(crate(bytes)) = v1.1.0
0bc43ef
Provides: bundled(crate(cfg-if)) = v1.0.0
0bc43ef
Provides: bundled(crate(chrono)) = v0.4.19
b00f61e
Provides: bundled(crate(clap)) = v3.1.15
b00f61e
Provides: bundled(crate(clap_derive)) = v3.1.7
b00f61e
Provides: bundled(crate(clap_lex)) = v0.2.0
0bc43ef
Provides: bundled(crate(data-encoding)) = v2.3.2
1285e1a
Provides: bundled(crate(easy-parallel)) = v3.2.0
0bc43ef
Provides: bundled(crate(endian-type)) = v0.1.2
2f91d1c
Provides: bundled(crate(enum-as-inner)) = v0.4.0
2f91d1c
Provides: bundled(crate(env_logger)) = v0.9.0
c7242cb
Provides: bundled(crate(error-chain)) = v0.12.4
1285e1a
Provides: bundled(crate(event-listener)) = v2.5.2
0bc43ef
Provides: bundled(crate(form_urlencoded)) = v1.0.1
85df0ad
Provides: bundled(crate(futures-channel)) = v0.3.21
c7242cb
Provides: bundled(crate(futures-core)) = v0.3.21
85df0ad
Provides: bundled(crate(futures-executor)) = v0.3.21
85df0ad
Provides: bundled(crate(futures-io)) = v0.3.21
c7242cb
Provides: bundled(crate(futures-macro)) = v0.3.21
c7242cb
Provides: bundled(crate(futures-task)) = v0.3.21
c7242cb
Provides: bundled(crate(futures-util)) = v0.3.21
b00f61e
Provides: bundled(crate(getrandom)) = v0.2.6
0bc43ef
Provides: bundled(crate(hashbrown)) = v0.11.2
1285e1a
Provides: bundled(crate(heck)) = v0.4.0
1285e1a
Provides: bundled(crate(hostname)) = v0.3.1
0bc43ef
Provides: bundled(crate(humantime)) = v2.1.0
0bc43ef
Provides: bundled(crate(idna)) = v0.2.3
b00f61e
Provides: bundled(crate(indexmap)) = v1.8.1
2f91d1c
Provides: bundled(crate(instant)) = v0.1.12
b00f61e
Provides: bundled(crate(ipnet)) = v2.5.0
c7242cb
Provides: bundled(crate(itoa)) = v1.0.1
0bc43ef
Provides: bundled(crate(lazy_static)) = v1.4.0
b00f61e
Provides: bundled(crate(libc)) = v0.2.125
b00f61e
Provides: bundled(crate(lock_api)) = v0.4.7
b00f61e
Provides: bundled(crate(log)) = v0.4.17
1285e1a
Provides: bundled(crate(match_cfg)) = v0.1.0
0bc43ef
Provides: bundled(crate(matches)) = v0.1.9
b00f61e
Provides: bundled(crate(memchr)) = v2.5.0
b00f61e
Provides: bundled(crate(mio)) = v0.8.2
0bc43ef
Provides: bundled(crate(nibble_vec)) = v0.1.0
b00f61e
Provides: bundled(crate(num-integer)) = v0.1.45
b00f61e
Provides: bundled(crate(num-traits)) = v0.2.15
0bc43ef
Provides: bundled(crate(num_cpus)) = v1.13.1
b00f61e
Provides: bundled(crate(num_threads)) = v0.1.6
b00f61e
Provides: bundled(crate(once_cell)) = v1.10.0
1285e1a
Provides: bundled(crate(os_str_bytes)) = v6.0.0
85df0ad
Provides: bundled(crate(parking_lot)) = v0.12.0
b00f61e
Provides: bundled(crate(parking_lot_core)) = v0.9.3
0bc43ef
Provides: bundled(crate(percent-encoding)) = v2.1.0
b00f61e
Provides: bundled(crate(pin-project-lite)) = v0.2.9
0bc43ef
Provides: bundled(crate(pin-utils)) = v0.1.0
0bc43ef
Provides: bundled(crate(ppv-lite86)) = v0.2.16
0bc43ef
Provides: bundled(crate(proc-macro-error)) = v1.0.4
0bc43ef
Provides: bundled(crate(proc-macro-error-attr)) = v1.0.4
b00f61e
Provides: bundled(crate(proc-macro2)) = v1.0.37
1285e1a
Provides: bundled(crate(quick-error)) = v1.2.3
b00f61e
Provides: bundled(crate(quote)) = v1.0.18
0bc43ef
Provides: bundled(crate(radix_trie)) = v0.2.1
85df0ad
Provides: bundled(crate(rand)) = v0.8.5
0bc43ef
Provides: bundled(crate(rand_chacha)) = v0.3.1
0bc43ef
Provides: bundled(crate(rand_core)) = v0.6.3
b00f61e
Provides: bundled(crate(regex)) = v1.5.5
0bc43ef
Provides: bundled(crate(regex-syntax)) = v0.6.25
1285e1a
Provides: bundled(crate(resolv-conf)) = v0.7.0
0bc43ef
Provides: bundled(crate(scopeguard)) = v1.1.0
b00f61e
Provides: bundled(crate(serde)) = v1.0.137
b00f61e
Provides: bundled(crate(serde_derive)) = v1.0.137
0bc43ef
Provides: bundled(crate(signal-hook)) = v0.3.13
0bc43ef
Provides: bundled(crate(signal-hook-registry)) = v1.4.0
b00f61e
Provides: bundled(crate(slab)) = v0.4.6
85df0ad
Provides: bundled(crate(smallvec)) = v1.8.0
85df0ad
Provides: bundled(crate(socket2)) = v0.4.4
0bc43ef
Provides: bundled(crate(strsim)) = v0.10.0
b00f61e
Provides: bundled(crate(syn)) = v1.0.92
c7242cb
Provides: bundled(crate(syslog)) = v6.0.1
b00f61e
Provides: bundled(crate(termcolor)) = v1.1.3
2f91d1c
Provides: bundled(crate(textwrap)) = v0.15.0
b00f61e
Provides: bundled(crate(thiserror)) = v1.0.31
b00f61e
Provides: bundled(crate(thiserror-impl)) = v1.0.31
b00f61e
Provides: bundled(crate(time)) = v0.3.9
b00f61e
Provides: bundled(crate(tinyvec)) = v1.6.0
0bc43ef
Provides: bundled(crate(tinyvec_macros)) = v0.1.0
b00f61e
Provides: bundled(crate(tokio)) = v1.18.1
0bc43ef
Provides: bundled(crate(tokio-macros)) = v1.7.0
b00f61e
Provides: bundled(crate(toml)) = v0.5.9
b00f61e
Provides: bundled(crate(trust-dns-client)) = v0.21.2
b00f61e
Provides: bundled(crate(trust-dns-proto)) = v0.21.2
b00f61e
Provides: bundled(crate(trust-dns-server)) = v0.21.2
b00f61e
Provides: bundled(crate(unicode-bidi)) = v0.3.8
0bc43ef
Provides: bundled(crate(unicode-normalization)) = v0.1.19
b00f61e
Provides: bundled(crate(unicode-xid)) = v0.2.3
0bc43ef
Provides: bundled(crate(url)) = v2.2.2
0bc43ef
Provides: bundled(crate(version_check)) = v0.9.4
0c8a56b
%endif
0bc43ef
0bc43ef
%description
0bc43ef
%{summary}
0bc43ef
0bc43ef
Forwards other request to configured resolvers.
0bc43ef
Read more about configuration in `src/backend/mod.rs`.
0bc43ef
0bc43ef
%prep
0c8a56b
%autosetup -Sgit
85df0ad
tar fx %{SOURCE1}
85df0ad
mkdir -p .cargo
85df0ad
85df0ad
cat >.cargo/config << EOF
85df0ad
[source.crates-io]
85df0ad
replace-with = "vendored-sources"
85df0ad
85df0ad
[source.vendored-sources]
85df0ad
directory = "vendor"
85df0ad
EOF
0bc43ef
0bc43ef
%build
0bc43ef
%{__make} build
0bc43ef
0bc43ef
%install
0bc43ef
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
0bc43ef
0bc43ef
%files
0bc43ef
%license LICENSE
0bc43ef
%dir %{_libexecdir}/podman
0bc43ef
%{_libexecdir}/podman/%{name}
0bc43ef
0bc43ef
%changelog
0c8a56b
%if "%{_vendor}" != "debbuild"
0bc43ef
%autochangelog
0c8a56b
%endif