|
|
90edd9 |
# debuginfo doesn't work yet
|
|
|
90edd9 |
%global debug_package %{nil}
|
|
|
90edd9 |
|
|
|
90edd9 |
Epoch: 2
|
|
|
90edd9 |
Name: netavark
|
|
|
90edd9 |
Version: 1.1.0
|
|
|
90edd9 |
Release: 6%{?dist}
|
|
|
90edd9 |
License: ASL 2.0 and BSD and MIT
|
|
|
90edd9 |
ExclusiveArch: %{rust_arches}
|
|
|
90edd9 |
# this is needed for go-md2man
|
|
|
90edd9 |
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
|
|
|
90edd9 |
ExclusiveArch: %{go_arches}
|
|
|
90edd9 |
ExcludeArch: i686
|
|
|
90edd9 |
Summary: OCI network stack
|
|
|
90edd9 |
URL: https://github.com/containers/%{name}
|
|
|
90edd9 |
Source0: %{url}/archive/v%{version}/%{version}.tar.gz
|
|
|
90edd9 |
Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-vendor.tar.gz
|
|
|
90edd9 |
BuildRequires: cargo
|
|
|
90edd9 |
BuildRequires: /usr/bin/go-md2man
|
|
|
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
|
|
|
90edd9 |
%autosetup -Sgit
|
|
|
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
|
|
|
90edd9 |
%{__make} build
|
|
|
90edd9 |
|
|
|
90edd9 |
cd docs
|
|
|
90edd9 |
go-md2man -in %{name}.1.md -out %{name}.1
|
|
|
90edd9 |
|
|
|
90edd9 |
%install
|
|
|
90edd9 |
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
90edd9 |
|
|
|
90edd9 |
%files
|
|
|
90edd9 |
%license LICENSE
|
|
|
90edd9 |
%dir %{_libexecdir}/podman
|
|
|
90edd9 |
%{_libexecdir}/podman/%{name}
|
|
|
90edd9 |
%{_mandir}/man1/%{name}.1*
|
|
|
90edd9 |
|
|
|
90edd9 |
%changelog
|
|
|
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
|