|
|
c42b43 |
# debuginfo doesn't work yet
|
|
|
c42b43 |
%global debug_package %{nil}
|
|
|
c42b43 |
|
|
|
c42b43 |
Epoch: 2
|
|
|
c42b43 |
Name: netavark
|
|
|
c42b43 |
Version: 1.1.0
|
|
|
c42b43 |
Release: 6%{?dist}
|
|
|
c42b43 |
License: ASL 2.0 and BSD and MIT
|
|
|
c42b43 |
ExclusiveArch: %{rust_arches}
|
|
|
c42b43 |
Summary: OCI network stack
|
|
|
c42b43 |
URL: https://github.com/containers/%{name}
|
|
|
c42b43 |
Source0: %{url}/archive/v%{version}/%{version}.tar.gz
|
|
|
c42b43 |
Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-vendor.tar.gz
|
|
|
c42b43 |
Source2: netavark.1
|
|
|
c42b43 |
BuildRequires: cargo
|
|
|
c42b43 |
Recommends: aardvark-dns >= 1.0.3
|
|
|
c42b43 |
Provides: container-network-stack = 2
|
|
|
c42b43 |
BuildRequires: make
|
|
|
c42b43 |
BuildRequires: rust-srpm-macros
|
|
|
c42b43 |
BuildRequires: git-core
|
|
|
c42b43 |
|
|
|
c42b43 |
%description
|
|
|
c42b43 |
%{summary}
|
|
|
c42b43 |
|
|
|
c42b43 |
Netavark is a rust based network stack for containers. It is being
|
|
|
c42b43 |
designed to work with Podman but is also applicable for other OCI
|
|
|
c42b43 |
container management applications.
|
|
|
c42b43 |
|
|
|
c42b43 |
Netavark is a tool for configuring networking for Linux containers.
|
|
|
c42b43 |
Its features include:
|
|
|
c42b43 |
* Configuration of container networks via JSON configuration file
|
|
|
c42b43 |
* Creation and management of required network interfaces,
|
|
|
c42b43 |
including MACVLAN networks
|
|
|
c42b43 |
* All required firewall configuration to perform NAT and port
|
|
|
c42b43 |
forwarding as required for containers
|
|
|
c42b43 |
* Support for iptables and firewalld at present, with support
|
|
|
c42b43 |
for nftables planned in a future release
|
|
|
c42b43 |
* Support for rootless containers
|
|
|
c42b43 |
* Support for IPv4 and IPv6
|
|
|
c42b43 |
* Support for container DNS resolution via aardvark-dns.
|
|
|
c42b43 |
|
|
|
c42b43 |
%prep
|
|
|
c42b43 |
%autosetup -Sgit
|
|
|
c42b43 |
tar fx %{SOURCE1}
|
|
|
c42b43 |
mkdir -p .cargo
|
|
|
c42b43 |
|
|
|
c42b43 |
cat >.cargo/config << EOF
|
|
|
c42b43 |
[source.crates-io]
|
|
|
c42b43 |
replace-with = "vendored-sources"
|
|
|
c42b43 |
|
|
|
c42b43 |
[source.vendored-sources]
|
|
|
c42b43 |
directory = "vendor"
|
|
|
c42b43 |
EOF
|
|
|
c42b43 |
|
|
|
c42b43 |
%build
|
|
|
c42b43 |
%{__make} build
|
|
|
c42b43 |
|
|
|
c42b43 |
cd docs
|
|
|
c42b43 |
cp %{SOURCE2} .
|
|
|
c42b43 |
|
|
|
c42b43 |
%install
|
|
|
c42b43 |
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
c42b43 |
|
|
|
c42b43 |
%files
|
|
|
c42b43 |
%license LICENSE
|
|
|
c42b43 |
%dir %{_libexecdir}/podman
|
|
|
c42b43 |
%{_libexecdir}/podman/%{name}
|
|
|
c42b43 |
%{_mandir}/man1/%{name}.1*
|
|
|
c42b43 |
|
|
|
c42b43 |
%changelog
|
|
|
c42b43 |
* Tue Aug 09 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-6
|
|
|
c42b43 |
- bump Epoch to preserve upgrade path
|
|
|
c42b43 |
- Related: #2061390
|
|
|
c42b43 |
|
|
|
c42b43 |
* Tue Aug 09 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-5
|
|
|
c42b43 |
- remove dependency on md2man
|
|
|
c42b43 |
- Related: #2061390
|
|
|
c42b43 |
|
|
|
c42b43 |
* Tue Aug 09 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-4
|
|
|
c42b43 |
- fix arches
|
|
|
c42b43 |
- Related: #2061390
|
|
|
c42b43 |
|
|
|
c42b43 |
* Tue Aug 09 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-3
|
|
|
c42b43 |
- add gating.yaml
|
|
|
c42b43 |
- Related: #2061390
|
|
|
c42b43 |
|
|
|
c42b43 |
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-2
|
|
|
c42b43 |
- require /usr/bin/go-md2man directly
|
|
|
c42b43 |
|
|
|
c42b43 |
* Wed Aug 03 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.0-1
|
|
|
c42b43 |
- initial import
|
|
|
c42b43 |
- Related: #2061390
|