|
|
b3f89b |
# debuginfo doesn't work yet
|
|
|
b3f89b |
%global debug_package %{nil}
|
|
|
b3f89b |
|
|
|
0a5665 |
%global aardvark_dns_version v1.1.0
|
|
|
0a5665 |
%global aardvark_dns_branch v1.1.0-rhel
|
|
|
0a5665 |
%global aardvark_dns_commit0 4847c54770c2de4a0f9873ff5d99cad8609a0baf
|
|
|
0a5665 |
%global aardvark_dns_shortcommit0 %(c=%{aardvark_dns_commit0}; echo ${c:0:7})
|
|
|
0a5665 |
|
|
|
b3f89b |
Epoch: 2
|
|
|
b3f89b |
Name: aardvark-dns
|
|
|
b3f89b |
Version: 1.1.0
|
|
|
b3f89b |
License: ASL 2.0 and BSD and MIT
|
|
|
0a5665 |
Release: 5%{?dist}
|
|
|
b3f89b |
ExclusiveArch: %{rust_arches}
|
|
|
b3f89b |
Summary: Authoritative DNS server for A/AAAA container records
|
|
|
b3f89b |
URL: https://github.com/containers/aardvark-dns
|
|
|
0a5665 |
%if 0%{?aardvark_dns_branch:1}
|
|
|
0a5665 |
Source0: https://github.com/containers/aardvark-dns/tarball/%{aardvark_dns_commit0}/%{aardvark_dns_branch}-%{aardvark_dns_shortcommit0}.tar.gz
|
|
|
0a5665 |
%else
|
|
|
0a5665 |
Source0: https://github.com/containers/aardvark-dns/archive/%{aardvark_dns_commit0}/aardvark-dns-%{aardvark_dns_version}-%{aardvark_dns_shortcommit0}.tar.gz
|
|
|
0a5665 |
%endif
|
|
|
0a5665 |
Source1: https://github.com/containers/aardvark-dns/releases/download/%{aardvark_dns_version}/aardvark-dns-%{aardvark_dns_version}-vendor.tar.gz
|
|
|
b3f89b |
BuildRequires: cargo
|
|
|
b3f89b |
BuildRequires: git-core
|
|
|
b3f89b |
BuildRequires: make
|
|
|
b3f89b |
BuildRequires: rust-srpm-macros
|
|
|
b3f89b |
|
|
|
b3f89b |
%description
|
|
|
b3f89b |
%{summary}
|
|
|
b3f89b |
|
|
|
b3f89b |
Forwards other request to configured resolvers.
|
|
|
b3f89b |
Read more about configuration in `src/backend/mod.rs`.
|
|
|
b3f89b |
|
|
|
b3f89b |
%prep
|
|
|
0a5665 |
tar fx %{SOURCE0}
|
|
|
0a5665 |
%if 0%{?aardvark_dns_branch:1}
|
|
|
0a5665 |
pushd containers-aardvark-dns-%{aardvark_dns_shortcommit0}
|
|
|
0a5665 |
%else
|
|
|
0a5665 |
pushd aardvark-dns-%{aardvark_dns_commit0}
|
|
|
0a5665 |
%endif
|
|
|
b3f89b |
tar fx %{SOURCE1}
|
|
|
b3f89b |
mkdir -p .cargo
|
|
|
b3f89b |
|
|
|
b3f89b |
cat >.cargo/config << EOF
|
|
|
b3f89b |
[source.crates-io]
|
|
|
b3f89b |
replace-with = "vendored-sources"
|
|
|
b3f89b |
|
|
|
b3f89b |
[source.vendored-sources]
|
|
|
b3f89b |
directory = "vendor"
|
|
|
b3f89b |
EOF
|
|
|
b3f89b |
|
|
|
b3f89b |
%build
|
|
|
0a5665 |
%if 0%{?aardvark_dns_branch:1}
|
|
|
0a5665 |
pushd containers-aardvark-dns-%{aardvark_dns_shortcommit0}
|
|
|
0a5665 |
%else
|
|
|
0a5665 |
pushd aardvark-dns-%{aardvark_dns_commit0}
|
|
|
0a5665 |
%endif
|
|
|
0a5665 |
%__scm_setup_git -q
|
|
|
0a5665 |
%make_build build
|
|
|
0a5665 |
popd
|
|
|
b3f89b |
|
|
|
b3f89b |
%install
|
|
|
0a5665 |
%if 0%{?aardvark_dns_branch:1}
|
|
|
0a5665 |
pushd containers-aardvark-dns-%{aardvark_dns_shortcommit0}
|
|
|
0a5665 |
%else
|
|
|
0a5665 |
pushd aardvark-dns-%{aardvark_dns_commit0}
|
|
|
0a5665 |
%endif
|
|
|
b3f89b |
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
0a5665 |
popd
|
|
|
b3f89b |
|
|
|
b3f89b |
%files
|
|
|
0a5665 |
%if 0%{?aardvark_dns_branch:1}
|
|
|
0a5665 |
%license containers-aardvark-dns-%{aardvark_dns_shortcommit0}/LICENSE
|
|
|
0a5665 |
%else
|
|
|
0a5665 |
%license aardvark-dns-%{aardvark_dns_commit0}/LICENSE
|
|
|
0a5665 |
%endif
|
|
|
b3f89b |
%dir %{_libexecdir}/podman
|
|
|
b3f89b |
%{_libexecdir}/podman/%{name}
|
|
|
b3f89b |
|
|
|
b3f89b |
%changelog
|
|
|
0a5665 |
* Thu Oct 20 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-5
|
|
|
0a5665 |
- fix "Two aardvark-dns instances trying to use the same port
|
|
|
0a5665 |
on the same interface"
|
|
|
0a5665 |
- Resolves: #2130234
|
|
|
0a5665 |
|
|
|
b3f89b |
* Wed Aug 24 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-4
|
|
|
b3f89b |
- remove windows binaries and regenerate vendor tarball
|
|
|
b3f89b |
- Related: #2061390
|
|
|
b3f89b |
|
|
|
b3f89b |
* Tue Aug 09 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-3
|
|
|
b3f89b |
- add gating.yaml
|
|
|
b3f89b |
- Related: #2061390
|
|
|
b3f89b |
|
|
|
b3f89b |
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-2
|
|
|
b3f89b |
- bump Epoch to preserve upgrade path
|
|
|
b3f89b |
- Related: #2061390
|
|
|
b3f89b |
|
|
|
b3f89b |
* Wed Aug 3 2022 Jindrich Novy <jnovy@redhat.com> 1.1.0-1
|
|
|
b3f89b |
- initial import
|
|
|
b3f89b |
- Related: #2061390
|