]>
Commit | Line | Data |
---|---|---|
4bed3c28 | 1 | %include /usr/lib/rpm/macros.perl |
b29a015c | 2 | Summary: Library to provide key AppArmor symbols |
07336d41 | 3 | Summary(pl.UTF-8): Biblioteka udostępniająca kluczowe symbole AppArmor |
b29a015c | 4 | Name: libapparmor |
89ed002a AM |
5 | Version: 2.7.2 |
6 | Release: 1 | |
cd5c18e1 | 7 | Epoch: 1 |
ab3177e2 | 8 | License: LGPL v2.1 |
b29a015c | 9 | Group: Libraries |
89ed002a AM |
10 | Source0: http://launchpad.net/apparmor/2.7/%{version}/+download/apparmor-%{version}.tar.gz |
11 | # Source0-md5: 2863e85bdfdf9ee35b83db6721fed1f1 | |
8f978932 | 12 | URL: http://apparmor.wiki.kernel.org/ |
b5724fe0 | 13 | BuildRequires: autoconf |
ab3177e2 | 14 | BuildRequires: automake >= 1.4 |
4da076f4 AM |
15 | BuildRequires: bison |
16 | BuildRequires: flex | |
b5724fe0 | 17 | BuildRequires: libtool |
8f978932 | 18 | BuildRequires: perl-devel |
02c46005 | 19 | BuildRequires: perl-tools-pod |
8f978932 | 20 | BuildRequires: python-devel |
ab3177e2 | 21 | BuildRequires: rpmbuild(macros) >= 1.272 |
4bed3c28 AM |
22 | BuildRequires: rpm-perlprov |
23 | BuildRequires: rpm-pythonprov | |
ab3177e2 | 24 | BuildRequires: ruby-devel |
6094cfac | 25 | BuildRequires: swig-perl |
26 | BuildRequires: swig-python | |
ab3177e2 | 27 | BuildRequires: swig-ruby |
b29a015c | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | This package provides the libapparmor library, which contains the | |
32 | change_hat(2) symbol, used for sub-process confinement by AppArmor. | |
33 | Applications that wish to make use of change_hat(2) need to link | |
34 | against this library. This package is part of a suite of tools that | |
35 | used to be named SubDomain. | |
36 | ||
f037ca82 JR |
37 | %description -l pl.UTF-8 |
38 | Ten pakiet udostępnia bibliotekę libapparmor, zawierającą symbol | |
39 | change_hat(2), używany do więzienia podprocesów przez AppArmor. | |
40 | Aplikacje chcące używać change_hat(2) muszą być linkowane z tą | |
41 | biblioteką. Ten pakiet jest częścią zestawu narzędzi nazywanego | |
868a657b JB |
42 | SubDomain. |
43 | ||
b29a015c | 44 | %package devel |
45 | Summary: Header files for libapparmor library | |
07336d41 | 46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libapparmor |
b29a015c | 47 | Group: Development/Libraries |
7af628a3 | 48 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b29a015c | 49 | |
50 | %description devel | |
51 | This is the package containing the header files for libapparmor | |
52 | library. | |
53 | ||
f037ca82 JR |
54 | %description devel -l pl.UTF-8 |
55 | Ten pakiet zawiera pliki nagłówkowe biblioteki libapparmor. | |
b29a015c | 56 | |
57 | %package static | |
58 | Summary: Static libapparmor library | |
07336d41 | 59 | Summary(pl.UTF-8): Statyczna biblioteka libapparmor |
b29a015c | 60 | Group: Development/Libraries |
7af628a3 | 61 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
b29a015c | 62 | |
63 | %description static | |
64 | Static libapparmor library. | |
65 | ||
f037ca82 | 66 | %description static -l pl.UTF-8 |
b29a015c | 67 | Statyczna biblioteka libapparmor. |
68 | ||
ab3177e2 JB |
69 | %package -n perl-apparmor |
70 | Summary: AppArmor Perl bindings | |
71 | Summary(pl.UTF-8): Dowiązania do AppArmor dla Perla | |
72 | Summary(pt_BR.UTF-8): Módulos Perl para acessar os recursos do AppArmor | |
73 | Group: Development/Languages/Perl | |
74 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
75 | ||
76 | %description -n perl-apparmor | |
77 | AppArmor Perl bindings. | |
78 | ||
79 | %description -n perl-apparmor -l pl.UTF-8 | |
80 | Dowiązania do AppArmor dla Perla. | |
81 | ||
82 | %description -n perl-apparmor -l pt_BR.UTF-8 | |
83 | Módulos Perl para acessar os recursos do AppArmor. | |
84 | ||
c2413d27 AM |
85 | %package -n python-apparmor |
86 | Summary: AppArmor Python bindings | |
87 | Summary(pl.UTF-8): Dowiązania do AppArmor dla Pythona | |
88 | Summary(pt_BR.UTF-8): Módulos Python para acessar os recursos do AppArmor | |
89 | Group: Development/Languages/Python | |
90 | %pyrequires_eq python | |
91 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
92 | ||
93 | %description -n python-apparmor | |
94 | AppArmor Python bindings. | |
95 | ||
96 | %description -n python-apparmor -l pl.UTF-8 | |
97 | Dowiązania do AppArmor dla Pythona. | |
98 | ||
99 | %description -n python-apparmor -l pt_BR.UTF-8 | |
100 | Módulos Python para acessar os recursos do AppArmor. | |
101 | ||
ab3177e2 JB |
102 | %package -n ruby-apparmor |
103 | Summary: AppArmor Ruby bindings | |
104 | Summary(pl.UTF-8): Dowiązania do AppArmor dla języka Ruby | |
105 | Group: Development/Languages | |
c2413d27 | 106 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ab3177e2 | 107 | %{?ruby_mod_ver_requires_eq} |
c2413d27 | 108 | |
ab3177e2 JB |
109 | %description -n ruby-apparmor |
110 | AppArmor Ruby bindings. | |
c2413d27 | 111 | |
ab3177e2 JB |
112 | %description -n ruby-apparmor -l pl.UTF-8 |
113 | Dowiązania do AppArmor dla języka Ruby. | |
c2413d27 | 114 | |
b29a015c | 115 | %prep |
a6443eef | 116 | %setup -q -n apparmor-%{version} |
b29a015c | 117 | |
118 | %build | |
8f978932 | 119 | cd libraries/libapparmor |
b5724fe0 AM |
120 | %{__libtoolize} |
121 | %{__aclocal} | |
122 | %{__autoconf} | |
123 | %{__automake} | |
8f978932 AM |
124 | |
125 | %configure \ | |
126 | --with-python \ | |
127 | --with-perl \ | |
ab3177e2 | 128 | --with-ruby |
8f978932 AM |
129 | |
130 | %{__make} -j1 \ | |
b29a015c | 131 | CC="%{__cc}" \ |
5d8463c0 | 132 | CFLAGS="%{rpmcflags} -fPIC" |
b29a015c | 133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
b5724fe0 | 136 | |
8f978932 | 137 | %{__make} -C libraries/libapparmor install \ |
b5724fe0 | 138 | DESTDIR=$RPM_BUILD_ROOT |
b29a015c | 139 | |
ab3177e2 JB |
140 | %py_postclean |
141 | ||
b29a015c | 142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post -p /sbin/ldconfig | |
146 | %postun -p /sbin/ldconfig | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
ab3177e2 JB |
150 | %attr(755,root,root) %{_libdir}/libapparmor.so.*.*.* |
151 | %attr(755,root,root) %ghost %{_libdir}/libapparmor.so.1 | |
152 | %attr(755,root,root) %{_libdir}/libimmunix.so.*.*.* | |
153 | %attr(755,root,root) %ghost %{_libdir}/libimmunix.so.1 | |
b29a015c | 154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
ab3177e2 JB |
157 | %attr(755,root,root) %{_libdir}/libapparmor.so |
158 | %attr(755,root,root) %{_libdir}/libimmunix.so | |
159 | %{_libdir}/libapparmor.la | |
160 | %{_libdir}/libimmunix.la | |
b5724fe0 | 161 | %{_includedir}/aalogparse |
ab3177e2 JB |
162 | %{_includedir}/sys/apparmor.h |
163 | %{_mandir}/man2/aa_change_hat.2* | |
164 | %{_mandir}/man2/aa_change_profile.2* | |
89ed002a AM |
165 | %{_mandir}/man2/aa_find_mountpoint.2* |
166 | %{_mandir}/man2/aa_getcon.2* | |
b29a015c | 167 | |
168 | %files static | |
169 | %defattr(644,root,root,755) | |
ab3177e2 JB |
170 | %{_libdir}/libapparmor.a |
171 | %{_libdir}/libimmunix.a | |
172 | ||
173 | %files -n perl-apparmor | |
174 | %defattr(644,root,root,755) | |
175 | %{perl_vendorarch}/LibAppArmor.pm | |
176 | %dir %{perl_vendorarch}/auto/LibAppArmor | |
177 | %{perl_vendorarch}/auto/LibAppArmor/LibAppArmor.bs | |
178 | %attr(755,root,root) %{perl_vendorarch}/auto/LibAppArmor/LibAppArmor.so | |
c2413d27 AM |
179 | |
180 | %files -n python-apparmor | |
181 | %defattr(644,root,root,755) | |
a6443eef | 182 | %dir %{py_sitedir}/LibAppArmor |
ab3177e2 JB |
183 | %attr(755,root,root) %{py_sitedir}/LibAppArmor/_LibAppArmor.so |
184 | %{py_sitedir}/LibAppArmor/__init__.py[co] | |
185 | %{py_sitedir}/LibAppArmor-*.egg-info | |
c2413d27 | 186 | |
ab3177e2 | 187 | %files -n ruby-apparmor |
c2413d27 | 188 | %defattr(644,root,root,755) |
ab3177e2 | 189 | %attr(755,root,root) %{ruby_sitearchdir}/LibAppArmor.so |