]>
Commit | Line | Data |
---|---|---|
98e97d35 JB |
1 | Summary: Enhanced Seccomp (mode 2) Helper library |
2 | Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2) | |
3 | Name: libseccomp | |
c86f6298 | 4 | Version: 2.0.0 |
98e97d35 JB |
5 | Release: 1 |
6 | License: LGPL v2.1 | |
7 | Group: Libraries | |
8 | Source0: http://downloads.sourceforge.net/libseccomp/%{name}-%{version}.tar.gz | |
c86f6298 | 9 | # Source0-md5: f988feac6a3425f2c918f32b28df1caa |
98e97d35 JB |
10 | Patch0: %{name}-pc.patch |
11 | URL: http://libseccomp.sourceforge.net/ | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | The libseccomp library provides and easy to use, platform independent, | |
16 | interface to the Linux Kernel's syscall filtering mechanism: seccomp. | |
17 | The libseccomp API is designed to abstract away the underlying BPF | |
18 | based syscall filter language and present a more conventional | |
19 | function-call based filtering interface that should be familiar to, | |
20 | and easily adopted by application developers. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Biblioteka libseccomp udostępnia łatwy w użyciu, niezależny od | |
24 | platformy interfejs do mechanizmu filtrowania wywołań systemowych | |
25 | jądra Linuksa - seccomp. API libseccomp jest zaprojektowane tak, | |
26 | żeby wyabstrahować język filtrowania wywołań BPF niższego poziomu i | |
27 | zaprezentować bardziej konwencjonalny interfejs filtrowania w oparciu | |
28 | o wywołania funkcji, który powinien być bardziej przyjazny i łatwiej | |
29 | adaptowalny dla programistów aplikacji. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for Seccomp library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Seccomp | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | ||
37 | %description devel | |
38 | Header files for Seccomp library. | |
39 | ||
40 | %description devel -l pl.UTF-8 | |
41 | Pliki nagłówkowe biblioteki Seccomp. | |
42 | ||
43 | %package static | |
44 | Summary: Static Seccomp library | |
45 | Summary(pl.UTF-8): Statyczna biblioteka Seccomp | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static Seccomp library. | |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka Seccomp. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | %patch0 -p1 | |
58 | ||
59 | %build | |
60 | # not autoconf configure | |
61 | ./configure \ | |
62 | --prefix=%{_prefix} \ | |
63 | --libdir=%{_libdir} | |
64 | ||
65 | GCC="%{__cc}" \ | |
66 | CFLAGS="%{rpmcflags} -Wall" \ | |
67 | %{__make} \ | |
68 | V=1 | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | install src/libseccomp.a $RPM_BUILD_ROOT%{_libdir} | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc CHANGELOG CREDITS README | |
87 | %attr(755,root,root) %{_libdir}/libseccomp.so.*.*.* | |
c86f6298 | 88 | %attr(755,root,root) %ghost %{_libdir}/libseccomp.so.2 |
98e97d35 JB |
89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libseccomp.so | |
93 | %{_includedir}/seccomp.h | |
94 | %{_pkgconfigdir}/libseccomp.pc | |
95 | %{_mandir}/man3/seccomp_*.3* | |
96 | ||
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libseccomp.a |