Blame SPECS/netavark.spec

ee5761
# debuginfo doesn't work yet
ee5761
%global debug_package %{nil}
ee5761
ee5761
Epoch: 2
ee5761
Name: netavark
d193a8
Version: 1.5.0
d193a8
Release: 2%{?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
d193a8
BuildRequires: protobuf-compiler
d193a8
BuildRequires: protobuf-c
d193a8
BuildRequires: gcc
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
d193a8
[net]
d193a8
offline = true
d193a8
d193a8
[source."https://github.com/containers/netavark-dhcp-proxy"]
d193a8
git = "https://github.com/containers/netavark-dhcp-proxy"
d193a8
replace-with = "vendored-sources"
d193a8
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
d193a8
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-2
d193a8
- fix build - thank to Paul Holzinger
d193a8
- Related: #2124478
d193a8
d193a8
* Fri Feb 03 2023 Jindrich Novy <jnovy@redhat.com> - 2:1.5.0-1
d193a8
- update to https://github.com/containers/netavark/releases/tag/v1.5.0
d193a8
- Related: #2124478
d193a8
d193a8
* Thu Dec 08 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.4.0-1
d193a8
- update to https://github.com/containers/netavark/releases/tag/v1.4.0
d193a8
- Related: #2124478
d193a8
d193a8
* Wed Nov 16 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.3.0-1
d193a8
- update to https://github.com/containers/netavark/releases/tag/v1.3.0
d193a8
- Related: #2124478
d193a8
d193a8
* Tue Oct 18 2022 Jindrich Novy <jnovy@redhat.com> - 2:1.2.0-1
d193a8
- update to https://github.com/containers/netavark/releases/tag/v1.2.0
d193a8
- Related: #2124478
d193a8
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