Revert "slirp4netns package is retired on branch c10s for CS-2551"

Resolves: RHEL-65176

This reverts commit c36988fd7b.
This commit is contained in:
Jindrich Novy 2024-10-29 09:14:00 +01:00
parent c36988fd7b
commit 215698cffd
6 changed files with 71 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/*.tar.*

View File

@ -1,3 +1,3 @@
# Package Not Available
This package is not available on CentOS Stream 10.
It may be available on another branch.
# slirp4netns
The slirp4netns package

View File

@ -1 +0,0 @@
slirp4netns package is retired on branch c10s for CS-2551

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
# recipients: jnovy, lsm5, santiago
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules: []

60
slirp4netns.spec Normal file
View File

@ -0,0 +1,60 @@
Name: slirp4netns
Version: 1.3.1
Release: 3%{?dist}
License: GPL-2.0-only
Summary: slirp for network namespaces
URL: https://github.com/rootless-containers/%{name}
# Tarball fetched from upstream
Source0: %{url}/archive/v%{version}.tar.gz
ExclusiveArch: %{golang_arches_future}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: go-md2man
BuildRequires: gcc
BuildRequires: glib2-devel
BuildRequires: git-core
BuildRequires: libcap-devel
BuildRequires: libseccomp-devel
BuildRequires: libslirp-devel
BuildRequires: make
%description
slirp for network namespaces, without copying buffers across the namespaces.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.
%prep
%autosetup -Sgit %{name}-%{built_tag_strip}
%build
./autogen.sh
./configure --prefix=%{_usr} --libdir=%{_libdir}
%{__make} generate-man
%install
make DESTDIR=%{buildroot} install install-man
%check
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%changelog
* Tue Oct 29 2024 Jindrich Novy <jnovy@redhat.com> - 1.3.1-3
- revive slirp4netns
- Resolves: RHEL-65176

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (v1.3.1.tar.gz) = a4fe17116127df71033f48c969e6aecdaeef8b9927c899884451cafb4f166582d437978d4d956f13b3ae5f38b29e949a18d2ea43c70b3dcbe475d00a48f2a060