!13 fix build error with python 3.11.4

From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-07-20 04:06:34 +00:00 committed by Gitee
commit a1fa07d36d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up PyQt4_gpl_x11-4.12.3/qpy/QtCore/qpycore_classinfo.cpp.me PyQt4_gpl_x11-4.12.3/qpy/QtCore/qpycore_classinfo.cpp
--- PyQt4_gpl_x11-4.12.3/qpy/QtCore/qpycore_classinfo.cpp.me 2022-06-21 15:04:28.885197054 +0200
+++ PyQt4_gpl_x11-4.12.3/qpy/QtCore/qpycore_classinfo.cpp 2022-06-21 15:04:51.654741730 +0200
@@ -36,7 +36,7 @@ PyObject *qpycore_ClassInfo(const char *
// We need the frame we were called from, not the current one.
if (frame)
- frame = frame->f_back;
+ frame = PyFrame_GetBack(frame);
if (!frame)
{

View File

@ -3,13 +3,15 @@
%global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so|%{_qt4_plugindir}/.*\\.so)$
Name: PyQt4
Version: 4.12.3
Release: 1
Release: 2
Summary: Python bindings for Qt4
License: (GPLv3 or GPLv2 with exceptions) and BSD
Url: http://www.riverbankcomputing.com/software/pyqt/
Source0: http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-%{version}/PyQt4_gpl_x11-%{version}.tar.gz/download?use_mirror=ufpr#/PyQt4_gpl_x11-%{version}.tar.gz
Patch0001: qreal_float_support.diff
Patch0002: PyQt4-4.12.3-pyframe_getback.patch
BuildRequires: chrpath dbus-python findutils gcc-c++ pkgconfig(dbus-1) pkgconfig(dbus-python) pkgconfig(phonon)
BuildRequires: pkgconfig(QtDBus) pkgconfig(QtDeclarative) pkgconfig(QtDesigner) pkgconfig(QtGui) pkgconfig(QtHelp)
BuildRequires: pkgconfig(QtMultimedia) pkgconfig(QtNetwork) pkgconfig(QtOpenGL) pkgconfig(QtScript) pkgconfig(QtScriptTools)
@ -109,6 +111,9 @@ diff -u ./sip/QtGui/opengl_types.sip.orig ./sip/QtGui/opengl_types.sip ||:
%{_datadir}/python3-sip/PyQt4/
%changelog
* Thu Jul 20 2023 xu_ping <707078654@qq.com> - 4.12.3-2
- fix build error with python 3.11.4
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 4.12.3-1
- Upgrade to version 4.12.3