From f74a2a1694de71b9478d6279c7f61ce7a6c8ef9df03bfc083afa006c35ec0c4f Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 22 Jan 2025 12:31:18 +0000 Subject: [PATCH] - Add patch to fix license in setup.py and PKG-INFO files. I contacted upstream (Phil Thompson) and he confirmed that pyqt6-sip is now licensed just as BSD-2-Clause and setup.py needs fixing. Considering the sources of pyqt6-sip and pyqt5-sip had the same license related changes, I added the following patch to fix this here too: * fix-license-in-setup_py.patch - Rebase patch: * support-python3.6.patch OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-qt5-sip?expand=0&rev=14 --- fix-license-in-setup_py.patch | 39 +++++++++++++++++++++++++++++++++++ python-qt5-sip.changes | 13 ++++++++++++ python-qt5-sip.spec | 1 + support-python3.6.patch | 2 +- 4 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 fix-license-in-setup_py.patch diff --git a/fix-license-in-setup_py.patch b/fix-license-in-setup_py.patch new file mode 100644 index 0000000..374cefd --- /dev/null +++ b/fix-license-in-setup_py.patch @@ -0,0 +1,39 @@ +Index: pyqt5_sip-12.16.1/PKG-INFO +=================================================================== +--- pyqt5_sip-12.16.1.orig/PKG-INFO ++++ pyqt5_sip-12.16.1/PKG-INFO +@@ -5,7 +5,7 @@ Summary: The sip module support for PyQt + Home-page: https://github.com/Python-SIP/sip + Author: Phil Thompson + Author-email: phil@riverbankcomputing.com +-License: SIP ++License: BSD-2-Clause + Platform: X11 + Platform: macOS + Platform: Windows +Index: pyqt5_sip-12.16.1/setup.py +=================================================================== +--- pyqt5_sip-12.16.1.orig/setup.py ++++ pyqt5_sip-12.16.1/setup.py +@@ -17,7 +17,7 @@ module = Extension('PyQt5.sip', module_s + setup( + name='PyQt5_sip', + version='12.16.1', +- license='SIP', ++ license='BSD-2-Clause', + python_requires='>=3.9', + ext_modules=[module] + ) +Index: pyqt5_sip-12.16.1/PyQt5_sip.egg-info/PKG-INFO +=================================================================== +--- pyqt5_sip-12.16.1.orig/PyQt5_sip.egg-info/PKG-INFO ++++ pyqt5_sip-12.16.1/PyQt5_sip.egg-info/PKG-INFO +@@ -5,7 +5,7 @@ Summary: The sip module support for PyQt + Home-page: https://github.com/Python-SIP/sip + Author: Phil Thompson + Author-email: phil@riverbankcomputing.com +-License: SIP ++License: BSD-2-Clause + Platform: X11 + Platform: macOS + Platform: Windows diff --git a/python-qt5-sip.changes b/python-qt5-sip.changes index 328a7a7..3dbfde8 100644 --- a/python-qt5-sip.changes +++ b/python-qt5-sip.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Jan 22 08:47:55 UTC 2025 - Antonio Larrosa + +- Add patch to fix license in setup.py and PKG-INFO files. I + contacted upstream (Phil Thompson) and he confirmed that + pyqt6-sip is now licensed just as BSD-2-Clause and setup.py needs + fixing. Considering the sources of pyqt6-sip and pyqt5-sip had + the same license related changes, I added the following patch + to fix this here too: + * fix-license-in-setup_py.patch +- Rebase patch: + * support-python3.6.patch + ------------------------------------------------------------------- Tue Jan 21 10:53:06 UTC 2025 - Dirk Stoecker diff --git a/python-qt5-sip.spec b/python-qt5-sip.spec index 37e97b2..cefe95c 100644 --- a/python-qt5-sip.spec +++ b/python-qt5-sip.spec @@ -25,6 +25,7 @@ Summary: The sip module support for PyQt5 URL: https://github.com/Python-SIP/sip Group: Development/Languages/Python Source0: https://files.pythonhosted.org/packages/source/P/PyQt5-sip/pyqt5_sip-%{version}.tar.gz +Patch0: fix-license-in-setup_py.patch # PATCH-FIX-OPENSUSE Set minimum python version to 3.6 to support Leap distribution Patch100: support-python3.6.patch BuildRequires: %{python_module devel >= 3.6} diff --git a/support-python3.6.patch b/support-python3.6.patch index d94aacd..1d1993c 100644 --- a/support-python3.6.patch +++ b/support-python3.6.patch @@ -28,7 +28,7 @@ diff -ur pyqt5_sip-12.16.1/setup.py pyqt5_sip-12.16.1_fix/setup.py @@ -18,6 +18,6 @@ name='PyQt5_sip', version='12.16.1', - license='SIP', + license='BSD-2-Clause', - python_requires='>=3.9', + python_requires='>=3.6', ext_modules=[module]