Blame SPECS/netavark.spec

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