!1 Package init
From: @fu-shanqing Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
3cfd99c4f6
BIN
slirp4netns-6dc0186.tar.gz
Normal file
BIN
slirp4netns-6dc0186.tar.gz
Normal file
Binary file not shown.
68
slirp4netns.spec
Normal file
68
slirp4netns.spec
Normal file
@ -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 <duyiwei@kylinos.cn> - 1.1.9-1
|
||||
- Package init
|
||||
BIN
v1.0.10.tar.gz
Normal file
BIN
v1.0.10.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user