4 %bcond_without static_libs # don't build static libraries
5 %bcond_with python # build Python bindings
7 Summary: Enhanced Seccomp (mode 2) Helper library
8 Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2)
14 Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 7db418d35d7a6168400bf6b05502f8bf
16 URL: https://github.com/seccomp/libseccomp
19 BuildRequires: python-Cython >= 0.16
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The libseccomp library provides and easy to use, platform independent,
25 interface to the Linux Kernel's syscall filtering mechanism: seccomp.
26 The libseccomp API is designed to abstract away the underlying BPF
27 based syscall filter language and present a more conventional
28 function-call based filtering interface that should be familiar to,
29 and easily adopted by application developers.
31 %description -l pl.UTF-8
32 Biblioteka libseccomp udostępnia łatwy w użyciu, niezależny od
33 platformy interfejs do mechanizmu filtrowania wywołań systemowych
34 jądra Linuksa - seccomp. API libseccomp jest zaprojektowane tak, żeby
35 wyabstrahować język filtrowania wywołań BPF niższego poziomu i
36 zaprezentować bardziej konwencjonalny interfejs filtrowania w oparciu
37 o wywołania funkcji, który powinien być bardziej przyjazny i łatwiej
38 adaptowalny dla programistów aplikacji.
41 Summary: Header files for Seccomp library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Seccomp
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for Seccomp library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki Seccomp.
53 Summary: Static Seccomp library
54 Summary(pl.UTF-8): Statyczna biblioteka Seccomp
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static Seccomp library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka Seccomp.
69 --disable-silent-rules \
70 %{?with_python:--enable-python} \
71 %{!?with_static_libs:--disable-static}
74 %{?with_tests:%{__make} check}
77 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 # obsoleted by pkg-config file
82 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libseccomp.la
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc CHANGELOG CREDITS README
93 %attr(755,root,root) %{_bindir}/scmp_sys_resolver
94 %attr(755,root,root) %{_libdir}/libseccomp.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libseccomp.so.2
96 %{_mandir}/man1/scmp_sys_resolver.1*
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libseccomp.so
101 %{_includedir}/seccomp.h
102 %{_pkgconfigdir}/libseccomp.pc
103 %{_mandir}/man3/seccomp_*.3*
105 %if %{with static_libs}
107 %defattr(644,root,root,755)
108 %{_libdir}/libseccomp.a