Accepting request 1058064 from home:alarrosa:branches:KDE:Qt:PyQt
- Add patch to support python 3.6 needed by SLE15: * support-python3.6.patch OBS-URL: https://build.opensuse.org/request/show/1058064 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-sip6?expand=0&rev=22
This commit is contained in:
parent
6223b36901
commit
759e7c766f
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 12 09:02:28 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- Add patch to support python 3.6 needed by SLE15:
|
||||
* support-python3.6.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 09:17:06 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -24,7 +24,8 @@ License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://www.riverbankcomputing.com/software/sip
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/sip/sip-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel >= 3.7}
|
||||
Patch0: support-python3.6.patch
|
||||
BuildRequires: %{python_module devel >= 3.6}
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module ply}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@ -46,7 +47,10 @@ to generate wxPython, the Python bindings for wxWidgets.
|
||||
Summary: A Python bindings generator for C/C++ libraries
|
||||
Group: Development/Libraries/Python
|
||||
Requires: c++_compiler
|
||||
Requires: python-devel >= 3.7
|
||||
Requires: python-devel >= 3.6
|
||||
%if %{python_version_nodots} <= 36
|
||||
Requires: python-dataclasses
|
||||
%endif
|
||||
Requires: python-packaging
|
||||
Requires: python-ply
|
||||
Requires: python-setuptools
|
||||
|
90
support-python3.6.patch
Normal file
90
support-python3.6.patch
Normal file
@ -0,0 +1,90 @@
|
||||
Index: sip-6.7.5/PKG-INFO
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/PKG-INFO
|
||||
+++ sip-6.7.5/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: sip-6.7.5/setup.py
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/setup.py
|
||||
+++ sip-6.7.5/setup.py
|
||||
@@ -50,7 +50,7 @@ setup(
|
||||
name='sip',
|
||||
version=version,
|
||||
license='SIP',
|
||||
- python_requires='>=3.7',
|
||||
+ python_requires='>=3.6',
|
||||
install_requires=['packaging', 'ply', 'setuptools', 'toml'],
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
Index: sip-6.7.5/sipbuild/py_versions.py
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/sipbuild/py_versions.py
|
||||
+++ sip-6.7.5/sipbuild/py_versions.py
|
||||
@@ -22,4 +22,4 @@
|
||||
|
||||
|
||||
# The oldest supported minor version of Python v3.
|
||||
-OLDEST_SUPPORTED_MINOR = 7
|
||||
+OLDEST_SUPPORTED_MINOR = 6
|
||||
Index: sip-6.7.5/sipbuild/module/source/12/setup.py.in
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/sipbuild/module/source/12/setup.py.in
|
||||
+++ sip-6.7.5/sipbuild/module/source/12/setup.py.in
|
||||
@@ -40,6 +40,6 @@ setup(
|
||||
name='@SIP_MODULE_PROJECT_NAME@',
|
||||
version='@SIP_MODULE_VERSION@',
|
||||
license='SIP',
|
||||
- python_requires='>=3.7',
|
||||
+ python_requires='>=3.6',
|
||||
ext_modules=[module]
|
||||
)
|
||||
Index: sip-6.7.5/sipbuild/module/source/12/sip.h.in
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/sipbuild/module/source/12/sip.h.in
|
||||
+++ sip-6.7.5/sipbuild/module/source/12/sip.h.in
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <Python.h>
|
||||
|
||||
/* Sanity check on the Python version. */
|
||||
-#if PY_VERSION_HEX < 0x03070000
|
||||
-#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.7 or later"
|
||||
+#if PY_VERSION_HEX < 0x03060000
|
||||
+#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.6 or later"
|
||||
#endif
|
||||
|
||||
|
||||
Index: sip-6.7.5/sipbuild/module/source/13/setup.py.in
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/sipbuild/module/source/13/setup.py.in
|
||||
+++ sip-6.7.5/sipbuild/module/source/13/setup.py.in
|
||||
@@ -40,6 +40,6 @@ setup(
|
||||
name='@SIP_MODULE_PROJECT_NAME@',
|
||||
version='@SIP_MODULE_VERSION@',
|
||||
license='SIP',
|
||||
- python_requires='>=3.7',
|
||||
+ python_requires='>=3.6',
|
||||
ext_modules=[module]
|
||||
)
|
||||
Index: sip-6.7.5/sipbuild/module/source/13/sip.h.in
|
||||
===================================================================
|
||||
--- sip-6.7.5.orig/sipbuild/module/source/13/sip.h.in
|
||||
+++ sip-6.7.5/sipbuild/module/source/13/sip.h.in
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <Python.h>
|
||||
|
||||
/* Sanity check on the Python version. */
|
||||
-#if PY_VERSION_HEX < 0x03070000
|
||||
-#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.7 or later"
|
||||
+#if PY_VERSION_HEX < 0x03060000
|
||||
+#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.6 or later"
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user