- 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
This commit is contained in:
Benjamin Greiner 2025-01-22 12:31:18 +00:00 committed by Git OBS Bridge
parent 2de4cfce86
commit f74a2a1694
4 changed files with 54 additions and 1 deletions

View File

@ -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

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Wed Jan 22 08:47:55 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
- 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 <opensuse@dstoecker.de> Tue Jan 21 10:53:06 UTC 2025 - Dirk Stoecker <opensuse@dstoecker.de>

View File

@ -25,6 +25,7 @@ Summary: The sip module support for PyQt5
URL: https://github.com/Python-SIP/sip URL: https://github.com/Python-SIP/sip
Group: Development/Languages/Python Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/source/P/PyQt5-sip/pyqt5_sip-%{version}.tar.gz 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 # PATCH-FIX-OPENSUSE Set minimum python version to 3.6 to support Leap distribution
Patch100: support-python3.6.patch Patch100: support-python3.6.patch
BuildRequires: %{python_module devel >= 3.6} BuildRequires: %{python_module devel >= 3.6}

View File

@ -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 @@ @@ -18,6 +18,6 @@
name='PyQt5_sip', name='PyQt5_sip',
version='12.16.1', version='12.16.1',
license='SIP', license='BSD-2-Clause',
- python_requires='>=3.9', - python_requires='>=3.9',
+ python_requires='>=3.6', + python_requires='>=3.6',
ext_modules=[module] ext_modules=[module]