File slirp4netns.spec of Package slirp4netns

#
# spec file for package slirp4netns
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define git_commit       39e87c0e66345edf7fd6e0bd1f61aa842617e757
%define git_short_commit 39e87c0e6634
# git_revision=r$(git rev-list HEAD | wc -l)
%define git_revision     r54
Name:           slirp4netns
Version:        0.1+git%{git_revision}_%{git_short_commit}
Release:        0
Summary:        User-mode networking for unprivileged network namespaces
License:        GPL-2.0-only
Group:          System/Management
URL:            https://github.com/rootless-containers/slirp4netns
Source0:        %{name}-git.%{git_short_commit}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  git
BuildRequires:  go-go-md2man
BuildRequires:  make

%description
slirp for network namespaces, without copying buffers across the namespaces.

%prep
%setup -q -n %{name}-git.%{git_short_commit}

%build
./autogen.sh
%configure
make %{?_smp_mflags}
make %{?_smp_mflags} generate-man

%install
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
install -d %{buildroot}/%{_mandir}/man1
install -m 0644 %{name}.1 %{buildroot}/%{_mandir}/man1

%files
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by