commit afc19a3c3aa1649f11c1a8937cec8fbb6908f69e Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:57:59 2019 -0400 Package init diff --git a/libseccomp-2.4.1.tar.gz b/libseccomp-2.4.1.tar.gz new file mode 100644 index 0000000..77e7e56 Binary files /dev/null and b/libseccomp-2.4.1.tar.gz differ diff --git a/libseccomp.spec b/libseccomp.spec new file mode 100644 index 0000000..98c6c4b --- /dev/null +++ b/libseccomp.spec @@ -0,0 +1,81 @@ +Name: libseccomp +Version: 2.4.1 +Release: 2 +Summary: Interface to the syscall filtering mechanism +License: LGPLv2 +URL: https://github.com/seccomp/libseccomp +Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc git gdb + +%description +The libseccomp library provides an easy to use, platform independent, interface to +the Linux Kernel's syscall filtering mechanism. The libseccomp API is designed to +abstract away the underlying BPF based syscall filter language and present a more +conventional function-call based filtering interface that should be familiar to, +and easily adopted by, application developers. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +Provides: %{name}-static = %{version}-%{release} +Obsoletes: %{name}-static <= %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package help +Summary: Doc files for %{name} +Buildarch: noarch +Requires: man + +%description help +The %{name}-help package contains doc files for %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 -S git + +%build +%configure +%make_build + +%install +%make_install +rm -f %{buildroot}/%{_libdir}/%{name}.la + +%check +make check + +%pre + +%preun + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc CREDITS +%license LICENSE +%{_libdir}/%{name}.so.* + +%files devel +%{_bindir}/scmp_sys_resolver +%{_includedir}/seccomp.h +%{_libdir}/%{name}* +%{_libdir}/pkgconfig/%{name}.pc + +%files help +%doc CHANGELOG CONTRIBUTING.md README.md +%{_mandir}/man*/* + +%changelog +* Tue Sep 24 2019 luhuaxin - 2.4.1-2 +- Type: enhancement +- ID: NA +- SUG: NA +- DESC: add help package and merge static package + +* Fri Aug 16 2019 luhuaxin - 2.4.1-1 +- Package init