Blame SPECS/netavark.spec

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