|
|
90edd9 |
# debuginfo doesn't work yet
|
|
|
90edd9 |
%global debug_package %{nil}
|
|
|
90edd9 |
|
|
|
90edd9 |
Epoch: 2
|
|
|
90edd9 |
Name: netavark
|
|
|
a9577c |
Version: 1.5.0
|
|
|
a9577c |
Release: 2%{?dist}
|
|
|
90edd9 |
License: ASL 2.0 and BSD and MIT
|
|
|
90edd9 |
ExclusiveArch: %{rust_arches}
|
|
|
a9577c |
# this is needed for go-md2man
|
|
|
a9577c |
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
|
|
|
a9577c |
ExclusiveArch: %{go_arches}
|
|
|
a9577c |
ExcludeArch: i686
|
|
|
90edd9 |
Summary: OCI network stack
|
|
|
90edd9 |
URL: https://github.com/containers/%{name}
|
|
|
a9577c |
Source0: %{url}/archive/v%{version}/%{version}.tar.gz
|
|
|
a9577c |
Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-vendor.tar.gz
|
|
|
90edd9 |
BuildRequires: cargo
|
|
|
a9577c |
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
|
|
|
a9577c |
BuildRequires: protobuf-compiler
|
|
|
a9577c |
BuildRequires: protobuf-c
|
|
|
a9577c |
BuildRequires: gcc
|
|
|
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
|
|
|
a9577c |
%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 |
|
|
|
a9577c |
[net]
|
|
|
a9577c |
offline = true
|
|
|
a9577c |
|
|
|
a9577c |
[source."https://github.com/containers/netavark-dhcp-proxy"]
|
|
|
a9577c |
git = "https://github.com/containers/netavark-dhcp-proxy"
|
|
|
a9577c |
replace-with = "vendored-sources"
|
|
|
a9577c |
|
|
|
90edd9 |
[source.vendored-sources]
|
|
|
90edd9 |
directory = "vendor"
|
|
|
90edd9 |
EOF
|
|
|
90edd9 |
|
|
|
90edd9 |
%build
|
|
|
90edd9 |
%{__make} build
|
|
|
90edd9 |
|
|
|
90edd9 |
cd docs
|
|
|
a9577c |
go-md2man -in %{name}.1.md -out %{name}.1
|
|
|
90edd9 |
|
|
|
90edd9 |
%install
|
|
|
90edd9 |
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
90edd9 |
|
|
|
90edd9 |
%files
|
|
|
a9577c |
%license LICENSE
|
|
|
90edd9 |
%dir %{_libexecdir}/podman
|
|
|
90edd9 |
%{_libexecdir}/podman/%{name}
|
|
|
90edd9 |
%{_mandir}/man1/%{name}.1*
|
|
|
90edd9 |
|
|
|
90edd9 |
%changelog
|
|
|
a9577c |
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-2
|
|
|
a9577c |
- fix build - thank to Paul Holzinger
|
|
|
a9577c |
- Related: #2124478
|
|
|
a9577c |
|
|
|
a9577c |
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-1
|
|
|
a9577c |
- update to https://github.com/containers/netavark/releases/tag/v1.5.0
|
|
|
a9577c |
- Related: #2124478
|
|
|
a9577c |
|
|
|
a9577c |
* Thu Dec 08 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.4.0-1
|
|
|
a9577c |
- update to https://github.com/containers/netavark/releases/tag/v1.4.0
|
|
|
a9577c |
- Related: #2124478
|
|
|
a9577c |
|
|
|
a9577c |
* Wed Nov 16 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.3.0-1
|
|
|
a9577c |
- update to https://github.com/containers/netavark/releases/tag/v1.3.0
|
|
|
a9577c |
- Related: #2124478
|
|
|
a9577c |
|
|
|
a9577c |
* Tue Oct 18 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.2.0-1
|
|
|
a9577c |
- update to https://github.com/containers/netavark/releases/tag/v1.2.0
|
|
|
a9577c |
- Related: #2124478
|
|
|
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
|