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
|
|
|
|
2022-01-27 19:46:43 +00:00
|
|
|
Name: aardvark-dns
|
2023-09-27 18:33:42 +00:00
|
|
|
%if %{defined copr_username}
|
2023-06-29 13:57:44 +00:00
|
|
|
Epoch: 102
|
2024-07-19 15:05:53 +00:00
|
|
|
%else
|
|
|
|
Epoch: 2
|
2023-06-29 13:57:44 +00:00
|
|
|
%endif
|
|
|
|
# DO NOT TOUCH the Version string!
|
|
|
|
# The TRUE source of this specfile is:
|
|
|
|
# https://github.com/containers/podman/blob/main/rpm/podman.spec
|
|
|
|
# If that's what you're reading, Version must be 0, and will be updated by Packit for
|
|
|
|
# copr and koji builds.
|
|
|
|
# If you're reading this on dist-git, the version is automatically filled in by Packit.
|
2024-05-31 12:02:16 +00:00
|
|
|
Version: 1.11.0
|
2023-09-27 18:33:42 +00:00
|
|
|
# The `AND` needs to be uppercase in the License for SPDX compatibility
|
2023-08-22 13:10:59 +00:00
|
|
|
License: Apache-2.0 AND MIT AND Zlib
|
2024-07-19 15:05:53 +00:00
|
|
|
Release: 4%{?dist}
|
2023-09-27 18:33:42 +00:00
|
|
|
%if %{defined golang_arches_future}
|
2023-03-06 12:19:09 +00:00
|
|
|
ExclusiveArch: %{golang_arches_future}
|
2023-06-29 13:57:44 +00:00
|
|
|
%else
|
|
|
|
ExclusiveArch: aarch64 ppc64le s390x x86_64
|
|
|
|
%endif
|
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
|
2023-06-29 13:57:44 +00:00
|
|
|
Source0: %{url}/archive/v%{version}.tar.gz
|
|
|
|
Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-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-06-29 13:57:44 +00:00
|
|
|
%if %{defined rhel}
|
2023-09-27 18:33:42 +00:00
|
|
|
# rust-toolset requires the `local` repo enabled on non-koji ELN build environments
|
2023-06-29 13:57:44 +00:00
|
|
|
BuildRequires: rust-toolset
|
|
|
|
%else
|
2023-02-07 11:56:00 +00:00
|
|
|
BuildRequires: rust-packaging
|
2022-01-27 19:46:43 +00:00
|
|
|
BuildRequires: rust-srpm-macros
|
2023-06-29 13:57:44 +00:00
|
|
|
%endif
|
|
|
|
|
2022-01-27 19:46:43 +00:00
|
|
|
%description
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
Forwards other request to configured resolvers.
|
|
|
|
Read more about configuration in `src/backend/mod.rs`.
|
|
|
|
|
|
|
|
%prep
|
2023-06-29 13:57:44 +00:00
|
|
|
%autosetup -Sgit %{name}-%{version}
|
|
|
|
# Following steps are only required on environments like koji which have no
|
|
|
|
# network access and thus depend on the vendored tarball. Copr pulls
|
|
|
|
# dependencies directly from the network.
|
2023-09-27 18:33:42 +00:00
|
|
|
%if !%{defined copr_username}
|
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
|
2023-06-29 13:57:44 +00:00
|
|
|
%endif
|
2022-01-27 19:46:43 +00:00
|
|
|
|
|
|
|
%build
|
2023-06-29 13:57:44 +00:00
|
|
|
%{__make} CARGO="%{__cargo}" build
|
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
|