Blame SPECS/netavark.spec

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