Blame SPECS/aardvark-dns.spec

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