aardvark-dns-1.5.0-3.el8

- always stay offline during build
- Related: #2123641

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
Jindrich Novy 2023-03-08 13:56:32 +01:00 committed by Adam Samalik
commit 58e933fbe3
3 changed files with 74 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/*.tar.gz

71
aardvark-dns.spec Normal file
View File

@ -0,0 +1,71 @@
# debuginfo doesn't work yet
%global debug_package %{nil}
Epoch: 2
Name: aardvark-dns
Version: 1.5.0
License: ASL 2.0 and BSD and MIT
Release: 3%{?dist}
ExclusiveArch: %{rust_arches}
Summary: Authoritative DNS server for A/AAAA container records
URL: https://github.com/containers/aardvark-dns
Source0: %{url}/archive/v%{version}.tar.gz
Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-vendor.tar.gz
BuildRequires: cargo
BuildRequires: git-core
BuildRequires: make
BuildRequires: rust-srpm-macros
%description
%{summary}
Forwards other request to configured resolvers.
Read more about configuration in `src/backend/mod.rs`.
%prep
%autosetup -Sgit
tar fx %{SOURCE1}
mkdir -p .cargo
cat >.cargo/config << EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
[net]
offline = true
EOF
%build
%{__make} build
%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
%files
%license LICENSE
%dir %{_libexecdir}/podman
%{_libexecdir}/podman/%{name}
%changelog
* Wed Mar 08 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-3
- always stay offline during build
- Related: #2123641
* Wed Aug 24 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-4
- remove windows binaries and regenerate vendor tarball
- Related: #2061390
* Tue Aug 09 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-3
- add gating.yaml
- Related: #2061390
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-2
- bump Epoch to preserve upgrade path
- Related: #2061390
* Wed Aug 3 2022 Jindrich Novy <jnovy@redhat.com> 1.1.0-1
- initial import
- Related: #2061390

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (v1.5.0.tar.gz) = a648f44023bdbcbd4db502a307e42f1e1eb7718be5b559e6e9f1df43ac3a8982afe83ed866ca64bcf9bbece0eca4877713967654e195f7c6958e13aa0440189f
SHA512 (aardvark-dns-v1.5.0-vendor.tar.gz) = 5ce1654ca9ac6000f6bfc0e97cf14f666c4a6810349ae8ec5f914054aefad7dbaa44fcf1c4f171c45a5cba32fd6cabd039469b01049a8a4ae2c936627280ba04