Blame SPECS/netavark.spec

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