import aardvark-dns-1.5.0-2.module+el8.8.0+18060+3f21f2cc

This commit is contained in:
CentOS Sources 2023-05-16 06:04:22 +00:00 committed by Stepan Oksanichenko
parent 0267c3d382
commit a00a691f27
3 changed files with 33 additions and 46 deletions

View File

@ -1,2 +1,2 @@
f489e0da9d838a60c291be7b70ecfb506884063a SOURCES/aardvark-dns-v1.1.0-vendor.tar.gz 39ac41d514839dcc34bbf1db142ec63a59f8d47f SOURCES/aardvark-dns-v1.5.0-vendor.tar.gz
4cf03433c861419f77fe672415b6cac452668c91 SOURCES/v1.1.0-rhel-4847c54.tar.gz 84c175b7fabd69b3abfe3f60c4859661cc02f267 SOURCES/v1.5.0.tar.gz

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/aardvark-dns-v1.1.0-vendor.tar.gz SOURCES/aardvark-dns-v1.5.0-vendor.tar.gz
SOURCES/v1.1.0-rhel-4847c54.tar.gz SOURCES/v1.5.0.tar.gz

View File

@ -1,25 +1,16 @@
# debuginfo doesn't work yet # debuginfo doesn't work yet
%global debug_package %{nil} %global debug_package %{nil}
%global aardvark_dns_version v1.1.0
%global aardvark_dns_branch v1.1.0-rhel
%global aardvark_dns_commit0 4847c54770c2de4a0f9873ff5d99cad8609a0baf
%global aardvark_dns_shortcommit0 %(c=%{aardvark_dns_commit0}; echo ${c:0:7})
Epoch: 2 Epoch: 2
Name: aardvark-dns Name: aardvark-dns
Version: 1.1.0 Version: 1.5.0
License: ASL 2.0 and BSD and MIT License: ASL 2.0 and BSD and MIT
Release: 5%{?dist} Release: 2%{?dist}
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
Summary: Authoritative DNS server for A/AAAA container records Summary: Authoritative DNS server for A/AAAA container records
URL: https://github.com/containers/aardvark-dns URL: https://github.com/containers/aardvark-dns
%if 0%{?aardvark_dns_branch:1} Source0: %{url}/archive/v%{version}.tar.gz
Source0: https://github.com/containers/aardvark-dns/tarball/%{aardvark_dns_commit0}/%{aardvark_dns_branch}-%{aardvark_dns_shortcommit0}.tar.gz Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-vendor.tar.gz
%else
Source0: https://github.com/containers/aardvark-dns/archive/%{aardvark_dns_commit0}/aardvark-dns-%{aardvark_dns_version}-%{aardvark_dns_shortcommit0}.tar.gz
%endif
Source1: https://github.com/containers/aardvark-dns/releases/download/%{aardvark_dns_version}/aardvark-dns-%{aardvark_dns_version}-vendor.tar.gz
BuildRequires: cargo BuildRequires: cargo
BuildRequires: git-core BuildRequires: git-core
BuildRequires: make BuildRequires: make
@ -32,12 +23,7 @@ Forwards other request to configured resolvers.
Read more about configuration in `src/backend/mod.rs`. Read more about configuration in `src/backend/mod.rs`.
%prep %prep
tar fx %{SOURCE0} %autosetup -Sgit
%if 0%{?aardvark_dns_branch:1}
pushd containers-aardvark-dns-%{aardvark_dns_shortcommit0}
%else
pushd aardvark-dns-%{aardvark_dns_commit0}
%endif
tar fx %{SOURCE1} tar fx %{SOURCE1}
mkdir -p .cargo mkdir -p .cargo
@ -47,41 +33,42 @@ replace-with = "vendored-sources"
[source.vendored-sources] [source.vendored-sources]
directory = "vendor" directory = "vendor"
[net]
offline = true
EOF EOF
%build %build
%if 0%{?aardvark_dns_branch:1} %{__make} build
pushd containers-aardvark-dns-%{aardvark_dns_shortcommit0}
%else
pushd aardvark-dns-%{aardvark_dns_commit0}
%endif
%__scm_setup_git -q
%make_build build
popd
%install %install
%if 0%{?aardvark_dns_branch:1}
pushd containers-aardvark-dns-%{aardvark_dns_shortcommit0}
%else
pushd aardvark-dns-%{aardvark_dns_commit0}
%endif
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
popd
%files %files
%if 0%{?aardvark_dns_branch:1} %license LICENSE
%license containers-aardvark-dns-%{aardvark_dns_shortcommit0}/LICENSE
%else
%license aardvark-dns-%{aardvark_dns_commit0}/LICENSE
%endif
%dir %{_libexecdir}/podman %dir %{_libexecdir}/podman
%{_libexecdir}/podman/%{name} %{_libexecdir}/podman/%{name}
%changelog %changelog
* Thu Oct 20 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-5 * Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-2
- fix "Two aardvark-dns instances trying to use the same port - always stay offline during build
on the same interface" - Related: #2123641
- Resolves: #2130234
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-1
- update to https://github.com/containers/aardvark-dns/releases/tag/v1.5.0
- Related: #2123641
* Thu Dec 08 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.4.0-1
- update to https://github.com/containers/aardvark-dns/releases/tag/v1.4.0
- Related: #2123641
* Mon Nov 14 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.3.0-1
- update to https://github.com/containers/aardvark-dns/releases/tag/v1.3.0
- Related: #2123641
* Wed Sep 28 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.2.0-1
- update to https://github.com/containers/aardvark-dns/releases/tag/v1.2.0
- Related: #2116481
* Wed Aug 24 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-4 * Wed Aug 24 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-4
- remove windows binaries and regenerate vendor tarball - remove windows binaries and regenerate vendor tarball