diff --git a/slirp4netns-6dc0186.tar.gz b/slirp4netns-6dc0186.tar.gz new file mode 100644 index 0000000..a5710f9 Binary files /dev/null and b/slirp4netns-6dc0186.tar.gz differ diff --git a/slirp4netns.spec b/slirp4netns.spec new file mode 100644 index 0000000..52bcfed --- /dev/null +++ b/slirp4netns.spec @@ -0,0 +1,68 @@ +%global git0 https://github.com/rootless-containers/%{name} +%global commit0 6dc0186e020232ae1a6fcc1f7afbc3ea02fd3876 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +# Used for comparing with latest upstream tag +# to decide whether to autobuild (non-rawhide only) +%define built_tag v1.1.9 + +Name: slirp4netns +Version: 1.1.9 +Release: 1 +Summary: slirp for network namespaces +License: GPLv2 +URL: https://github.com/rootless-containers/slirp4netns +Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz +Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz +BuildRequires: autoconf automake gcc glib2-devel +BuildRequires: git libcap-devel golang +BuildRequires: libseccomp-devel libslirp-devel 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 -n %{name}-%{commit0} +tar -xf %SOURCE1 + +%build +GO_MD2MAN_PATH="$(pwd)%{_bindir}" +mkdir -p _build/bin $GO_MD2MAN_PATH +cd go-md2man-* +go build -mod=vendor -o ../_build/bin/go-md2man . +cp ../_build/bin/go-md2man $GO_MD2MAN_PATH/go-md2man +export PATH=$GO_MD2MAN_PATH:$PATH +cd - + +./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 +* Wed Jan 26 2022 duyiwei - 1.1.9-1 +- Package init \ No newline at end of file diff --git a/v1.0.10.tar.gz b/v1.0.10.tar.gz new file mode 100644 index 0000000..c6b658c Binary files /dev/null and b/v1.0.10.tar.gz differ