Blame SPECS/libseccomp.spec

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