From dabb01b1ec86aaba60bbc3346e325bbf723a17fd Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2019 23:07:34 +0000 Subject: import libseccomp-2.3.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ae5e64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libseccomp-2.3.1.tar.gz diff --git a/.libseccomp.metadata b/.libseccomp.metadata new file mode 100644 index 0000000..a676e22 --- /dev/null +++ b/.libseccomp.metadata @@ -0,0 +1 @@ +065b0061924152a9df3eacc0d7ec209c7fc2ee05 SOURCES/libseccomp-2.3.1.tar.gz diff --git a/SPECS/libseccomp.spec b/SPECS/libseccomp.spec new file mode 100644 index 0000000..b423811 --- /dev/null +++ b/SPECS/libseccomp.spec @@ -0,0 +1,121 @@ +Summary: Enhanced seccomp library +Name: libseccomp +Version: 2.3.1 +Release: 3%{?dist} +ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc ppc64 ppc64le s390 s390x +License: LGPLv2 +Group: System Environment/Libraries +Source: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz +URL: https://github.com/seccomp/libseccomp +%ifnarch s390 +BuildRequires: valgrind +%endif + +%description +The libseccomp library provides an easy to use interface to the Linux Kernel's +syscall filtering mechanism, seccomp. The libseccomp API allows an application +to specify which syscalls, and optionally which syscall arguments, the +application is allowed to execute, all of which are enforced by the Linux +Kernel. + +%package devel +Summary: Development files used to build applications with libseccomp support +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} pkgconfig + +%description devel +The libseccomp library provides an easy to use interface to the Linux Kernel's +syscall filtering mechanism, seccomp. The libseccomp API allows an application +to specify which syscalls, and optionally which syscall arguments, the +application is allowed to execute, all of which are enforced by the Linux +Kernel. + +%prep +%setup -q + +%build +%configure +make V=1 %{?_smp_mflags} + +%install +rm -rf "%{buildroot}" +mkdir -p "%{buildroot}/%{_libdir}" +mkdir -p "%{buildroot}/%{_includedir}" +mkdir -p "%{buildroot}/%{_mandir}" +make V=1 DESTDIR="%{buildroot}" install +rm -f "%{buildroot}/%{_libdir}/libseccomp.la" +rm -f "%{buildroot}/%{_libdir}/libseccomp.a" + +%check +make V=1 check + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc CREDITS +%doc README +%doc CHANGELOG +%doc SUBMITTING_PATCHES +%{_libdir}/libseccomp.so.* + +%files devel +%{_includedir}/seccomp.h +%{_libdir}/libseccomp.so +%{_libdir}/pkgconfig/libseccomp.pc +%{_bindir}/scmp_sys_resolver +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Wed Feb 22 2017 Paul Moore - 2.3.1-3 +- Added the ppc arch to the build + +* Thu Apr 28 2016 Paul Moore - 2.3.1-2 +- Fix a typo with the ppc64le architecture + +* Thu Apr 21 2016 Paul Moore - 2.3.1-1 +- Escape the macros in the changelog to make rpmlint and friends happy + +* Wed Apr 20 2016 Paul Moore - 2.3.1-0 +- New upstream version + +* Mon Jun 15 2015 Paul Moore - 2.2.1-1 +- Removed '--disable-static' from the build to ensure that scmp_sys_resolver + is self contained and resolve RPATH issues + +* Wed May 13 2015 Paul Moore - 2.2.1-0 +- New upstream version +- Added aarch64 support +- Move to an autotools based build system + +* Thu Feb 27 2014 Paul Moore - 2.1.1-2 +- Build with CFLAGS="${optflags}" (RHBZ #1070774) +* Fri Dec 27 2013 Daniel Mach - 2.1.1-1 +- Mass rebuild 2013-12-27 + +* Tue Nov 5 2013 Paul Moore - 2.1.1-0 +- New upstream version +- Added a %%check procedure for self-test during build +* Tue Jun 11 2013 Paul Moore - 2.1.0-0 +- New upstream version +- Added support for the ARM architecture +- Added the scmp_sys_resolver tool +* Mon Jan 28 2013 Paul Moore - 2.0.0-0 +- New upstream version +* Tue Nov 13 2012 Paul Moore - 1.0.1-0 +- New upstream version with several important fixes +* Tue Jul 31 2012 Paul Moore - 1.0.0-0 +- New upstream version +- Remove verbose build patch as it is no longer needed +- Enable _smp_mflags during build stage +* Thu Jul 19 2012 Fedora Release Engineering - 0.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild +* Tue Jul 10 2012 Paul Moore - 0.1.0-1 +- Limit package to x86/x86_64 platforms (RHBZ #837888) +* Tue Jun 12 2012 Paul Moore - 0.1.0-0 +- Initial version +