Blame SPECS/libseccomp.spec

f14381
%bcond_without check
f14381
f14381
Summary: Enhanced seccomp library
f14381
Name: libseccomp
b3845a
Version: 2.5.2
f14381
Release: 1%{?dist}
f14381
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 mipsel mips64el ppc64 ppc64le s390 s390x
f14381
License: LGPLv2
f14381
Group: System Environment/Libraries
f14381
Source: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
f14381
URL: https://github.com/seccomp/libseccomp
f13b1b
b3845a
## From: https://github.com/seccomp/libseccomp/commit/5532444587fa5f33a43179ca5cc710f1bb05f51f
b3845a
Patch0101:     0101-fix-11-basic-basic_errors-on-old-kernels.patch
b3845a
f13b1b
Buildrequires: gperf
f14381
%ifarch %{valgrind_arches}
f14381
# Versions prior to 3.13.0-4 do not work on ARM with newer glibc 2.25.0-6
f14381
# See https://bugzilla.redhat.com/show_bug.cgi?id=1466017
f14381
BuildRequires: valgrind >= 1:3.13.0-4
f14381
%endif
f14381
# Upstream tests are not suited to some architectures
f14381
%ifarch s390 || s390x || ppc64le
f14381
%global good_arch 0
f14381
%else
f14381
%global good_arch 1
f14381
%endif
f14381
f14381
%description
f14381
The libseccomp library provides an easy to use interface to the Linux Kernel's
f14381
syscall filtering mechanism, seccomp.  The libseccomp API allows an application
f14381
to specify which syscalls, and optionally which syscall arguments, the
f14381
application is allowed to execute, all of which are enforced by the Linux
f14381
Kernel.
f14381
f14381
%package devel
f14381
Summary: Development files used to build applications with libseccomp support
f14381
Group: Development/Libraries
f14381
Requires: %{name}%{?_isa} = %{version}-%{release} pkgconfig
f14381
f14381
%description devel
f14381
The libseccomp library provides an easy to use interface to the Linux Kernel's
f14381
syscall filtering mechanism, seccomp.  The libseccomp API allows an application
f14381
to specify which syscalls, and optionally which syscall arguments, the
f14381
application is allowed to execute, all of which are enforced by the Linux
f14381
Kernel.
f14381
f14381
%package static
f14381
Summary: Enhanced seccomp static library
f14381
Group: Development/Libraries
f14381
Requires: %{name}-devel%{?_isa} = %{version}-%{release} pkgconfig
f14381
f14381
%description static
f14381
The libseccomp library provides an easy to use interface to the Linux Kernel's
f14381
syscall filtering mechanism, seccomp.  The libseccomp API allows an application
f14381
to specify which syscalls, and optionally which syscall arguments, the
f14381
application is allowed to execute, all of which are enforced by the Linux
f14381
Kernel.
f14381
f14381
%prep
f14381
%setup -q
f14381
b3845a
%patch0101 -p1
b3845a
f14381
%build
f14381
%configure
f14381
make V=1 %{?_smp_mflags}
f14381
f14381
%install
f14381
rm -rf "%{buildroot}"
f14381
mkdir -p "%{buildroot}/%{_libdir}"
f14381
mkdir -p "%{buildroot}/%{_includedir}"
f14381
mkdir -p "%{buildroot}/%{_mandir}"
f14381
make V=1 DESTDIR="%{buildroot}" install
f14381
rm -f "%{buildroot}/%{_libdir}/libseccomp.la"
f14381
f14381
%if %{with check} && %{good_arch}
f14381
%check
f14381
make V=1 check
f14381
%endif
f14381
f14381
%post -p /sbin/ldconfig
f14381
f14381
%postun -p /sbin/ldconfig
f14381
f14381
%files
f14381
%{!?_licensedir:%global license %%doc}
f14381
%license LICENSE
f14381
%doc CREDITS
f14381
%doc README.md
f14381
%doc CHANGELOG
f14381
%{_libdir}/libseccomp.so.*
f14381
f14381
%files devel
f14381
%{_includedir}/seccomp.h
f14381
%{_includedir}/seccomp-syscalls.h
f14381
%{_libdir}/libseccomp.so
f14381
%{_libdir}/pkgconfig/libseccomp.pc
f14381
%{_bindir}/scmp_sys_resolver
f14381
%{_mandir}/man1/*
f14381
%{_mandir}/man3/*
f14381
f14381
%files static
f14381
%{_libdir}/libseccomp.a
f14381
f14381
%changelog
b3845a
* Fri Nov 05 2021 Zoltan Fridrich <zfridric@redhat.com> - 2.5.2-1
b3845a
- rebase to 2.5.2
b3845a
  resolves: rhbz#2019893
b3845a
f13b1b
* Thu Feb 18 2021 Radovan Sroka <rsroka@redhat.com> - 2.5.1-1
f13b1b
- rebase to 2.5.1
f13b1b
  resolves: rhbz#1927635
f13b1b
f14381
* Tue Apr 21 2020 Jiri Vymazal <jvymazal@redhat.com> - 2.4.3-1
f14381
- rebase to upstream version 2.4.3 
f14381
  resolves: rhbz#1770693
f14381
  resolves: rhbz#1768583
f14381
f14381
* Fri May 31 2019 Marek Tamaskovic <mtamasko@redhat.com> - 2.4.1-1
f14381
- rebase to 2.4.1
f14381
f14381
* Fri May 10 2019 Daniel Kopecek <dkopecek@redhat.com> - 2.3.3-4
f14381
- spec: make the check phase conditional
f14381
f14381
* Fri Aug  3 2018 Florian Weimer <fweimer@redhat.com> - 2.3.3-3
f14381
- Honor %%{valgrind_arches}
f14381
f14381
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f14381
f14381
* Wed Jan 10 2018 Paul Moore <pmoore@redhat.com> - 2.3.3-1
f14381
- New upstream version
f14381
f14381
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-5
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f14381
f14381
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-4
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f14381
f14381
* Thu Jun 29 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.3.2-3
f14381
- Re-enable valgrind-based tests on ARMv7
f14381
f14381
* Thu Jun 29 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.3.2-2
f14381
- Disable running valgrind-based tests on ARMv7 due to glibc/valgrind bug (RHBZ #1466017)
f14381
f14381
* Wed Mar 01 2017 Paul Moore <pmoore@redhat.com> -2.3.2-1
f14381
- New upstream version
f14381
f14381
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f14381
f14381
* Wed Apr 20 2016 Paul Moore <pmoore@redhat.com> - 2.3.1-1
f14381
- Cleanup the changelog whitespace and escape the macros to make rpmlint happy
f14381
f14381
* Wed Apr 20 2016 Paul Moore <pmoore@redhat.com> - 2.3.1-0
f14381
- New upstream version
f14381
f14381
* Tue Mar  1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.3.0-1
f14381
- No valgrind on s390
f14381
f14381
* Mon Feb 29 2016 Paul Moore <pmoore@redhat.com> - 2.3.0-0
f14381
- New upstream version
f14381
f14381
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-1
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f14381
f14381
* Wed Jul 08 2015 Paul Moore <pmoore@redhat.com> - 2.2.3-0
f14381
- New upstream version
f14381
f14381
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-1
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f14381
f14381
* Wed May 13 2015 Paul Moore <pmoore@redhat.com> - 2.2.1-0
f14381
- New upstream version
f14381
f14381
* Thu Feb 12 2015 Paul Moore <pmoore@redhat.com> - 2.2.0-0
f14381
- New upstream version
f14381
- Added aarch64 support
f14381
- Added a static build
f14381
f14381
* Thu Sep 18 2014 Paul Moore <pmoore@redhat.com> - 2.1.1-6
f14381
- Fully builds on i686, x86_64, and armv7hl (RHBZ #1106071)
f14381
f14381
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f14381
f14381
* Fri Jul 18 2014 Tom Callaway <spot@fedoraproject.org> - 2.1.1-4
f14381
- fix license handling
f14381
f14381
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f14381
f14381
* Thu Feb 27 2014 Paul Moore <pmoore@redhat.com> - 2.1.1-2
f14381
- Build with CFLAGS="${optflags}"
f14381
f14381
* Mon Feb 17 2014 Paul Moore <pmoore@redhat.com> - 2.1.1-1
f14381
- Removed the kernel dependency (RHBZ #1065572)
f14381
f14381
* Thu Oct 31 2013 Paul Moore <pmoore@redhat.com> - 2.1.1-0
f14381
- New upstream version
f14381
- Added a %%check procedure for self-test during build
f14381
f14381
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-1
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f14381
f14381
* Tue Jun 11 2013 Paul Moore <pmoore@redhat.com> - 2.1.0-0
f14381
- New upstream version
f14381
- Added support for the ARM architecture
f14381
- Added the scmp_sys_resolver tool
f14381
f14381
* Mon Jan 28 2013 Paul Moore <pmoore@redhat.com> - 2.0.0-0
f14381
- New upstream version
f14381
f14381
* Tue Nov 13 2012 Paul Moore <pmoore@redhat.com> - 1.0.1-0
f14381
- New upstream version with several important fixes
f14381
f14381
* Tue Jul 31 2012 Paul Moore <pmoore@redhat.com> - 1.0.0-0
f14381
- New upstream version
f14381
- Remove verbose build patch as it is no longer needed
f14381
- Enable _smp_mflags during build stage
f14381
f14381
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
f14381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f14381
f14381
* Tue Jul 10 2012 Paul Moore <pmoore@redhat.com> - 0.1.0-1
f14381
- Limit package to x86/x86_64 platforms (RHBZ #837888)
f14381
f14381
* Tue Jun 12 2012 Paul Moore <pmoore@redhat.com> - 0.1.0-0
f14381
- Initial version
f14381