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:
parent
f0ba9e9789
commit
10f2cf2888
11
configure.ac
11
configure.ac
@ -91,8 +91,14 @@ if test x$enable_python3 = xyes; then
|
|||||||
else
|
else
|
||||||
AM_PATH_PYTHON([2.7])
|
AM_PATH_PYTHON([2.7])
|
||||||
fi
|
fi
|
||||||
|
AC_ARG_WITH([python_package_dir],
|
||||||
PYTHON_PACKAGE_DIR=${pythondir}/packagekit
|
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)
|
AC_SUBST(PYTHON_PACKAGE_DIR)
|
||||||
|
|
||||||
if test "$GCC" = "yes"; then
|
if test "$GCC" = "yes"; then
|
||||||
@ -683,6 +689,7 @@ echo "
|
|||||||
systemd-updates: ${build_systemd_updates}
|
systemd-updates: ${build_systemd_updates}
|
||||||
python3: ${enable_python3}
|
python3: ${enable_python3}
|
||||||
systemd system unit dir: ${with_systemdsystemunitdir}
|
systemd system unit dir: ${with_systemdsystemunitdir}
|
||||||
|
python package dir: ${with_python_package_dir}
|
||||||
|
|
||||||
Backends:
|
Backends:
|
||||||
ALPM backend: ${enable_alpm}
|
ALPM backend: ${enable_alpm}
|
||||||
|
@ -166,6 +166,7 @@ using PackageKit.
|
|||||||
--disable-bash-completion \
|
--disable-bash-completion \
|
||||||
%endif
|
%endif
|
||||||
--with-default-backend=auto \
|
--with-default-backend=auto \
|
||||||
|
--with-python-package-dir=%{python3_sitearch} \
|
||||||
--disable-local \
|
--disable-local \
|
||||||
--disable-strict \
|
--disable-strict \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
@ -229,12 +230,12 @@ popd > /dev/null
|
|||||||
%dir %{_sysconfdir}/PackageKit/events/pre-transaction.d
|
%dir %{_sysconfdir}/PackageKit/events/pre-transaction.d
|
||||||
%{_sysconfdir}/PackageKit/events/*.d/README
|
%{_sysconfdir}/PackageKit/events/*.d/README
|
||||||
%dir %{_localstatedir}/lib/PackageKit
|
%dir %{_localstatedir}/lib/PackageKit
|
||||||
%dir %{python_sitelib}/packagekit
|
%dir %{python3_sitearch}/packagekit
|
||||||
%dir %{_localstatedir}/cache/PackageKit
|
%dir %{_localstatedir}/cache/PackageKit
|
||||||
%ghost %verify(not md5 size mtime) %{_localstatedir}/cache/PackageKit/groups.sqlite
|
%ghost %verify(not md5 size mtime) %{_localstatedir}/cache/PackageKit/groups.sqlite
|
||||||
%dir %{_localstatedir}/cache/PackageKit/downloads
|
%dir %{_localstatedir}/cache/PackageKit/downloads
|
||||||
%dir %{_localstatedir}/cache/PackageKit/metadata
|
%dir %{_localstatedir}/cache/PackageKit/metadata
|
||||||
%{python_sitelib}/packagekit/*py*
|
%{python3_sitearch}/packagekit/*py*
|
||||||
%if !0%{?rhel}
|
%if !0%{?rhel}
|
||||||
%{_datadir}/bash-completion/completions/pkcon
|
%{_datadir}/bash-completion/completions/pkcon
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user