]>
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 |
41c211a8 | 9 | Release: 2 |
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 | ||
b07d40ed JK |
92 | %package -n python3-LibAppArmor |
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 | |
e59fce14 | 97 | %pyrequires_eq python3 |
b07d40ed JK |
98 | Obsoletes: python3-apparmor |
99 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
100 | ||
101 | %description -n python3-LibAppArmor | |
102 | AppArmor Python bindings. | |
103 | ||
104 | %description -n python3-LibAppArmor -l pl.UTF-8 | |
105 | Dowiązania do AppArmor dla Pythona. | |
106 | ||
107 | %description -n python3-LibAppArmor -l pt_BR.UTF-8 | |
108 | Módulos Python para acessar os recursos do AppArmor. | |
109 | ||
3d0dfbc8 | 110 | %package -n ruby-LibAppArmor |
ab3177e2 JB |
111 | Summary: AppArmor Ruby bindings |
112 | Summary(pl.UTF-8): Dowiązania do AppArmor dla języka Ruby | |
113 | Group: Development/Languages | |
3d0dfbc8 | 114 | Obsoletes: ruby-apparmor |
c2413d27 | 115 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ab3177e2 | 116 | %{?ruby_mod_ver_requires_eq} |
c2413d27 | 117 | |
3d0dfbc8 | 118 | %description -n ruby-LibAppArmor |
ab3177e2 | 119 | AppArmor Ruby bindings. |
c2413d27 | 120 | |
3d0dfbc8 | 121 | %description -n ruby-LibAppArmor -l pl.UTF-8 |
ab3177e2 | 122 | Dowiązania do AppArmor dla języka Ruby. |
c2413d27 | 123 | |
b29a015c | 124 | %prep |
a6443eef | 125 | %setup -q -n apparmor-%{version} |
7b481572 | 126 | %patch0 -p1 |
b29a015c | 127 | |
128 | %build | |
8f978932 | 129 | cd libraries/libapparmor |
b5724fe0 AM |
130 | %{__libtoolize} |
131 | %{__aclocal} | |
132 | %{__autoconf} | |
133 | %{__automake} | |
8f978932 AM |
134 | |
135 | %configure \ | |
7b00bfe4 | 136 | %{?with_ruby:--with-ruby} \ |
8f978932 | 137 | --with-python \ |
7b00bfe4 | 138 | --with-perl |
8f978932 AM |
139 | |
140 | %{__make} -j1 \ | |
b29a015c | 141 | CC="%{__cc}" \ |
5d8463c0 | 142 | CFLAGS="%{rpmcflags} -fPIC" |
b29a015c | 143 | |
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
b5724fe0 | 146 | |
8e28e952 | 147 | %{__make} -j1 -C libraries/libapparmor install \ |
90afa0e5 | 148 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \ |
b5724fe0 | 149 | DESTDIR=$RPM_BUILD_ROOT |
b29a015c | 150 | |
ab3177e2 JB |
151 | %py_postclean |
152 | ||
b29a015c | 153 | %clean |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
156 | %post -p /sbin/ldconfig | |
157 | %postun -p /sbin/ldconfig | |
158 | ||
159 | %files | |
160 | %defattr(644,root,root,755) | |
ab3177e2 JB |
161 | %attr(755,root,root) %{_libdir}/libapparmor.so.*.*.* |
162 | %attr(755,root,root) %ghost %{_libdir}/libapparmor.so.1 | |
b29a015c | 163 | |
164 | %files devel | |
165 | %defattr(644,root,root,755) | |
ab3177e2 | 166 | %attr(755,root,root) %{_libdir}/libapparmor.so |
ab3177e2 | 167 | %{_libdir}/libapparmor.la |
b5724fe0 | 168 | %{_includedir}/aalogparse |
ab3177e2 | 169 | %{_includedir}/sys/apparmor.h |
b5654a23 | 170 | %{_includedir}/sys/apparmor_private.h |
27234345 | 171 | %{_pkgconfigdir}/libapparmor.pc |
ab3177e2 JB |
172 | %{_mandir}/man2/aa_change_hat.2* |
173 | %{_mandir}/man2/aa_change_profile.2* | |
89ed002a AM |
174 | %{_mandir}/man2/aa_find_mountpoint.2* |
175 | %{_mandir}/man2/aa_getcon.2* | |
b5654a23 | 176 | %{_mandir}/man2/aa_query_label.2* |
97887054 | 177 | %{_mandir}/man2/aa_stack_profile.2* |
b5654a23 JB |
178 | %{_mandir}/man3/aa_features.3* |
179 | %{_mandir}/man3/aa_kernel_interface.3* | |
180 | %{_mandir}/man3/aa_policy_cache.3* | |
181 | %{_mandir}/man3/aa_splitcon.3* | |
b29a015c | 182 | |
183 | %files static | |
184 | %defattr(644,root,root,755) | |
ab3177e2 | 185 | %{_libdir}/libapparmor.a |
ab3177e2 | 186 | |
3d0dfbc8 | 187 | %files -n perl-LibAppArmor |
ab3177e2 JB |
188 | %defattr(644,root,root,755) |
189 | %{perl_vendorarch}/LibAppArmor.pm | |
190 | %dir %{perl_vendorarch}/auto/LibAppArmor | |
ab3177e2 | 191 | %attr(755,root,root) %{perl_vendorarch}/auto/LibAppArmor/LibAppArmor.so |
c2413d27 | 192 | |
b07d40ed JK |
193 | %files -n python3-LibAppArmor |
194 | %defattr(644,root,root,755) | |
195 | %dir %{py3_sitedir}/LibAppArmor | |
196 | %attr(755,root,root) %{py3_sitedir}/LibAppArmor/_LibAppArmor.*.so | |
197 | %{py3_sitedir}/LibAppArmor/__pycache__ | |
b5376e7b | 198 | %{py3_sitedir}/LibAppArmor/*.py |
b07d40ed | 199 | %{py3_sitedir}/LibAppArmor-*.egg-info |
c2413d27 | 200 | |
7b00bfe4 | 201 | %if %{with ruby} |
3d0dfbc8 | 202 | %files -n ruby-LibAppArmor |
c2413d27 | 203 | %defattr(644,root,root,755) |
90afa0e5 | 204 | %attr(755,root,root) %{ruby_vendorarchdir}/LibAppArmor.so |
7b00bfe4 | 205 | %endif |