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