4 Summary: Enhanced Seccomp (mode 2) Helper library
5 Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2)
11 Source0: http://downloads.sourceforge.net/libseccomp/%{name}-%{version}.tar.gz
12 # Source0-md5: 1f41207b29e66a7e5e375dd48a64de85
13 Patch0: %{name}-pc.patch
14 URL: http://libseccomp.sourceforge.net/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The libseccomp library provides and easy to use, platform independent,
20 interface to the Linux Kernel's syscall filtering mechanism: seccomp.
21 The libseccomp API is designed to abstract away the underlying BPF
22 based syscall filter language and present a more conventional
23 function-call based filtering interface that should be familiar to,
24 and easily adopted by application developers.
26 %description -l pl.UTF-8
27 Biblioteka libseccomp udostępnia łatwy w użyciu, niezależny od
28 platformy interfejs do mechanizmu filtrowania wywołań systemowych
29 jądra Linuksa - seccomp. API libseccomp jest zaprojektowane tak, żeby
30 wyabstrahować język filtrowania wywołań BPF niższego poziomu i
31 zaprezentować bardziej konwencjonalny interfejs filtrowania w oparciu
32 o wywołania funkcji, który powinien być bardziej przyjazny i łatwiej
33 adaptowalny dla programistów aplikacji.
36 Summary: Header files for Seccomp library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Seccomp
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 Header files for Seccomp library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki Seccomp.
48 Summary: Static Seccomp library
49 Summary(pl.UTF-8): Statyczna biblioteka Seccomp
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static Seccomp library.
56 %description static -l pl.UTF-8
57 Statyczna biblioteka Seccomp.
64 # not autoconf configure
70 CFLAGS="%{rpmcflags} -Wall" \
74 %{?with_tests:%{__make} check V=1}
77 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 cp -p src/libseccomp.a $RPM_BUILD_ROOT%{_libdir}
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %doc CHANGELOG CREDITS README
92 %attr(755,root,root) %{_bindir}/scmp_sys_resolver
93 %attr(755,root,root) %{_libdir}/libseccomp.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libseccomp.so.2
95 %{_mandir}/man1/scmp_sys_resolver.1*
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libseccomp.so
100 %{_includedir}/seccomp.h
101 %{_pkgconfigdir}/libseccomp.pc
102 %{_mandir}/man3/seccomp_*.3*
105 %defattr(644,root,root,755)
106 %{_libdir}/libseccomp.a