2015-04-09 07:47:31 +00:00
|
|
|
%define major 2
|
2012-10-01 02:52:47 +04:00
|
|
|
%define libname %mklibname seccomp %{major}
|
|
|
|
%define develname %mklibname -d seccomp
|
|
|
|
|
|
|
|
Summary: Enhanced seccomp library
|
|
|
|
Name: libseccomp
|
2019-01-18 20:05:49 +03:00
|
|
|
Version: 2.3.3
|
|
|
|
Release: 1
|
2012-10-01 02:52:47 +04:00
|
|
|
License: LGPLv2
|
|
|
|
Group: System/Libraries
|
2015-04-09 07:47:31 +00:00
|
|
|
Source0: https://github.com/seccomp/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
URL: https://github.com/seccomp/%{name}
|
2012-10-01 02:52:47 +04:00
|
|
|
Requires: kernel >= 3.5
|
|
|
|
|
|
|
|
%description
|
2015-04-09 07:47:31 +00:00
|
|
|
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.
|
2012-10-01 02:52:47 +04:00
|
|
|
|
2015-04-09 07:47:31 +00:00
|
|
|
%package utils
|
|
|
|
Summary: scmp_sys_resolver - A tool to resolve system calls
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
The scmp_sys_resolver utility resolves both system call names and numbers
|
|
|
|
with respect to the given architecture.
|
2012-10-01 02:52:47 +04:00
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Collection library providing GObject-based interfaces and classes
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2015-04-09 07:47:31 +00:00
|
|
|
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.
|
2012-10-01 02:52:47 +04:00
|
|
|
|
|
|
|
%package -n %{develname}
|
|
|
|
Summary: Development files used to build applications with libseccomp support
|
|
|
|
Group: Development/C
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
Provides: seccomp-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{develname}
|
2015-04-09 07:47:31 +00:00
|
|
|
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.
|
2012-10-01 02:52:47 +04:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure2_5x
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p "%{buildroot}/%{_libdir}"
|
|
|
|
mkdir -p "%{buildroot}/%{_includedir}"
|
|
|
|
mkdir -p "%{buildroot}/%{_mandir}"
|
|
|
|
%makeinstall_std
|
|
|
|
|
2015-04-09 07:47:31 +00:00
|
|
|
rm -vf "%{buildroot}/%{_libdir}/libseccomp.a"
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%{_bindir}/scmp_sys_resolver
|
|
|
|
%{_mandir}/man1/scmp_sys_resolver.1.xz
|
|
|
|
|
2012-10-01 02:52:47 +04:00
|
|
|
%files -n %{libname}
|
2019-01-18 20:28:49 +03:00
|
|
|
%{_libdir}/libseccomp.so.%{major}*
|
2012-10-01 02:52:47 +04:00
|
|
|
|
|
|
|
%files -n %{develname}
|
2019-01-18 20:05:49 +03:00
|
|
|
%doc LICENSE CREDITS README.md
|
2012-10-01 02:52:47 +04:00
|
|
|
%{_includedir}/seccomp.h
|
|
|
|
%{_libdir}/libseccomp.so
|
|
|
|
%{_libdir}/pkgconfig/libseccomp.pc
|
|
|
|
%{_mandir}/man3/*
|