Blame SOURCES/0001-Do-not-install-into-python_sitelib.patch

4a2b61
From fae22c2f1bf5d40b0ba5cb47f597daaf3ed4ae6b Mon Sep 17 00:00:00 2001
4a2b61
From: Richard Hughes <richard@hughsie.com>
4a2b61
Date: Mon, 17 Mar 2014 19:35:04 +0000
4a2b61
Subject: [PATCH] Do not install into python_sitelib
4a2b61
4a2b61
The .pyc and .pyo files are actually architecture specific and this causes
4a2b61
PackageKit to fail the RHEL multilib self tests.
4a2b61
---
4a2b61
 configure.ac               | 11 +++++++++--
4a2b61
 contrib/PackageKit.spec.in |  5 +++--
4a2b61
 2 files changed, 12 insertions(+), 4 deletions(-)
4a2b61
4a2b61
diff --git a/configure.ac b/configure.ac
4a2b61
index 68ce26a..8cdabd7 100644
4a2b61
--- a/configure.ac
4a2b61
+++ b/configure.ac
4a2b61
@@ -91,8 +91,14 @@ if test x$enable_python3 = xyes; then
4a2b61
 else
4a2b61
 	AM_PATH_PYTHON([2.7])
4a2b61
 fi
4a2b61
-
4a2b61
-PYTHON_PACKAGE_DIR=${pythondir}/packagekit
4a2b61
+AC_ARG_WITH([python_package_dir],
4a2b61
+	    AS_HELP_STRING([--with-python-package-dir=<location>],
4a2b61
+			   [Location for python modules]))
4a2b61
+if test -z "$with_python_package_dir" ; then
4a2b61
+	PYTHON_PACKAGE_DIR=${pythondir}/packagekit
4a2b61
+else
4a2b61
+	PYTHON_PACKAGE_DIR=${with_python_package_dir}/packagekit
4a2b61
+fi
4a2b61
 AC_SUBST(PYTHON_PACKAGE_DIR)
4a2b61
 
4a2b61
 if test "$GCC" = "yes"; then