]>
Commit | Line | Data |
---|---|---|
b29a015c | 1 | %define _ver 2.0 |
e920f30e | 2 | %define _svnrel 132 |
b29a015c | 3 | Summary: Library to provide key AppArmor symbols |
f037ca82 | 4 | Summary(pl.UTF-8): Biblioteka udostępniająca kluczowe symbole AppArmor |
b29a015c | 5 | Name: libapparmor |
6 | Version: %{_ver}.%{_svnrel} | |
7 | Release: 0.8 | |
8 | License: LGPL | |
9 | Group: Libraries | |
e920f30e | 10 | Source0: http://forgeftp.novell.com/apparmor/Development%20-%20September%20snapshot/%{name}-%{_ver}-%{_svnrel}.tar.gz |
11 | # Source0-md5: 2253abf77f478fc1d02ad8e870bf7228 | |
b29a015c | 12 | URL: http://forge.novell.com/modules/xfmod/project/?apparmor |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | This package provides the libapparmor library, which contains the | |
17 | change_hat(2) symbol, used for sub-process confinement by AppArmor. | |
18 | Applications that wish to make use of change_hat(2) need to link | |
19 | against this library. This package is part of a suite of tools that | |
20 | used to be named SubDomain. | |
21 | ||
f037ca82 JR |
22 | %description -l pl.UTF-8 |
23 | Ten pakiet udostępnia bibliotekę libapparmor, zawierającą symbol | |
24 | change_hat(2), używany do więzienia podprocesów przez AppArmor. | |
25 | Aplikacje chcące używać change_hat(2) muszą być linkowane z tą | |
26 | biblioteką. Ten pakiet jest częścią zestawu narzędzi nazywanego | |
868a657b JB |
27 | SubDomain. |
28 | ||
b29a015c | 29 | %package devel |
30 | Summary: Header files for libapparmor library | |
f037ca82 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libapparmor |
b29a015c | 32 | Group: Development/Libraries |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | This is the package containing the header files for libapparmor | |
37 | library. | |
38 | ||
f037ca82 JR |
39 | %description devel -l pl.UTF-8 |
40 | Ten pakiet zawiera pliki nagłówkowe biblioteki libapparmor. | |
b29a015c | 41 | |
42 | %package static | |
43 | Summary: Static libapparmor library | |
f037ca82 | 44 | Summary(pl.UTF-8): Statyczna biblioteka libapparmor |
b29a015c | 45 | Group: Development/Libraries |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static libapparmor library. | |
50 | ||
f037ca82 | 51 | %description static -l pl.UTF-8 |
b29a015c | 52 | Statyczna biblioteka libapparmor. |
53 | ||
54 | %prep | |
55 | %setup -q -n %{name}-%{_ver} | |
56 | ||
57 | %build | |
58 | %{__make} \ | |
59 | CC="%{__cc}" \ | |
60 | CFLAGS="%{rpmcflags}" | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT \ | |
66 | LIB=%{_lib} \ | |
67 | VERSION=%{version} \ | |
68 | RELEASE=%{release} | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) /%{_lib}/lib*.so.* | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_libdir}/lib*.so | |
83 | %{_includedir}/sys/*.h | |
84 | ||
85 | %files static | |
86 | %defattr(644,root,root,755) | |
87 | %{_libdir}/lib*.a |