From bcc074d2f4493201e7f2ee116328064e0fcc9707ba3338c1afc7a269f97162ca Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 12 Jan 2023 18:28:38 +0000 Subject: [PATCH] Accepting request 1058060 from home:alarrosa:branches:KDE:Qt:PyQt - Add patch to support python 3.6 needed by SLE: * support-python3.6.patch OBS-URL: https://build.opensuse.org/request/show/1058060 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-pyqt-builder?expand=0&rev=8 --- python-pyqt-builder.changes | 6 ++++++ python-pyqt-builder.spec | 5 +++-- support-python3.6.patch | 39 +++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 support-python3.6.patch diff --git a/python-pyqt-builder.changes b/python-pyqt-builder.changes index 0f062f5..5227ba2 100644 --- a/python-pyqt-builder.changes +++ b/python-pyqt-builder.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 12 11:22:21 UTC 2023 - Antonio Larrosa + +- Add patch to support python 3.6 needed by SLE: + * support-python3.6.patch + ------------------------------------------------------------------- Mon Oct 3 17:16:00 UTC 2022 - Ben Greiner diff --git a/python-pyqt-builder.spec b/python-pyqt-builder.spec index 6baf5a6..aae8836 100644 --- a/python-pyqt-builder.spec +++ b/python-pyqt-builder.spec @@ -24,8 +24,9 @@ Summary: The PEP 517 compliant PyQt build system License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP URL: https://www.riverbankcomputing.com/software/pyqt-builder Source0: https://files.pythonhosted.org/packages/source/P/PyQt-builder/PyQt-builder-%{version}.tar.gz +Patch0: support-python3.6.patch BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.6} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-sip-devel >= 6.7 @@ -50,7 +51,7 @@ optional project.py script. Any PEP 517 compliant frontend, for example sip-install or pip can then be used to build and install the project. %prep -%setup -q -n PyQt-builder-%{version} +%autosetup -p1 -n PyQt-builder-%{version} %build %python_build diff --git a/support-python3.6.patch b/support-python3.6.patch new file mode 100644 index 0000000..49b8236 --- /dev/null +++ b/support-python3.6.patch @@ -0,0 +1,39 @@ +Index: PyQt-builder-1.14.0/PKG-INFO +=================================================================== +--- PyQt-builder-1.14.0.orig/PKG-INFO ++++ PyQt-builder-1.14.0/PKG-INFO +@@ -9,7 +9,7 @@ License: SIP + Platform: X11 + Platform: macOS + Platform: Windows +-Requires-Python: >=3.7 ++Requires-Python: >=3.6 + License-File: LICENSE + License-File: LICENSE-GPL3 + License-File: LICENSE-GPL2 +Index: PyQt-builder-1.14.0/PyQt_builder.egg-info/PKG-INFO +=================================================================== +--- PyQt-builder-1.14.0.orig/PyQt_builder.egg-info/PKG-INFO ++++ PyQt-builder-1.14.0/PyQt_builder.egg-info/PKG-INFO +@@ -9,7 +9,7 @@ License: SIP + Platform: X11 + Platform: macOS + Platform: Windows +-Requires-Python: >=3.7 ++Requires-Python: >=3.6 + License-File: LICENSE + License-File: LICENSE-GPL3 + License-File: LICENSE-GPL2 +Index: PyQt-builder-1.14.0/setup.py +=================================================================== +--- PyQt-builder-1.14.0.orig/setup.py ++++ PyQt-builder-1.14.0/setup.py +@@ -48,7 +48,7 @@ setup( + name='PyQt-builder', + version=version, + license='SIP', +- python_requires='>=3.7', ++ python_requires='>=3.6', + install_requires=['packaging', 'sip >=6.7, <7'], + packages=find_packages(), + package_data={