]> git.pld-linux.org Git - packages/libapparmor.git/blobdiff - libapparmor.spec
- release 2 (by relup.sh)
[packages/libapparmor.git] / libapparmor.spec
index c588f7a030e15a0c5349d7b25ea2b17717585809..d30fb73560bfea5f6c563ee7d0473d20c32b0ca3 100644 (file)
@@ -1,35 +1,30 @@
 #
 # Conditional build:
 %bcond_without ruby            # build without Ruby bindings
-%bcond_with    python3         # build for Python3
 
-%include       /usr/lib/rpm/macros.perl
 Summary:       Library to provide key AppArmor symbols
 Summary(pl.UTF-8):     Biblioteka udostępniająca kluczowe symbole AppArmor
 Name:          libapparmor
-Version:       2.10
-Release:       5
+Version:       3.0.1
+Release:       2
 Epoch:         1
 License:       LGPL v2.1
 Group:         Libraries
-Source0:       http://launchpad.net/apparmor/2.10/%{version}/+download/apparmor-%{version}.tar.gz
-# Source0-md5: 9fd9b6b3525882fdb9441d0f0a8f9162
+Source0:       http://launchpad.net/apparmor/3.0/%{version}/+download/apparmor-%{version}.tar.gz
+# Source0-md5: e05eab22bdd1dfc64854856a7292cf09
 Patch0:                %{name}-private.patch
 URL:           http://wiki.apparmor.net/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1.4
 BuildRequires: bison
 BuildRequires: flex
+BuildRequires: gcc >= 5:3.2
 BuildRequires: libtool
 BuildRequires: perl-devel
 BuildRequires: perl-tools-pod
 BuildRequires: pkgconfig
-%if %{with python3}
 BuildRequires: python3-devel
-%else
-BuildRequires: python-devel
-%endif
-BuildRequires: rpmbuild(macros) >= 1.272
+BuildRequires: rpmbuild(macros) >= 1.745
 BuildRequires: rpm-perlprov
 BuildRequires: rpm-pythonprov
 %{?with_ruby:BuildRequires:    ruby-devel}
@@ -94,24 +89,6 @@ Dowiązania do AppArmor dla Perla.
 %description -n perl-LibAppArmor -l pt_BR.UTF-8
 Módulos Perl para acessar os recursos do AppArmor.
 
-%package -n python-LibAppArmor
-Summary:       AppArmor Python bindings
-Summary(pl.UTF-8):     Dowiązania do AppArmor dla Pythona
-Summary(pt_BR.UTF-8):  Módulos Python para acessar os recursos do AppArmor
-Group:         Development/Languages/Python
-%pyrequires_eq  python
-Obsoletes:     python-apparmor
-Requires:      %{name} = %{epoch}:%{version}-%{release}
-
-%description -n python-LibAppArmor
-AppArmor Python bindings.
-
-%description -n python-LibAppArmor -l pl.UTF-8
-Dowiązania do AppArmor dla Pythona.
-
-%description -n python-LibAppArmor -l pt_BR.UTF-8
-Módulos Python para acessar os recursos do AppArmor.
-
 %package -n python3-LibAppArmor
 Summary:       AppArmor Python bindings
 Summary(pl.UTF-8):     Dowiązania do AppArmor dla Pythona
@@ -156,9 +133,6 @@ cd libraries/libapparmor
 %{__automake}
 
 %configure \
-%if %{with python3}
-       PYTHON="%{__python3}" \
-%endif
        %{?with_ruby:--with-ruby} \
        --with-python \
        --with-perl
@@ -200,6 +174,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man2/aa_find_mountpoint.2*
 %{_mandir}/man2/aa_getcon.2*
 %{_mandir}/man2/aa_query_label.2*
+%{_mandir}/man2/aa_stack_profile.2*
 %{_mandir}/man3/aa_features.3*
 %{_mandir}/man3/aa_kernel_interface.3*
 %{_mandir}/man3/aa_policy_cache.3*
@@ -215,22 +190,13 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{perl_vendorarch}/auto/LibAppArmor
 %attr(755,root,root) %{perl_vendorarch}/auto/LibAppArmor/LibAppArmor.so
 
-%if %{with python3}
 %files -n python3-LibAppArmor
 %defattr(644,root,root,755)
 %dir %{py3_sitedir}/LibAppArmor
 %attr(755,root,root) %{py3_sitedir}/LibAppArmor/_LibAppArmor.*.so
 %{py3_sitedir}/LibAppArmor/__pycache__
-%{py3_sitedir}/LibAppArmor/__init__.py
+%{py3_sitedir}/LibAppArmor/*.py
 %{py3_sitedir}/LibAppArmor-*.egg-info
-%else
-%files -n python-LibAppArmor
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/LibAppArmor
-%attr(755,root,root) %{py_sitedir}/LibAppArmor/_LibAppArmor.so
-%{py_sitedir}/LibAppArmor/__init__.py[co]
-%{py_sitedir}/LibAppArmor-*.egg-info
-%endif
 
 %if %{with ruby}
 %files -n ruby-LibAppArmor
This page took 0.032896 seconds and 4 git commands to generate.