|
|
90edd9 |
# debuginfo doesn't work yet
|
|
|
90edd9 |
%global debug_package %{nil}
|
|
|
90edd9 |
|
|
|
c90928 |
%global netavark_version v1.1.0
|
|
|
c90928 |
%global netavark_branch v1.1.0-rhel
|
|
|
c90928 |
%global netavark_commit0 e868e02552bd1be28d8eb6a193f2e92b0e0643bf
|
|
|
c90928 |
%global netavark_shortcommit0 %(c=%{netavark_commit0}; echo ${c:0:7})
|
|
|
c90928 |
|
|
|
90edd9 |
Epoch: 2
|
|
|
90edd9 |
Name: netavark
|
|
|
90edd9 |
Version: 1.1.0
|
|
|
c90928 |
Release: 7%{?dist}
|
|
|
90edd9 |
License: ASL 2.0 and BSD and MIT
|
|
|
90edd9 |
ExclusiveArch: %{rust_arches}
|
|
|
90edd9 |
Summary: OCI network stack
|
|
|
90edd9 |
URL: https://github.com/containers/%{name}
|
|
|
c90928 |
%if 0%{?netavark_branch:1}
|
|
|
c90928 |
Source0: https://github.com/containers/netavark/tarball/%{netavark_commit0}/%{netavark_branch}-%{netavark_shortcommit0}.tar.gz
|
|
|
c90928 |
%else
|
|
|
c90928 |
Source0: https://github.com/containers/netavark/archive/%{netavark_commit0}/netavark-%{netavark_version}-%{netavark_shortcommit0}.tar.gz
|
|
|
c90928 |
%endif
|
|
|
c90928 |
Source1: https://github.com/containers/netavark/releases/download/%{netavark_version}/netavark-%{netavark_version}-vendor.tar.gz
|
|
|
c90928 |
Source2: netavark.1
|
|
|
90edd9 |
BuildRequires: cargo
|
|
|
90edd9 |
Recommends: aardvark-dns >= 1.0.3
|
|
|
90edd9 |
Provides: container-network-stack = 2
|
|
|
90edd9 |
BuildRequires: make
|
|
|
90edd9 |
BuildRequires: rust-srpm-macros
|
|
|
90edd9 |
BuildRequires: git-core
|
|
|
90edd9 |
|
|
|
90edd9 |
%description
|
|
|
90edd9 |
%{summary}
|
|
|
90edd9 |
|
|
|
90edd9 |
Netavark is a rust based network stack for containers. It is being
|
|
|
90edd9 |
designed to work with Podman but is also applicable for other OCI
|
|
|
90edd9 |
container management applications.
|
|
|
90edd9 |
|
|
|
90edd9 |
Netavark is a tool for configuring networking for Linux containers.
|
|
|
90edd9 |
Its features include:
|
|
|
90edd9 |
* Configuration of container networks via JSON configuration file
|
|
|
90edd9 |
* Creation and management of required network interfaces,
|
|
|
90edd9 |
including MACVLAN networks
|
|
|
90edd9 |
* All required firewall configuration to perform NAT and port
|
|
|
90edd9 |
forwarding as required for containers
|
|
|
90edd9 |
* Support for iptables and firewalld at present, with support
|
|
|
90edd9 |
for nftables planned in a future release
|
|
|
90edd9 |
* Support for rootless containers
|
|
|
90edd9 |
* Support for IPv4 and IPv6
|
|
|
90edd9 |
* Support for container DNS resolution via aardvark-dns.
|
|
|
90edd9 |
|
|
|
90edd9 |
%prep
|
|
|
c90928 |
tar fx %{SOURCE0}
|
|
|
c90928 |
%if 0%{?netavark_branch:1}
|
|
|
c90928 |
pushd containers-netavark-%{netavark_shortcommit0}
|
|
|
c90928 |
%else
|
|
|
c90928 |
pushd netavark-%{netavark_commit0}
|
|
|
c90928 |
%endif
|
|
|
c90928 |
|
|
|
90edd9 |
tar fx %{SOURCE1}
|
|
|
90edd9 |
mkdir -p .cargo
|
|
|
90edd9 |
|
|
|
90edd9 |
cat >.cargo/config << EOF
|
|
|
90edd9 |
[source.crates-io]
|
|
|
90edd9 |
replace-with = "vendored-sources"
|
|
|
90edd9 |
|
|
|
90edd9 |
[source.vendored-sources]
|
|
|
90edd9 |
directory = "vendor"
|
|
|
90edd9 |
EOF
|
|
|
90edd9 |
|
|
|
90edd9 |
%build
|
|
|
c90928 |
%if 0%{?netavark_branch:1}
|
|
|
c90928 |
pushd containers-netavark-%{netavark_shortcommit0}
|
|
|
c90928 |
%else
|
|
|
c90928 |
pushd netavark-%{netavark_commit0}
|
|
|
c90928 |
%endif
|
|
|
c90928 |
%__scm_setup_git -q
|
|
|
90edd9 |
%{__make} build
|
|
|
90edd9 |
|
|
|
90edd9 |
cd docs
|
|
|
c90928 |
cp %{SOURCE2} .
|
|
|
90edd9 |
|
|
|
90edd9 |
%install
|
|
|
c90928 |
%if 0%{?netavark_branch:1}
|
|
|
c90928 |
pushd containers-netavark-%{netavark_shortcommit0}
|
|
|
c90928 |
%else
|
|
|
c90928 |
pushd netavark-%{netavark_commit0}
|
|
|
c90928 |
%endif
|
|
|
90edd9 |
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
90edd9 |
|
|
|
90edd9 |
%files
|
|
|
c90928 |
%if 0%{?netavark_branch:1}
|
|
|
c90928 |
%license containers-netavark-%{netavark_shortcommit0}/LICENSE
|
|
|
c90928 |
%else
|
|
|
c90928 |
%license netavark-%{netavark_commit0}/LICENSE
|
|
|
c90928 |
%endif
|
|
|
90edd9 |
%dir %{_libexecdir}/podman
|
|
|
90edd9 |
%{_libexecdir}/podman/%{name}
|
|
|
90edd9 |
%{_mandir}/man1/%{name}.1*
|
|
|
90edd9 |
|
|
|
90edd9 |
%changelog
|
|
|
c90928 |
* Thu Oct 20 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-7
|
|
|
c90928 |
- fix "Two aardvark-dns instances trying to use the same port
|
|
|
c90928 |
on the same interface"
|
|
|
c90928 |
- Resolves: #2136306
|
|
|
c90928 |
|
|
|
90edd9 |
* Fri Aug 05 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-6
|
|
|
90edd9 |
- add gating.yaml
|
|
|
90edd9 |
- Related: #2061316
|
|
|
90edd9 |
|
|
|
90edd9 |
* Fri Aug 05 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-5
|
|
|
90edd9 |
- properly disable i686
|
|
|
90edd9 |
- Related: #2061316
|
|
|
90edd9 |
|
|
|
90edd9 |
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-4
|
|
|
90edd9 |
- manually exclude i686 as build still fails
|
|
|
90edd9 |
- Related: #2061316
|
|
|
90edd9 |
|
|
|
90edd9 |
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-3
|
|
|
90edd9 |
- set Epoch to preserve update path and build for go arches only
|
|
|
90edd9 |
- Related: #2061316
|
|
|
90edd9 |
|
|
|
90edd9 |
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-2
|
|
|
90edd9 |
- fix deps to go-md2man
|
|
|
90edd9 |
- Related: #2061316
|
|
|
90edd9 |
|
|
|
90edd9 |
* Wed Aug 03 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-1
|
|
|
90edd9 |
- initial import
|
|
|
90edd9 |
- Related: #2061316
|