Blame SPECS/libseccomp.spec

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