From bf3531fd24ee1cf39ba1545264c6b9c5e2057971bdfcf6b2fa3a07abea8227ee Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 15 Mar 2023 22:52:35 +0000 Subject: [PATCH] Accepting request 1072164 from home:alarrosa:branches:openSUSE:Backports:SLE-15-SP5:Staging:adi:5 - Add patch to support python 3.6 in order to build for SLE/Leap: * support-python3.6.patch OBS-URL: https://build.opensuse.org/request/show/1072164 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6-NetworkAuth?expand=0&rev=9 --- python-PyQt6-NetworkAuth.changes | 6 ++++++ python-PyQt6-NetworkAuth.spec | 5 +++-- support-python3.6.patch | 13 +++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 support-python3.6.patch diff --git a/python-PyQt6-NetworkAuth.changes b/python-PyQt6-NetworkAuth.changes index 2125de1..d7fdfc4 100644 --- a/python-PyQt6-NetworkAuth.changes +++ b/python-PyQt6-NetworkAuth.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 15 14:05:34 UTC 2023 - Antonio Larrosa + +- Add patch to support python 3.6 in order to build for SLE/Leap: + * support-python3.6.patch + ------------------------------------------------------------------- Mon Oct 3 17:47:56 UTC 2022 - Ben Greiner diff --git a/python-PyQt6-NetworkAuth.spec b/python-PyQt6-NetworkAuth.spec index 6a080bc..14e09d8 100644 --- a/python-PyQt6-NetworkAuth.spec +++ b/python-PyQt6-NetworkAuth.spec @@ -29,8 +29,9 @@ License: GPL-3.0-only Group: Development/Libraries/Python URL: https://www.riverbankcomputing.com/software/pyqtnetworkauth Source: https://files.pythonhosted.org/packages/source/P/%{mname}/PyQt6_%{qtlib}-%{version}.tar.gz +Patch0: support-python3.6.patch BuildRequires: %{python_module PyQt6-devel >= %{version}} -BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module devel >= 3.6} BuildRequires: %{python_module pyqt-builder >= 1.9} BuildRequires: %{python_module sip-devel >= 6} BuildRequires: fdupes @@ -57,7 +58,7 @@ This package provides Qt6 API files for the Eric IDE and the SIP files used to generate the Python bindings for %{name} %prep -%setup -q -n PyQt6_%{qtlib}-%{version} +%autosetup -p1 -n PyQt6_%{qtlib}-%{version} %build %pyqt_build diff --git a/support-python3.6.patch b/support-python3.6.patch new file mode 100644 index 0000000..2dab050 --- /dev/null +++ b/support-python3.6.patch @@ -0,0 +1,13 @@ +Index: PyQt6_NetworkAuth-6.4.0/PKG-INFO +=================================================================== +--- PyQt6_NetworkAuth-6.4.0.orig/PKG-INFO ++++ PyQt6_NetworkAuth-6.4.0/PKG-INFO +@@ -1,7 +1,7 @@ + Metadata-Version: 2.1 + Name: PyQt6-NetworkAuth + Version: 6.4.0 +-Requires-Python: >=3.7 ++Requires-Python: >=3.6 + Summary: Python bindings for the Qt Network Authorization library + Home-Page: https://www.riverbankcomputing.com/software/pyqtnetworkauth/ + Author: Riverbank Computing Limited