-
+#
+# Conditional build:
%bcond_with python3 # use Python 3 instead of Python 2
Summary: AppArmor userlevel utilities that are useful in creating AppArmor profiles
Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika przydatne do tworzenia profili AppArmor
Name: apparmor-utils
-Version: 2.10
+Version: 2.11.1
Release: 1
Epoch: 1
License: GPL v2
Group: Base
-Source0: http://launchpad.net/apparmor/2.10/%{version}/+download/apparmor-%{version}.tar.gz
-# Source0-md5: 9fd9b6b3525882fdb9441d0f0a8f9162
+Source0: http://launchpad.net/apparmor/2.11/%{version}/+download/apparmor-%{version}.tar.gz
+# Source0-md5: 936829bebbec41d5c2a29a55b85db272
+Patch0: %{name}-pysetup.patch
URL: http://wiki.apparmor.net/
BuildRequires: gettext-tools
%if %{with python3}
BuildRequires: python
Requires: python-LibAppArmor
%endif
+Requires: apparmor-binutils >= %{version}
Requires: perl-LibAppArmor
Provides: subdomain-utils
Obsoletes: subdomain-utils
%prep
%setup -q -n apparmor-%{version}
+%patch0 -p1
%if %{with python3}
%{__sed} -i -e '1s, */usr/bin/env python,%{__python3},' utils/aa-*
%{__make} install \
%if %{with python3}
PYTHON="%{__python3}" \
+ PYSETUP_INSTALL_ARGS="--install-purelib=%{py3_sitescriptdir}" \
%else
PYTHON="%{__python}" \
+ PYSETUP_INSTALL_ARGS="--install-purelib=%{py_sitescriptdir}" \
%endif
DESTDIR=$RPM_BUILD_ROOT \
BINDIR=$RPM_BUILD_ROOT%{_sbindir} \