]> git.pld-linux.org Git - packages/apparmor-utils.git/blobdiff - apparmor-utils.spec
- up to 2.11.1
[packages/apparmor-utils.git] / apparmor-utils.spec
index 7b658d976f5df988e7ef59db32e0a74f5623251c..50c99fe33e4aa036317cc459f3a035454759a7b8 100644 (file)
@@ -1,16 +1,18 @@
-
+#
+# 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}
@@ -20,6 +22,7 @@ Requires:     python3-LibAppArmor
 BuildRequires: python
 Requires:      python-LibAppArmor
 %endif
+Requires:      apparmor-binutils >= %{version}
 Requires:      perl-LibAppArmor
 Provides:      subdomain-utils
 Obsoletes:     subdomain-utils
@@ -53,6 +56,7 @@ Obsługa plików AppArmor dla Vima.
 
 %prep
 %setup -q -n apparmor-%{version}
+%patch0 -p1
 
 %if %{with python3}
 %{__sed} -i -e '1s, */usr/bin/env python,%{__python3},' utils/aa-*
@@ -67,8 +71,10 @@ cd utils
 %{__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} \
This page took 0.084934 seconds and 4 git commands to generate.