From 5a19c9a0dd06f8214266186123b358d1b6c4c40e Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Tue, 30 Jul 2019 09:00:45 -0500 Subject: [PATCH] Another tweak. --- python-qt5.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-qt5.spec b/python-qt5.spec index d496059..c8c58b8 100644 --- a/python-qt5.spec +++ b/python-qt5.spec @@ -328,6 +328,10 @@ mkdir -p %{buildroot}%{_datadir}/python3-sip 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