b545a7
%global git0 https://github.com/rootless-containers/%{name}
b545a7
b545a7
Name: slirp4netns
a5129b
Version: 1.2.0
b4470f
Release: 2%{?dist}
b545a7
Summary: slirp for network namespaces
b545a7
License: GPLv2
b545a7
URL: %{git0}
659e87
# build fails on i686 with: No matching package to install: 'go-md2man'
659e87
ExcludeArch: i686
a447b2
Source0: %{git0}/archive/v%{version}.tar.gz
b545a7
BuildRequires: autoconf
b545a7
BuildRequires: automake
b545a7
BuildRequires: gcc
8ab258
BuildRequires: glib2-devel
511d4a
BuildRequires: git
a5129b
BuildRequires: /usr/bin/go-md2man
511d4a
BuildRequires: libcap-devel
511d4a
BuildRequires: libseccomp-devel
b545a7
BuildRequires: make
a447b2
BuildRequires: libslirp-devel
b545a7
b545a7
%description
511d4a
slirp for network namespaces, without copying buffers across the namespaces.
b545a7
b545a7
%package devel
b545a7
Summary: %{summary}
b545a7
BuildArch: noarch
b545a7
b545a7
%description devel
b545a7
%{summary}
b545a7
511d4a
This package contains library source intended for
511d4a
building other packages which use import path with
511d4a
%{import_path} prefix.
b545a7
b545a7
%prep
a447b2
%autosetup -Sgit
b545a7
b545a7
%build
777c54
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
659e87
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
b545a7
./autogen.sh
b545a7
./configure --prefix=%{_usr} --libdir=%{_libdir}
b545a7
%{__make} generate-man
b545a7
b545a7
%install
b545a7
make DESTDIR=%{buildroot} install install-man
b545a7
b545a7
%check
b545a7
b545a7
#define license tag if not already defined
b545a7
%{!?_licensedir:%global license %doc}
b545a7
b545a7
%files
b545a7
%license COPYING
b545a7
%doc README.md
b545a7
%{_bindir}/%{name}
b545a7
%{_mandir}/man1/%{name}.1.gz
b545a7
b545a7
%changelog
c8a97e
* Wed May 11 2022 Jindrich Novy <jnovy@redhat.com> - 1.2.0-2
a5129b
- BuildRequires: /usr/bin/go-md2man
a5129b
- Related: #2061390
a5129b
a5129b
* Tue May 03 2022 Jindrich Novy <jnovy@redhat.com> - 1.2.0-1
a5129b
- update to https://github.com/rootless-containers/slirp4netns/releases/tag/v1.2.0
a5129b
- Related: #2061390
a5129b
c8a97e
* Tue Feb 15 2022 Jindrich Novy <jnovy@redhat.com> - 1.1.8-2
b4470f
- fix gating - don't use insecure functions - thanks to Marc-André Lureau
b4470f
- Related: #2001445
b4470f
659e87
* Fri Dec 04 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.8-1
659e87
- update to
659e87
  https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.8
b3c774
- Related: #1883490
659e87
659e87
* Thu Dec 03 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.7-2
659e87
- exclude i686 because of build failures
b3c774
- Related: #1883490
659e87
659e87
* Thu Nov 26 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.7-1
659e87
- update to
659e87
  https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.7
b3c774
- Related: #1883490
659e87
659e87
* Mon Nov 09 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.6-2
659e87
- - be sure to harden the linked binary
b3c774
- Related: #1883490
659e87
659e87
* Thu Nov 05 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.6-1
659e87
- update to
659e87
  https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.6
b3c774
- Related: #1883490
659e87
777c54
* Tue Aug 11 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.4-2
777c54
- use proper CFLAGS
777c54
- Related: #1821193
777c54
777c54
* Mon Jul 13 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.4-1
777c54
- update to https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.4
777c54
- Related: #1821193
777c54
777c54
* Thu Jul 09 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.3-1
777c54
- update to https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.3
777c54
- Related: #1821193
777c54
777c54
* Mon Jul 06 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.2-1
777c54
- update to https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.2
777c54
- Related: #1821193
777c54
777c54
* Fri Jun 05 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.1-1
777c54
- update to https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.1
777c54
- Related: #1821193
777c54
777c54
* Fri Jun 05 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.0-1
777c54
- update to https://github.com/rootless-containers/slirp4netns/releases/tag/v1.1.0
777c54
- Related: #1821193
777c54
777c54
* Tue May 12 2020 Jindrich Novy <jnovy@redhat.com> - 1.0.1-1
a447b2
- update to https://github.com/rootless-containers/slirp4netns/archive/v1.0.1.tar.gz
777c54
- Related: #1821193
777c54
777c54
* Thu Feb 06 2020 Jindrich Novy <jnovy@redhat.com> - 0.4.2-3.git21fdece
777c54
- Fix CVE-2020-8608
777c54
- Resolves: #1798979
777c54
777c54
* Thu Jan 16 2020 Jindrich Novy <jnovy@redhat.com> - 0.4.2-2.git21fdece
777c54
- Fix CVE-2020-7039.
777c54
Resolves: #1791576
777c54
777c54
* Mon Nov 25 2019 Jindrich Novy <jnovy@redhat.com> - 0.4.2-1.git21fdece
777c54
- update to latest 0.4.2, fixes bug 1763454
777c54
- Related: RHELPLAN-25139
777c54
777c54
* Thu Oct 31 2019 Jindrich Novy <jnovy@redhat.com> - 0.4.0-2
777c54
- add new BR: libseccomp-devel
777c54
- Related: #1766774
777c54
777c54
* Wed Oct 30 2019 Jindrich Novy <jnovy@redhat.com> - 0.4.0-1
777c54
- update to v.0.4.0
777c54
- sync with fedora spec
777c54
- drop applied CVE-2019-14378 patch
777c54
- Resolves: #1766774
777c54
777c54
* Thu Sep 26 2019 Jindrich Novy <jnovy@redhat.com> - 0.3.0-4
777c54
- Fix CVE-2019-14378 (#1755595).
777c54
777c54
* Fri Jun 07 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-3
777c54
- Resolves: #1683217 - BR: glib2-devel
777c54
777c54
* Fri Jun 07 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-2
777c54
- Resolves: #1683217 - bump slirp4netns to v0.3.0
777c54
777c54
* Thu Feb 28 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-1.alpha.2.git30883b5
777c54
- bump to v0.3.0-alpha.2
777c54
777c54
* Fri Nov 16 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.1-2.dev.gitc4e1bc5
777c54
- changed summary
d0e5d3
777c54
* Fri Aug 10 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.1-1.dev.gitc4e1bc5
777c54
- First package for RHEL 8
777c54
- import from Fedora rawhide
777c54
- Exclude ix86 and ppc64