2022-10-05 13:44:58 +00:00
|
|
|
%global built_tag v1.2.0
|
2022-10-07 17:59:53 +00:00
|
|
|
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
2022-10-05 13:44:58 +00:00
|
|
|
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
|
2019-07-30 22:37:10 +00:00
|
|
|
|
2018-07-30 19:13:28 +00:00
|
|
|
Name: slirp4netns
|
2022-10-07 17:59:53 +00:00
|
|
|
Version: %{gen_version}
|
2022-05-13 14:06:04 +00:00
|
|
|
Release: %autorelease
|
2023-03-06 12:06:28 +00:00
|
|
|
License: GPL-2.0-only
|
2022-05-19 15:12:02 +00:00
|
|
|
Summary: slirp for network namespaces
|
2021-08-16 18:30:03 +00:00
|
|
|
URL: https://github.com/rootless-containers/%{name}
|
2022-10-05 13:44:58 +00:00
|
|
|
# Tarball fetched from upstream
|
|
|
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
2023-02-09 10:09:17 +00:00
|
|
|
ExclusiveArch: %{golang_arches_future}
|
2018-07-30 19:13:28 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2022-05-19 15:12:02 +00:00
|
|
|
BuildRequires: go-md2man
|
2018-07-30 19:13:28 +00:00
|
|
|
BuildRequires: gcc
|
2019-05-16 00:41:48 +00:00
|
|
|
BuildRequires: glib2-devel
|
2022-05-19 15:12:02 +00:00
|
|
|
BuildRequires: git-core
|
2019-07-31 18:37:53 +00:00
|
|
|
BuildRequires: libcap-devel
|
2019-10-31 15:29:47 +00:00
|
|
|
BuildRequires: libseccomp-devel
|
2020-03-23 13:18:44 +00:00
|
|
|
BuildRequires: libslirp-devel
|
2018-07-30 19:13:28 +00:00
|
|
|
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
|
2022-08-17 20:04:15 +00:00
|
|
|
%autosetup -Sgit %{name}-%{built_tag_strip}
|
2018-07-30 19:13:28 +00:00
|
|
|
|
|
|
|
%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
|
2022-05-13 14:06:04 +00:00
|
|
|
%autochangelog
|