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