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