Blame SPECS/netavark.spec

34274c
# debuginfo doesn't work yet
34274c
%global debug_package %{nil}
34274c
dc7821
%global netavark_version v1.1.0
dc7821
%global netavark_branch v1.1.0-rhel
dc7821
%global netavark_commit0 e868e02552bd1be28d8eb6a193f2e92b0e0643bf
dc7821
%global netavark_shortcommit0 %(c=%{netavark_commit0}; echo ${c:0:7})
dc7821
34274c
Epoch: 2
34274c
Name: netavark
34274c
Version: 1.1.0
dc7821
Release: 7%{?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}
dc7821
%if 0%{?netavark_branch:1}
dc7821
Source0: https://github.com/containers/netavark/tarball/%{netavark_commit0}/%{netavark_branch}-%{netavark_shortcommit0}.tar.gz
dc7821
%else
dc7821
Source0: https://github.com/containers/netavark/archive/%{netavark_commit0}/netavark-%{netavark_version}-%{netavark_shortcommit0}.tar.gz
dc7821
%endif
dc7821
Source1: https://github.com/containers/netavark/releases/download/%{netavark_version}/netavark-%{netavark_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
dc7821
tar fx %{SOURCE0}
dc7821
%if 0%{?netavark_branch:1}
dc7821
pushd containers-netavark-%{netavark_shortcommit0}
dc7821
%else
dc7821
pushd netavark-%{netavark_commit0}
dc7821
%endif
dc7821
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
dc7821
%if 0%{?netavark_branch:1}
dc7821
pushd containers-netavark-%{netavark_shortcommit0}
dc7821
%else
dc7821
pushd netavark-%{netavark_commit0}
dc7821
%endif
dc7821
%__scm_setup_git -q
34274c
%{__make} build
34274c
34274c
cd docs
34274c
cp %{SOURCE2} .
34274c
34274c
%install
dc7821
%if 0%{?netavark_branch:1}
dc7821
pushd containers-netavark-%{netavark_shortcommit0}
dc7821
%else
dc7821
pushd netavark-%{netavark_commit0}
dc7821
%endif
34274c
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
34274c
34274c
%files
dc7821
%if 0%{?netavark_branch:1}
dc7821
%license containers-netavark-%{netavark_shortcommit0}/LICENSE
dc7821
%else
dc7821
%license netavark-%{netavark_commit0}/LICENSE
dc7821
%endif
34274c
%dir %{_libexecdir}/podman
34274c
%{_libexecdir}/podman/%{name}
34274c
%{_mandir}/man1/%{name}.1*
34274c
34274c
%changelog
dc7821
* Tue Oct 25 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.1.0-7
dc7821
- fix "Two aardvark-dns instances trying to use the same port
dc7821
  on the same interface"
dc7821
- Resolves: #2130234
dc7821
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