Do not install into python_sitelib

The .pyc and .pyo files are actually architecture specific and this causes
PackageKit to fail the RHEL multilib self tests.
This commit is contained in:
Richard Hughes 2014-03-17 19:35:04 +00:00
parent f0ba9e9789
commit 10f2cf2888
2 changed files with 12 additions and 4 deletions

View File

@ -91,8 +91,14 @@ if test x$enable_python3 = xyes; then
else
AM_PATH_PYTHON([2.7])
fi
PYTHON_PACKAGE_DIR=${pythondir}/packagekit
AC_ARG_WITH([python_package_dir],
AS_HELP_STRING([--with-python-package-dir=<location>],
[Location for python modules]))
if test -z "$with_python_package_dir" ; then
PYTHON_PACKAGE_DIR=${pythondir}/packagekit
else
PYTHON_PACKAGE_DIR=${with_python_package_dir}/packagekit
fi
AC_SUBST(PYTHON_PACKAGE_DIR)
if test "$GCC" = "yes"; then
@ -683,6 +689,7 @@ echo "
systemd-updates: ${build_systemd_updates}
python3: ${enable_python3}
systemd system unit dir: ${with_systemdsystemunitdir}
python package dir: ${with_python_package_dir}
Backends:
ALPM backend: ${enable_alpm}

View File

@ -166,6 +166,7 @@ using PackageKit.
--disable-bash-completion \
%endif
--with-default-backend=auto \
--with-python-package-dir=%{python3_sitearch} \
--disable-local \
--disable-strict \
--disable-silent-rules \
@ -229,12 +230,12 @@ popd > /dev/null
%dir %{_sysconfdir}/PackageKit/events/pre-transaction.d
%{_sysconfdir}/PackageKit/events/*.d/README
%dir %{_localstatedir}/lib/PackageKit
%dir %{python_sitelib}/packagekit
%dir %{python3_sitearch}/packagekit
%dir %{_localstatedir}/cache/PackageKit
%ghost %verify(not md5 size mtime) %{_localstatedir}/cache/PackageKit/groups.sqlite
%dir %{_localstatedir}/cache/PackageKit/downloads
%dir %{_localstatedir}/cache/PackageKit/metadata
%{python_sitelib}/packagekit/*py*
%{python3_sitearch}/packagekit/*py*
%if !0%{?rhel}
%{_datadir}/bash-completion/completions/pkcon
%endif