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