From 9ea17ff34dfc5990874c934a09af2236c76557f7 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Tue, 30 Jul 2019 13:03:13 -0500 Subject: [PATCH] Fingers crossed. --- python-qt5.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-qt5.spec b/python-qt5.spec index e2e5119..37c61ed 100644 --- a/python-qt5.spec +++ b/python-qt5.spec @@ -329,6 +329,11 @@ cp -alf %{buildroot}%{py3_sipdir} \ %{buildroot}%{_datadir}/python3-sip/PyQt5 %endif +if [ "%{_prefix}" != "/usr" ]; then + cp -ru %{buildroot}/usr/* %{buildroot}%{_prefix}/ + rm -rf %{buildroot}/usr/* +fi + # ensure .so modules are executable for proper -debuginfo extraction for i in %{buildroot}%{python3_sitearch}/PyQt5/*.so %{buildroot}%{python3_dbus_dir}/pyqt5.so ; do test -x $i || chmod a+rx $i