Blame SPECS/netavark.spec

34274c
# debuginfo doesn't work yet
34274c
%global debug_package %{nil}
34274c
11f1cf
%global branch v1.5.0
11f1cf
%global commit0 530dacd1ff48b2ad2b0cb1f1ee1ba78c8274a3b7
11f1cf
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
11f1cf
34274c
Epoch: 2
34274c
Name: netavark
32f8d3
Version: 1.5.0
11f1cf
Release: 5%{?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}
11f1cf
%if 0%{?branch:1}
11f1cf
Source0: https://github.com/containers/%{name}/tarball/%{commit0}/%{branch}-%{shortcommit0}.tar.gz
11f1cf
%else
11f1cf
Source0: https://github.com/containers/%{name}/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz
11f1cf
%endif
32f8d3
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
32f8d3
BuildRequires: protobuf-compiler
32f8d3
BuildRequires: protobuf-c
32f8d3
BuildRequires: gcc
32f8d3
# https://github.com/containers/netavark/issues/578
32f8d3
ExcludeArch: i686
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
11f1cf
%if 0%{?branch:1}
11f1cf
%autosetup -Sgit -n containers-%{name}-%{shortcommit0}
11f1cf
%else
11f1cf
%autosetup -Sgit -n %{name}-%{commit0}
11f1cf
%endif
34274c
tar fx %{SOURCE1}
34274c
mkdir -p .cargo
34274c
34274c
cat >.cargo/config << EOF
34274c
[source.crates-io]
34274c
replace-with = "vendored-sources"
34274c
32f8d3
[net]
32f8d3
offline = true
32f8d3
32f8d3
[source."https://github.com/containers/netavark-dhcp-proxy"]
32f8d3
git = "https://github.com/containers/netavark-dhcp-proxy"
32f8d3
replace-with = "vendored-sources"
32f8d3
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
32f8d3
%license LICENSE
34274c
%dir %{_libexecdir}/podman
34274c
%{_libexecdir}/podman/%{name}
34274c
%{_mandir}/man1/%{name}.1*
34274c
34274c
%changelog
11f1cf
* Thu Apr 20 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-5
11f1cf
- fix --dns-add command is not functioning
11f1cf
- Resolves: #2182897
11f1cf
32f8d3
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-4
32f8d3
- exclude i686
32f8d3
- Related: #2123641
32f8d3
32f8d3
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-3
32f8d3
- update build parameters
32f8d3
- Related: #2123641
32f8d3
32f8d3
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-2
32f8d3
- always stay offline during build
32f8d3
- Related: #2123641
32f8d3
32f8d3
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-1
32f8d3
- update to https://github.com/containers/netavark/releases/tag/v1.5.0
32f8d3
- Related: #2123641
32f8d3
32f8d3
* Thu Dec 08 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.4.0-1
32f8d3
- update to https://github.com/containers/netavark/releases/tag/v1.4.0
32f8d3
- Related: #2123641
32f8d3
32f8d3
* Mon Nov 14 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.3.0-1
32f8d3
- update to https://github.com/containers/netavark/releases/tag/v1.3.0
32f8d3
- Related: #2123641
32f8d3
32f8d3
* Wed Sep 28 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.2.0-1
32f8d3
- update to https://github.com/containers/netavark/releases/tag/v1.2.0
32f8d3
- Resolves: #2116481
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