2022-01-27 19:46:43 +00:00
|
|
|
# trust-dns-{client,server} not available
|
|
|
|
# using vendored deps
|
|
|
|
|
2023-02-07 11:46:43 +00:00
|
|
|
%global with_debug 1
|
|
|
|
|
|
|
|
%if 0%{?with_debug}
|
|
|
|
%global _find_debuginfo_dwz_opts %{nil}
|
|
|
|
%global _dwz_low_mem_die_limit 0
|
|
|
|
%else
|
2022-01-27 19:46:43 +00:00
|
|
|
%global debug_package %{nil}
|
2023-02-07 11:46:43 +00:00
|
|
|
%endif
|
2022-02-03 15:13:41 +00:00
|
|
|
|
2023-02-02 13:39:15 +00:00
|
|
|
%global built_tag v1.5.0
|
2022-10-07 17:17:46 +00:00
|
|
|
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
2022-10-04 17:39:50 +00:00
|
|
|
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
|
2022-01-27 19:46:43 +00:00
|
|
|
|
|
|
|
Name: aardvark-dns
|
2022-10-07 17:17:46 +00:00
|
|
|
Version: %{gen_version}
|
2023-03-06 12:18:34 +00:00
|
|
|
License: Apache-2.0 and MIT and Zlib
|
2022-02-03 15:13:41 +00:00
|
|
|
Release: %autorelease
|
2023-02-08 15:02:31 +00:00
|
|
|
ExclusiveArch: %{arm32} %{arm64} ppc64le s390x x86_64
|
2022-01-27 19:46:43 +00:00
|
|
|
Summary: Authoritative DNS server for A/AAAA container records
|
|
|
|
URL: https://github.com/containers/%{name}
|
2022-10-04 14:34:23 +00:00
|
|
|
# Tarballs fetched from upstream's release page
|
2022-10-04 17:39:50 +00:00
|
|
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
|
|
|
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
|
2022-01-27 19:46:43 +00:00
|
|
|
BuildRequires: cargo
|
2022-02-03 15:13:41 +00:00
|
|
|
BuildRequires: git-core
|
2022-01-27 19:46:43 +00:00
|
|
|
BuildRequires: make
|
2023-02-07 11:56:00 +00:00
|
|
|
BuildRequires: rust-packaging
|
2022-01-27 19:46:43 +00:00
|
|
|
BuildRequires: rust-srpm-macros
|
|
|
|
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(aardvark-dns)) = v1.5.0
|
|
|
|
Provides: bundled(crate(anyhow)) = v1.0.68
|
|
|
|
Provides: bundled(crate(async-broadcast)) = v0.5.0
|
|
|
|
Provides: bundled(crate(async-trait)) = v0.1.56
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(atty)) = v0.2.14
|
2022-02-25 14:57:22 +00:00
|
|
|
Provides: bundled(crate(autocfg)) = v1.1.0
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(bitflags)) = v1.3.2
|
|
|
|
Provides: bundled(crate(bytes)) = v1.1.0
|
|
|
|
Provides: bundled(crate(cfg-if)) = v1.0.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(chrono)) = v0.4.23
|
|
|
|
Provides: bundled(crate(clap)) = v3.2.23
|
|
|
|
Provides: bundled(crate(clap_derive)) = v3.2.18
|
|
|
|
Provides: bundled(crate(clap_lex)) = v0.2.4
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(data-encoding)) = v2.3.2
|
|
|
|
Provides: bundled(crate(endian-type)) = v0.1.2
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(enum-as-inner)) = v0.5.1
|
2022-02-10 22:07:39 +00:00
|
|
|
Provides: bundled(crate(error-chain)) = v0.12.4
|
2022-02-03 15:13:41 +00:00
|
|
|
Provides: bundled(crate(event-listener)) = v2.5.2
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(form_urlencoded)) = v1.0.1
|
2022-02-25 14:57:22 +00:00
|
|
|
Provides: bundled(crate(futures-channel)) = v0.3.21
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(futures-core)) = v0.3.25
|
2022-02-25 14:57:22 +00:00
|
|
|
Provides: bundled(crate(futures-executor)) = v0.3.21
|
|
|
|
Provides: bundled(crate(futures-io)) = v0.3.21
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(futures-task)) = v0.3.25
|
|
|
|
Provides: bundled(crate(futures-util)) = v0.3.25
|
|
|
|
Provides: bundled(crate(getrandom)) = v0.2.7
|
|
|
|
Provides: bundled(crate(hashbrown)) = v0.12.2
|
2022-02-03 15:13:41 +00:00
|
|
|
Provides: bundled(crate(heck)) = v0.4.0
|
|
|
|
Provides: bundled(crate(hostname)) = v0.3.1
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(iana-time-zone)) = v0.1.53
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(idna)) = v0.2.3
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(indexmap)) = v1.9.1
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(ipnet)) = v2.5.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(itoa)) = v1.0.2
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(lazy_static)) = v1.4.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(libc)) = v0.2.139
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(lock_api)) = v0.4.7
|
|
|
|
Provides: bundled(crate(log)) = v0.4.17
|
2022-02-03 15:13:41 +00:00
|
|
|
Provides: bundled(crate(match_cfg)) = v0.1.0
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(matches)) = v0.1.9
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(memchr)) = v2.5.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(memoffset)) = v0.7.1
|
|
|
|
Provides: bundled(crate(mio)) = v0.8.4
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(nibble_vec)) = v0.1.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(nix)) = v0.26.2
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(num-integer)) = v0.1.45
|
|
|
|
Provides: bundled(crate(num-traits)) = v0.2.15
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(num_cpus)) = v1.13.1
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(num_threads)) = v0.1.6
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(once_cell)) = v1.13.0
|
|
|
|
Provides: bundled(crate(os_str_bytes)) = v6.1.0
|
|
|
|
Provides: bundled(crate(parking_lot)) = v0.12.1
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(parking_lot_core)) = v0.9.3
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(percent-encoding)) = v2.1.0
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(pin-project-lite)) = v0.2.9
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(pin-utils)) = v0.1.0
|
|
|
|
Provides: bundled(crate(ppv-lite86)) = v0.2.16
|
|
|
|
Provides: bundled(crate(proc-macro-error)) = v1.0.4
|
|
|
|
Provides: bundled(crate(proc-macro-error-attr)) = v1.0.4
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(proc-macro2)) = v1.0.40
|
2022-02-03 15:13:41 +00:00
|
|
|
Provides: bundled(crate(quick-error)) = v1.2.3
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(quote)) = v1.0.20
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(radix_trie)) = v0.2.1
|
2022-02-25 14:57:22 +00:00
|
|
|
Provides: bundled(crate(rand)) = v0.8.5
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(rand_chacha)) = v0.3.1
|
|
|
|
Provides: bundled(crate(rand_core)) = v0.6.3
|
2022-02-03 15:13:41 +00:00
|
|
|
Provides: bundled(crate(resolv-conf)) = v0.7.0
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(scopeguard)) = v1.1.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(serde)) = v1.0.139
|
|
|
|
Provides: bundled(crate(serde_derive)) = v1.0.139
|
|
|
|
Provides: bundled(crate(signal-hook)) = v0.3.14
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(signal-hook-registry)) = v1.4.0
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(slab)) = v0.4.6
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(smallvec)) = v1.9.0
|
2022-02-25 14:57:22 +00:00
|
|
|
Provides: bundled(crate(socket2)) = v0.4.4
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(static_assertions)) = v1.1.0
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(strsim)) = v0.10.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(syn)) = v1.0.98
|
2022-02-10 22:07:39 +00:00
|
|
|
Provides: bundled(crate(syslog)) = v6.0.1
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(termcolor)) = v1.1.3
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(textwrap)) = v0.16.0
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(thiserror)) = v1.0.31
|
|
|
|
Provides: bundled(crate(thiserror-impl)) = v1.0.31
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(time)) = v0.1.44
|
|
|
|
Provides: bundled(crate(time)) = v0.3.11
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(tinyvec)) = v1.6.0
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(tinyvec_macros)) = v0.1.0
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(tokio)) = v1.25.0
|
|
|
|
Provides: bundled(crate(tokio-macros)) = v1.8.0
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(toml)) = v0.5.9
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(tracing)) = v0.1.36
|
|
|
|
Provides: bundled(crate(tracing-attributes)) = v0.1.22
|
|
|
|
Provides: bundled(crate(tracing-core)) = v0.1.29
|
|
|
|
Provides: bundled(crate(trust-dns-client)) = v0.22.0
|
|
|
|
Provides: bundled(crate(trust-dns-proto)) = v0.22.0
|
|
|
|
Provides: bundled(crate(trust-dns-server)) = v0.22.0
|
2022-05-06 14:58:25 +00:00
|
|
|
Provides: bundled(crate(unicode-bidi)) = v0.3.8
|
2023-02-02 13:39:15 +00:00
|
|
|
Provides: bundled(crate(unicode-ident)) = v1.0.1
|
|
|
|
Provides: bundled(crate(unicode-normalization)) = v0.1.21
|
2022-01-27 19:46:43 +00:00
|
|
|
Provides: bundled(crate(url)) = v2.2.2
|
|
|
|
Provides: bundled(crate(version_check)) = v0.9.4
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
Forwards other request to configured resolvers.
|
|
|
|
Read more about configuration in `src/backend/mod.rs`.
|
|
|
|
|
|
|
|
%prep
|
2022-08-17 18:20:09 +00:00
|
|
|
%autosetup -Sgit %{name}-%{built_tag_strip}
|
2022-02-25 14:57:22 +00:00
|
|
|
tar fx %{SOURCE1}
|
|
|
|
mkdir -p .cargo
|
|
|
|
|
|
|
|
cat >.cargo/config << EOF
|
|
|
|
[source.crates-io]
|
|
|
|
replace-with = "vendored-sources"
|
|
|
|
|
|
|
|
[source.vendored-sources]
|
|
|
|
directory = "vendor"
|
|
|
|
EOF
|
2022-01-27 19:46:43 +00:00
|
|
|
|
|
|
|
%build
|
2023-02-07 11:46:43 +00:00
|
|
|
%{__cargo} build --release
|
|
|
|
mkdir -p bin
|
|
|
|
cp target/release/%{name} bin/
|
2022-01-27 19:46:43 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%dir %{_libexecdir}/podman
|
|
|
|
%{_libexecdir}/podman/%{name}
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|