From 291f840e04c71a597612dafd825cbf3d1b1a67b6 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Fri, 26 Jul 2019 10:31:13 -0500 Subject: [PATCH] Tweak to support flatpak. --- python-qt5.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python-qt5.spec b/python-qt5.spec index 09c2d6b..13fdf3c 100644 --- a/python-qt5.spec +++ b/python-qt5.spec @@ -37,7 +37,7 @@ Summary: PyQt5 is Python bindings for Qt5 Name: python-qt5 Version: 5.12.3 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3 Url: http://www.riverbankcomputing.com/software/pyqt/ @@ -367,6 +367,11 @@ sed -i \ %{buildroot}%{_bindir}/{pyrcc5,pylupdate5,pyuic5} %endif +if [ "%{_prefix}" != "/usr" ]; then + cp -ru %{buildroot}/usr/* %{buildroot}%{_prefix}/ + rm -rf %{buildroot}/usr/* +fi + %if 0%{?with_python2} %files -n python2-qt5 @@ -531,6 +536,10 @@ sed -i \ %changelog +* Fri Jul 26 2019 Gwyn Ciesla - 5.12.3-3 +- Add ugly hack to work around setuptools issue for flatpak. +- https://github.com/pypa/setuptools/issues/1808 + * Fri Jun 28 2019 Rex Dieter - 5.12.3-2 - rebuild (qtbase/qtmultimedia)