d1b17d
%global git0 https://github.com/rootless-containers/%{name}
d1b17d
%global commit0 21fdece2737dc24ffa3f01a341b8a6854f8b13b4
d1b17d
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
d1b17d
d1b17d
Name: slirp4netns
d1b17d
Version: 0.4.2
d1b17d
Release: 3.git%{shortcommit0}%{?dist}
d1b17d
Summary: slirp for network namespaces
d1b17d
License: GPLv2
d1b17d
URL: %{git0}
d1b17d
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
d1b17d
Patch0: slirp4netns-CVE-2020-7039.patch
d1b17d
Patch1: slirp4netns-CVE-2020-8608.patch
d1b17d
BuildRequires: autoconf
d1b17d
BuildRequires: automake
d1b17d
BuildRequires: gcc
d1b17d
BuildRequires: glib2-devel
d1b17d
BuildRequires: git
d1b17d
BuildRequires: go-md2man
d1b17d
BuildRequires: libcap-devel
d1b17d
BuildRequires: libseccomp-devel
d1b17d
BuildRequires: make
d1b17d
d1b17d
%description
d1b17d
slirp for network namespaces, without copying buffers across the namespaces.
d1b17d
d1b17d
%package devel
d1b17d
Summary: %{summary}
d1b17d
BuildArch: noarch
d1b17d
d1b17d
%description devel
d1b17d
%{summary}
d1b17d
d1b17d
This package contains library source intended for
d1b17d
building other packages which use import path with
d1b17d
%{import_path} prefix.
d1b17d
d1b17d
%prep
d1b17d
%autosetup -Sgit -n %{name}-%{commit0}
d1b17d
d1b17d
%build
d1b17d
./autogen.sh
d1b17d
./configure --prefix=%{_usr} --libdir=%{_libdir}
d1b17d
%{__make} generate-man
d1b17d
d1b17d
%install
d1b17d
make DESTDIR=%{buildroot} install install-man
d1b17d
d1b17d
%check
d1b17d
d1b17d
#define license tag if not already defined
d1b17d
%{!?_licensedir:%global license %doc}
d1b17d
d1b17d
%files
d1b17d
%license COPYING
d1b17d
%doc README.md
d1b17d
%{_bindir}/%{name}
d1b17d
%{_mandir}/man1/%{name}.1.gz
d1b17d
d1b17d
%changelog
d1b17d
* Thu Feb 06 2020 Jindrich Novy <jnovy@redhat.com> - 0.4.2-3.git21fdece
d1b17d
- Fix CVE-2020-8608.
d1b17d
- Related: RHELPLAN-25139
d1b17d
d1b17d
* Thu Jan 16 2020 Jindrich Novy <jnovy@redhat.com> - 0.4.2-2.git21fdece
d1b17d
- Fix CVE-2020-7039.
d1b17d
- Related: RHELPLAN-25139
d1b17d
d1b17d
* Sat Dec 07 2019 Jindrich Novy <jnovy@redhat.com> - 0.4.2-1.git21fdece
d1b17d
- update to latest 0.4.2, fixes bug 1763454
d1b17d
- Related: RHELPLAN-25139
d1b17d
d1b17d
* Thu Oct 31 2019 Jindrich Novy <jnovy@redhat.com> - 0.4.0-2
d1b17d
- add new BR: libseccomp-devel
d1b17d
- Related: #1766774
d1b17d
d1b17d
* Wed Oct 30 2019 Jindrich Novy <jnovy@redhat.com> - 0.4.0-1
d1b17d
- update to v.0.4.0
d1b17d
- sync with fedora spec
d1b17d
- drop applied CVE-2019-14378 patch
d1b17d
- Resolves: #1766774
d1b17d
d1b17d
* Thu Sep 26 2019 Jindrich Novy <jnovy@redhat.com> - 0.3.0-4
d1b17d
- Fix CVE-2019-14378 (#1755595).
d1b17d
d1b17d
* Fri Jun 07 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-3
d1b17d
- Resolves: #1683217 - BR: glib2-devel
d1b17d
d1b17d
* Fri Jun 07 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-2
d1b17d
- Resolves: #1683217 - bump slirp4netns to v0.3.0
d1b17d
d1b17d
* Thu Feb 28 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-1.alpha.2.git30883b5
d1b17d
- bump to v0.3.0-alpha.2
d1b17d
d1b17d
* Fri Nov 16 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.1-2.dev.gitc4e1bc5
d1b17d
- changed summary
d1b17d
d1b17d
* Fri Aug 10 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.1-1.dev.gitc4e1bc5
d1b17d
- First package for RHEL 8
d1b17d
- import from Fedora rawhide
d1b17d
- Exclude ix86 and ppc64