Blame SPECS/libseccomp.spec

2f610f
Name:           libseccomp
85e6b1
Version:        2.5.2
85e6b1
Release:        2%{?dist}
2f610f
Summary:        Enhanced seccomp library
2f610f
License:        LGPLv2
2f610f
URL:            https://github.com/seccomp/libseccomp
2f610f
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
2f610f
2f610f
# Backports from upstream
2f610f
85e6b1
## From: https://github.com/seccomp/libseccomp/commit/5532444587fa5f33a43179ca5cc710f1bb05f51f
85e6b1
Patch0101:      0101-fix-11-basic-basic_errors-on-old-kernels.patch
2f610f
2f610f
BuildRequires:  gcc
2f610f
BuildRequires:  gperf
2f610f
BuildRequires:  make
2f610f
2f610f
%ifnarch riscv64 s390
2f610f
# Versions prior to 3.13.0-4 do not work on ARM with newer glibc 2.25.0-6
2f610f
# See https://bugzilla.redhat.com/show_bug.cgi?id=1466017
2f610f
BuildRequires:  valgrind >= 1:3.13.0-4
2f610f
%endif
2f610f
2f610f
%description
2f610f
The libseccomp library provides an easy to use interface to the Linux Kernel's
2f610f
syscall filtering mechanism, seccomp.  The libseccomp API allows an application
2f610f
to specify which syscalls, and optionally which syscall arguments, the
2f610f
application is allowed to execute, all of which are enforced by the Linux
2f610f
Kernel.
2f610f
2f610f
%package devel
2f610f
Summary:        Development files used to build applications with libseccomp support
2f610f
Requires:       %{name}%{?_isa} = %{version}-%{release}
2f610f
2f610f
%description devel
2f610f
The libseccomp library provides an easy to use interface to the Linux Kernel's
2f610f
syscall filtering mechanism, seccomp.  The libseccomp API allows an application
2f610f
to specify which syscalls, and optionally which syscall arguments, the
2f610f
application is allowed to execute, all of which are enforced by the Linux
2f610f
Kernel.
2f610f
2f610f
%package static
2f610f
Summary:        Enhanced seccomp static library
2f610f
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
2f610f
2f610f
%description static
2f610f
The libseccomp library provides an easy to use interface to the Linux Kernel's
2f610f
syscall filtering mechanism, seccomp.  The libseccomp API allows an application
2f610f
to specify which syscalls, and optionally which syscall arguments, the
2f610f
application is allowed to execute, all of which are enforced by the Linux
2f610f
Kernel.
2f610f
2f610f
%prep
2f610f
%autosetup -p1
2f610f
2f610f
%build
2f610f
%configure
2f610f
%make_build
2f610f
2f610f
%install
2f610f
mkdir -p %{buildroot}/%{_libdir}
2f610f
mkdir -p %{buildroot}/%{_includedir}
2f610f
mkdir -p %{buildroot}/%{_mandir}
2f610f
2f610f
%make_install
2f610f
2f610f
rm -f %{buildroot}/%{_libdir}/libseccomp.la
2f610f
2f610f
%check
2f610f
# Tests 36 and 37 fail on the build systems for the arches below and I'm not
2f610f
# able to reproduce the failure so just skip the tests for now
2f610f
%ifarch i686 ppc64le s390x
2f610f
rm -f tests/36-sim-ipc_syscalls.tests tests/37-sim-ipc_syscalls_be.tests
2f610f
%endif
2f610f
%make_build check
2f610f
2f610f
2f610f
%files
2f610f
%license LICENSE
2f610f
%doc CREDITS README.md CHANGELOG CONTRIBUTING.md
2f610f
%{_libdir}/libseccomp.so.*
2f610f
2f610f
%files devel
2f610f
%{_includedir}/seccomp.h
2f610f
%{_includedir}/seccomp-syscalls.h
2f610f
%{_libdir}/libseccomp.so
2f610f
%{_libdir}/pkgconfig/libseccomp.pc
2f610f
%{_bindir}/scmp_sys_resolver
2f610f
%{_mandir}/man1/*
2f610f
%{_mandir}/man3/*
2f610f
2f610f
%files static
2f610f
%{_libdir}/libseccomp.a
2f610f
2f610f
%changelog
85e6b1
* Fri Nov 05 2021 Zoltan Fridrich <zfridric@redhat.com> - 2.5.2-2
85e6b1
- fix devel-usability test
85e6b1
- rebase to 2.5.2
85e6b1
  resolves: rhbz#2019887
85e6b1
2f610f
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.5.0-6
2f610f
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
2f610f
  Related: rhbz#1991688
2f610f
2f610f
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.5.0-5
2f610f
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2f610f
2f610f
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2f610f
2f610f
* Wed Aug 05 2020 Neal Gompa <ngompa13@gmail.com> - 2.5.0-3
2f610f
- Apply fixes to change internal handling of the notification fd (#1865802)
2f610f
2f610f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2f610f
2f610f
* Fri Jul 24 2020 Neal Gompa <ngompa13@gmail.com> - 2.5.0-1
2f610f
- New upstream version (#1858965)
2f610f
2f610f
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-3
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2f610f
2f610f
* Mon Dec 16 2019 Neal Gompa <ngompa13@gmail.com> - 2.4.2-2
2f610f
- Modernize spec
2f610f
- Backport fix for missing __SNR_ppoll symbol (#1777889)
2f610f
- Refresh patch to build on aarch64 with upstream version
2f610f
2f610f
* Wed Nov 20 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.2-1
2f610f
- New upstream version (#1765314)
2f610f
2f610f
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-1
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2f610f
2f610f
* Wed Apr 17 2019 Paul Moore <paul@paul-moore.com> - 2.4.1-0
2f610f
- New upstream version
2f610f
2f610f
* Thu Mar 14 2019 Paul Moore <paul@paul-moore.com> - 2.4.0-0
2f610f
- New upstream version
2f610f
- Added a hack to workaround test failures (see %check above)
2f610f
2f610f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-5
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2f610f
2f610f
* Wed Nov 07 2018 Paul Moore <paul@paul-moore.com> - 2.3.3-4
2f610f
- Remove ldconfig scriptlet, thanks to James Antill (RHBZ #1644074)
2f610f
2f610f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-3
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2f610f
2f610f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2f610f
2f610f
* Wed Jan 10 2018 Paul Moore <pmoore@redhat.com> - 2.3.3-1
2f610f
- New upstream version
2f610f
2f610f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-5
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2f610f
2f610f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-4
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2f610f
2f610f
* Thu Jun 29 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.3.2-3
2f610f
- Re-enable valgrind-based tests on ARMv7
2f610f
2f610f
* Thu Jun 29 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.3.2-2
2f610f
- Disable running valgrind-based tests on ARMv7 due to glibc/valgrind bug (RHBZ #1466017)
2f610f
2f610f
* Wed Mar 01 2017 Paul Moore <pmoore@redhat.com> -2.3.2-1
2f610f
- New upstream version
2f610f
2f610f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2f610f
2f610f
* Wed Apr 20 2016 Paul Moore <pmoore@redhat.com> - 2.3.1-1
2f610f
- Cleanup the changelog whitespace and escape the macros to make rpmlint happy
2f610f
2f610f
* Wed Apr 20 2016 Paul Moore <pmoore@redhat.com> - 2.3.1-0
2f610f
- New upstream version
2f610f
2f610f
* Tue Mar  1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.3.0-1
2f610f
- No valgrind on s390
2f610f
2f610f
* Mon Feb 29 2016 Paul Moore <pmoore@redhat.com> - 2.3.0-0
2f610f
- New upstream version
2f610f
2f610f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-1
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2f610f
2f610f
* Wed Jul 08 2015 Paul Moore <pmoore@redhat.com> - 2.2.3-0
2f610f
- New upstream version
2f610f
2f610f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-1
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2f610f
2f610f
* Wed May 13 2015 Paul Moore <pmoore@redhat.com> - 2.2.1-0
2f610f
- New upstream version
2f610f
2f610f
* Thu Feb 12 2015 Paul Moore <pmoore@redhat.com> - 2.2.0-0
2f610f
- New upstream version
2f610f
- Added aarch64 support
2f610f
- Added a static build
2f610f
2f610f
* Thu Sep 18 2014 Paul Moore <pmoore@redhat.com> - 2.1.1-6
2f610f
- Fully builds on i686, x86_64, and armv7hl (RHBZ #1106071)
2f610f
2f610f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2f610f
2f610f
* Fri Jul 18 2014 Tom Callaway <spot@fedoraproject.org> - 2.1.1-4
2f610f
- fix license handling
2f610f
2f610f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2f610f
2f610f
* Thu Feb 27 2014 Paul Moore <pmoore@redhat.com> - 2.1.1-2
2f610f
- Build with CFLAGS="${optflags}"
2f610f
2f610f
* Mon Feb 17 2014 Paul Moore <pmoore@redhat.com> - 2.1.1-1
2f610f
- Removed the kernel dependency (RHBZ #1065572)
2f610f
2f610f
* Thu Oct 31 2013 Paul Moore <pmoore@redhat.com> - 2.1.1-0
2f610f
- New upstream version
2f610f
- Added a %%check procedure for self-test during build
2f610f
2f610f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-1
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2f610f
2f610f
* Tue Jun 11 2013 Paul Moore <pmoore@redhat.com> - 2.1.0-0
2f610f
- New upstream version
2f610f
- Added support for the ARM architecture
2f610f
- Added the scmp_sys_resolver tool
2f610f
2f610f
* Mon Jan 28 2013 Paul Moore <pmoore@redhat.com> - 2.0.0-0
2f610f
- New upstream version
2f610f
2f610f
* Tue Nov 13 2012 Paul Moore <pmoore@redhat.com> - 1.0.1-0
2f610f
- New upstream version with several important fixes
2f610f
2f610f
* Tue Jul 31 2012 Paul Moore <pmoore@redhat.com> - 1.0.0-0
2f610f
- New upstream version
2f610f
- Remove verbose build patch as it is no longer needed
2f610f
- Enable _smp_mflags during build stage
2f610f
2f610f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
2f610f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2f610f
2f610f
* Tue Jul 10 2012 Paul Moore <pmoore@redhat.com> - 0.1.0-1
2f610f
- Limit package to x86/x86_64 platforms (RHBZ #837888)
2f610f
2f610f
* Tue Jun 12 2012 Paul Moore <pmoore@redhat.com> - 0.1.0-0
2f610f
- Initial version