53d472
%global git0 https://github.com/rootless-containers/%{name}
53d472
%global commit0 c4e1bc5a5e6987f3a352ca524f13320a2d483398
53d472
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
53d472
53d472
Name: slirp4netns
53d472
Version: 0.1
5c0adc
Release: 3.dev.git%{shortcommit0}%{?dist}
53d472
# no go-md2man in ix86 and ppc64
53d472
ExcludeArch: %{ix86} ppc64
53d472
Summary: slirp for network namespaces
53d472
License: GPLv2
53d472
URL: %{git0}
53d472
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
5c0adc
Patch0: slirp4netns-CVE-2019-14378.patch
53d472
BuildRequires: autoconf
53d472
BuildRequires: automake
53d472
BuildRequires: gcc
53d472
BuildRequires: git
53d472
BuildRequires: go-md2man
53d472
BuildRequires: make
53d472
53d472
%description
53d472
User-mode networking for unprivileged network namespaces.
53d472
53d472
%package devel
53d472
Summary: %{summary}
53d472
BuildArch: noarch
53d472
53d472
%description devel
53d472
%{summary}
53d472
53d472
This package contains library source intended for
53d472
building other packages which use import path with
53d472
%{import_path} prefix.
53d472
53d472
%prep
53d472
%autosetup -Sgit -n %{name}-%{commit0}
53d472
53d472
%build
53d472
./autogen.sh
53d472
./configure --prefix=%{_usr} --libdir=%{_libdir}
53d472
%{__make} generate-man
53d472
53d472
%install
53d472
make DESTDIR=%{buildroot} install install-man
53d472
53d472
%check
53d472
53d472
#define license tag if not already defined
53d472
%{!?_licensedir:%global license %doc}
53d472
53d472
%files
53d472
%license COPYING
53d472
%doc README.md
53d472
%{_bindir}/%{name}
53d472
%{_mandir}/man1/%{name}.1.gz
53d472
53d472
%changelog
5c0adc
* Fri Sep 27 2019 Jindrich Novy <jnovy@redhat.com> - 0.1-3.dev.gitc4e1bc5
5c0adc
- Fix CVE-2019-14378 (#1755595).
5c0adc
53d472
* Fri Nov 16 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.1-2.dev.gitc4e1bc5
53d472
- changed summary
53d472
53d472
* Fri Aug 10 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.1-1.dev.gitc4e1bc5
53d472
- First package for RHEL 8
53d472
- import from Fedora rawhide
53d472
- Exclude ix86 and ppc64