- Fix Timeline generation for qt3d-geometry-equals.patch

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-qt3d-qt5?expand=0&rev=5
This commit is contained in:
Benjamin Greiner 2023-01-12 21:02:14 +00:00 committed by Git OBS Bridge
parent aaea51413e
commit e3f890774f
2 changed files with 27 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 12 20:35:53 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Fix Timeline generation for qt3d-geometry-equals.patch
-------------------------------------------------------------------
Thu Jan 12 19:07:57 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -1,23 +1,41 @@
diff -ur PyQt3D-5.15.5.orig/configure.py PyQt3D-5.15.5/configure.py
--- PyQt3D-5.15.5.orig/configure.py 2023-01-11 16:36:08.772857551 +0100
+++ PyQt3D-5.15.5/configure.py 2023-01-12 21:48:49.016850894 +0100
@@ -552,12 +552,12 @@
"""
# Qt v5.12.4 was the last release where we updated PyQt for a patch
- # version.
+ # version. And SUSE started at 5.15.8 again
major = (target_configuration.qt_version >> 16) & 0xff
minor = (target_configuration.qt_version >> 8) & 0xff
patch = target_configuration.qt_version & 0xff
- if (major, minor) >= (5, 13):
+ if (major, minor) >= (5, 13) and (major, minor, patch) < (5, 15, 8):
patch = 0
elif (major, minor) == (5, 12):
if patch > 4:
diff -ur PyQt3D-5.15.5.orig/sip/Qt3DCore/Qt3DCoremod.sip PyQt3D-5.15.5/sip/Qt3DCore/Qt3DCoremod.sip
--- PyQt3D-5.15.5.orig/sip/Qt3DCore/Qt3DCoremod.sip 2023-01-11 16:36:08.788857951 +0100
+++ PyQt3D-5.15.5/sip/Qt3DCore/Qt3DCoremod.sip 2023-01-11 22:35:44.718012376 +0100
+++ PyQt3D-5.15.5/sip/Qt3DCore/Qt3DCoremod.sip 2023-01-12 21:43:54.953179289 +0100
@@ -25,7 +25,7 @@
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
-%Timeline {Qt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3D_5_12_3 Qt3D_5_12_4 Qt3D_5_13_0 Qt3D_5_14_0 Qt3D_5_15_0 Qt3D_5_15_8}
%Copying
Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
diff -ur PyQt3D-5.15.5.orig/sip/Qt3DRender/qgeometryfactory.sip PyQt3D-5.15.5/sip/Qt3DRender/qgeometryfactory.sip
--- PyQt3D-5.15.5.orig/sip/Qt3DRender/qgeometryfactory.sip 2023-01-11 16:36:08.796858151 +0100
+++ PyQt3D-5.15.5/sip/Qt3DRender/qgeometryfactory.sip 2023-01-12 20:03:06.150720450 +0100
+++ PyQt3D-5.15.5/sip/Qt3DRender/qgeometryfactory.sip 2023-01-12 21:44:48.070563125 +0100
@@ -35,7 +35,12 @@
public:
virtual ~QGeometryFactory();
virtual Qt3DRender::QGeometry *operator()() = 0;
+%If (- Qt3D_5_15_7)
+%If (- Qt3D_5_15_0)
virtual bool operator==(const Qt3DRender::QGeometryFactory &other) const = 0;
+%End
+%If (Qt3D_5_15_8 -)