forked from pool/python3-pyside6
Compare commits
29 Commits
Author | SHA256 | Date | |
---|---|---|---|
2563926685 | |||
|
3f038ed9ae | ||
f90628d7bb | |||
|
9757f34f88 | ||
|
f4fd29ece1 | ||
f0db6bae0a | |||
|
8feec36b69 | ||
|
ef014e5be2 | ||
|
73c48e36e4 | ||
|
03ac487498 | ||
fb01ecf83b | |||
|
6c503a37d4 | ||
e2130bd859 | |||
|
4b3ff491e7 | ||
7d009c49c5 | |||
|
0484cd155f | ||
6673425fd9 | |||
|
2b90227d1d | ||
5df641ef24 | |||
|
f2a2a79e4f | ||
627840ead2 | |||
|
0a202c8af1 | ||
ed7f77d10d | |||
|
dd68d08ee4 | ||
|
69cc0b1566 | ||
|
d67efcb8eb | ||
|
709caa64e7 | ||
c533b1c761 | |||
|
aaebb2e9d3 |
@@ -1,15 +1,18 @@
|
||||
From 3de1ff0464ccf0f5e88c62330e98cb816c42f7b2 Mon Sep 17 00:00:00 2001
|
||||
From e9591e27db4ae3412d4504a69a8afebee9a1b83e Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Giboudeaux <christophe@krop.fr>
|
||||
Date: Tue, 27 Jul 2021 14:54:00 +0200
|
||||
Subject: [PATCH] Always link to python libraries.
|
||||
|
||||
Change-Id: I687191431adaff55927de353db8f81dfa30ba1b1
|
||||
---
|
||||
sources/shiboken6/cmake/ShibokenHelpers.cmake | 10 +++-------
|
||||
1 file changed, 3 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake
|
||||
index 1a46e5b..6c10c07 100644
|
||||
index 27ee333..4be2ad1 100644
|
||||
--- a/sources/shiboken6/cmake/ShibokenHelpers.cmake
|
||||
+++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake
|
||||
@@ -420,13 +420,9 @@ macro(shiboken_compute_python_libraries)
|
||||
@@ -425,13 +425,9 @@ macro(shiboken_compute_python_libraries)
|
||||
"SHIBOKEN_COMPUTE_LIBS" "shiboken_compute_python_libraries"
|
||||
"IS_CALLED_FROM_EXPORT" "" "" ${ARGN})
|
||||
|
||||
@@ -26,3 +29,6 @@ index 1a46e5b..6c10c07 100644
|
||||
|
||||
# If the resulting variable
|
||||
# contains a "debug;X;optimized;Y" list like described in shiboken_check_if_limited_api,
|
||||
--
|
||||
2.46.1
|
||||
|
||||
|
@@ -1,41 +0,0 @@
|
||||
From: Antonio Larrosa <alarrosa@suse.com>
|
||||
Subject: Fix for pytest-qt test_destroyed failure
|
||||
|
||||
This fixes the issue in the python-pytest-qt package (test-pyside6 flavor)
|
||||
that triggered the following failure:
|
||||
|
||||
[ 90s] ________________________________ test_destroyed ________________________________
|
||||
[ 90s] CALL ERROR: Exceptions caught in Qt event loop:
|
||||
[ 90s] ________________________________________________________________________________
|
||||
[ 90s] RuntimeError: Internal C++ object (Obj) already deleted.
|
||||
[ 90s]
|
||||
[ 90s] The above exception was the direct cause of the following exception:
|
||||
[ 90s]
|
||||
[ 90s] Traceback (most recent call last):
|
||||
[ 90s] File "/usr/lib/python3.11/site-packages/pytestqt/wait_signal.py", line 219, in _quit_loop_by_signal
|
||||
[ 90s] self._cleanup()
|
||||
[ 90s] File "/usr/lib/python3.11/site-packages/pytestqt/wait_signal.py", line 226, in _cleanup
|
||||
[ 90s] _silent_disconnect(signal, self._quit_loop_by_signal)
|
||||
[ 90s] File "/usr/lib/python3.11/site-packages/pytestqt/wait_signal.py", line 741, in _silent_disconnect
|
||||
[ 90s] signal.disconnect(slot)
|
||||
[ 90s] SystemError: <class 'RuntimeError'> returned a result with an exception set
|
||||
|
||||
This happened because PyObject_CallObject (or PyObject_GetAttr) was
|
||||
setting an exception and warnDisconnectFailed was generating a new one
|
||||
without the first one being processed yet.
|
||||
|
||||
Submitted to upstream in https://codereview.qt-project.org/c/pyside/pyside-setup/+/567559
|
||||
|
||||
Index: pyside-setup-everywhere-src-6.7.1/sources/pyside6/libpyside/pysidesignal.cpp
|
||||
===================================================================
|
||||
--- pyside-setup-everywhere-src-6.7.1.orig/sources/pyside6/libpyside/pysidesignal.cpp
|
||||
+++ pyside-setup-everywhere-src-6.7.1/sources/pyside6/libpyside/pysidesignal.cpp
|
||||
@@ -718,7 +718,7 @@ static PyObject *signalInstanceDisconnec
|
||||
Shiboken::AutoDecRef pyMethod(PyObject_GetAttr(source->d->source,
|
||||
PySide::PySideName::qtDisconnect()));
|
||||
PyObject *result = PyObject_CallObject(pyMethod, tupleArgs);
|
||||
- if (result != Py_True)
|
||||
+ if (result && result != Py_True)
|
||||
warnDisconnectFailed(slot, source->d->signature);
|
||||
return result;
|
||||
}
|
BIN
pyside-setup-everywhere-src-6.7.2.tar.xz
(Stored with Git LFS)
BIN
pyside-setup-everywhere-src-6.7.2.tar.xz
(Stored with Git LFS)
Binary file not shown.
3
pyside-setup-everywhere-src-6.9.1.tar.xz
Normal file
3
pyside-setup-everywhere-src-6.9.1.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:04c712c5b9234add0d9b5aa3c01a0caede64a55b496127751f5d52a230cff748
|
||||
size 16669448
|
@@ -1,3 +1,103 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 16:07:10 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.9.1. Check the installed changes-6.9.1 file for the
|
||||
full list of changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 7 07:44:43 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Disable more failing test on x86_64 and riscv
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 24 10:40:36 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- Exclude a number of tests that segfault in ppc64le
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 4 13:13:03 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Disable a test that fails randomly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 2 11:39:00 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.9.0. Check the installed changes-6.9.0 file for the
|
||||
full list of changes
|
||||
- Drop patch:
|
||||
* fix-pytest-qt.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 18 13:27:48 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update Shiboken runtime dependency. llvm-config is required
|
||||
- Disable a failing test on ppc64le
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 10 14:43:59 UTC 2025 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Update test excludes for qemu emulation and riscv64
|
||||
- Increase testing timeout to avoid spurious failure of
|
||||
registry_existence_test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 31 12:40:44 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.8.2. Check the installed changes-6.8.2 file for the
|
||||
full list of changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 14 09:31:54 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.8.1.1. Check the installed changes-6.8.1 file for the
|
||||
full list of changes
|
||||
- Drop patches, merged upstream:
|
||||
* 0001-PySide6-Documentation-Name-the-.rst-doc-files-accord.patch
|
||||
* 0001-build-Install-module-doc-snippet-files.patch
|
||||
- Drop 0001-signature-Fix-pointers-to-signature-bytes-with-the-h.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 8 09:58:04 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- Update to 6.8.0.2
|
||||
- Support lazy nested types.
|
||||
- Provide __all__ only on demand.
|
||||
- Handle correctly callback dynamic slots that fail.
|
||||
- Small fixes.
|
||||
- Drop patch, merged upstream:
|
||||
* 0001-Lazy-Init-Support-Lazy-Subtypes-amended.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 26 21:29:14 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Add patches to fix issue found by the KDE CI (PYSIDE-2893)
|
||||
* 0001-PySide6-Documentation-Name-the-.rst-doc-files-accord.patch
|
||||
* 0001-build-Install-module-doc-snippet-files.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 11:35:35 UTC 2024 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
- Add patch to fix shiboken on 32bit platforms:
|
||||
* 0001-signature-Fix-pointers-to-signature-bytes-with-the-h.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 06:45:34 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Add upstream change:
|
||||
* 0001-Lazy-Init-Support-Lazy-Subtypes-amended.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 10 20:20:00 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.8.0. Check the installed changes-6.8.0 file for the
|
||||
full list of changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 28 08:37:04 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.7.3. Check the installed changes-6.7.3 file for the
|
||||
full list of changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 19:17:03 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python3-pyside6
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
%define tar_name pyside-setup-everywhere-src
|
||||
%define short_version 6.7
|
||||
%define tar_version 6.9.1
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%flavor" == ""
|
||||
@@ -43,16 +43,14 @@ ExclusiveArch: donotbuild
|
||||
%endif
|
||||
|
||||
Name: %{mypython}-%{pyside_flavor}
|
||||
Version: 6.7.2
|
||||
Version: 6.9.1
|
||||
Release: 0
|
||||
Summary: Python bindings for Qt 6
|
||||
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) AND GPL-2.0-only AND GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
URL: https://www.qt.io
|
||||
Source: https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-%{version}-src/%{tar_name}-%{version}.tar.xz
|
||||
Source: https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-%{version}-src/%{tar_name}-%{tar_version}.tar.xz
|
||||
# PATCH-FIX-OPENSUSE
|
||||
Patch0: 0001-Always-link-to-python-libraries.patch
|
||||
# PATCH-FIX-UPSTREAM https://codereview.qt-project.org/c/pyside/pyside-setup/+/567559
|
||||
Patch1: fix-pytest-qt.patch
|
||||
# SECTION common_dependencies
|
||||
BuildRequires: clang-devel
|
||||
BuildRequires: %{mypython}-Sphinx
|
||||
@@ -60,21 +58,22 @@ BuildRequires: %{mypython}-devel >= 3.7
|
||||
BuildRequires: %{mypython}-numpy-devel
|
||||
BuildRequires: %{mypython}-setuptools
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: llvm-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: qt6-macros
|
||||
BuildRequires: cmake(Qt6Core)
|
||||
BuildRequires: cmake(Qt6Test)
|
||||
BuildRequires: cmake(Qt6Xml)
|
||||
BuildRequires: cmake(Qt6Core) >= %{version}
|
||||
BuildRequires: cmake(Qt6CorePrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Test) >= %{version}
|
||||
BuildRequires: cmake(Qt6TestPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Xml) >= %{version}
|
||||
BuildRequires: cmake(Qt6XmlPrivate) >= %{version}
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(libxslt)
|
||||
# /SECTION
|
||||
%if "%{pyside_flavor}" == "pyside6"
|
||||
# For the registry_existence test
|
||||
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150500
|
||||
# Not available in 15.5
|
||||
BuildRequires: %{mypython}-distro
|
||||
%endif
|
||||
BuildRequires: %{mypython}-shiboken6-devel = %{version}
|
||||
# SECTION test_dependencies
|
||||
BuildRequires: Mesa-dri
|
||||
@@ -83,64 +82,120 @@ BuildRequires: qt6-sql-sqlite
|
||||
BuildRequires: xvfb-run
|
||||
# /SECTION
|
||||
# SECTION essential_modules
|
||||
BuildRequires: cmake(Qt6Concurrent)
|
||||
BuildRequires: cmake(Qt6ExampleIconsPrivate)
|
||||
BuildRequires: cmake(Qt6Gui)
|
||||
BuildRequires: cmake(Qt6Network)
|
||||
BuildRequires: cmake(Qt6PrintSupport)
|
||||
BuildRequires: cmake(Qt6Sql)
|
||||
BuildRequires: cmake(Qt6Widgets)
|
||||
BuildRequires: cmake(Qt6Concurrent) >= %{version}
|
||||
BuildRequires: cmake(Qt6ExampleIconsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Gui) >= %{version}
|
||||
BuildRequires: cmake(Qt6GuiPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Network) >= %{version}
|
||||
BuildRequires: cmake(Qt6NetworkPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6PrintSupport) >= %{version}
|
||||
BuildRequires: cmake(Qt6PrintSupportPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Sql) >= %{version}
|
||||
BuildRequires: cmake(Qt6SqlPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Widgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6WidgetsPrivate) >= %{version}
|
||||
# /SECTION
|
||||
# SECTION optional_modules
|
||||
BuildRequires: qt6-qml-private-devel
|
||||
BuildRequires: cmake(Qt63DAnimation)
|
||||
BuildRequires: cmake(Qt63DCore)
|
||||
BuildRequires: cmake(Qt63DExtras)
|
||||
BuildRequires: cmake(Qt63DInput)
|
||||
BuildRequires: cmake(Qt63DLogic)
|
||||
BuildRequires: cmake(Qt63DRender)
|
||||
BuildRequires: cmake(Qt6Bluetooth)
|
||||
BuildRequires: cmake(Qt6Charts)
|
||||
BuildRequires: cmake(Qt6DBus)
|
||||
BuildRequires: cmake(Qt6DataVisualization)
|
||||
BuildRequires: cmake(Qt6Designer)
|
||||
BuildRequires: cmake(Qt6Graphs)
|
||||
BuildRequires: cmake(Qt6Help)
|
||||
BuildRequires: cmake(Qt6HttpServer)
|
||||
BuildRequires: cmake(Qt6Location)
|
||||
BuildRequires: cmake(Qt6Multimedia)
|
||||
BuildRequires: cmake(Qt6MultimediaWidgets)
|
||||
BuildRequires: cmake(Qt6NetworkAuth)
|
||||
BuildRequires: cmake(Qt6OpenGL)
|
||||
BuildRequires: cmake(Qt6OpenGLWidgets)
|
||||
BuildRequires: cmake(Qt6Positioning)
|
||||
BuildRequires: cmake(Qt6Qml)
|
||||
BuildRequires: cmake(Qt6Quick)
|
||||
BuildRequires: cmake(Qt6Quick3D)
|
||||
BuildRequires: cmake(Qt6QuickControls2)
|
||||
BuildRequires: cmake(Qt6QuickTest)
|
||||
BuildRequires: cmake(Qt6QuickWidgets)
|
||||
BuildRequires: cmake(Qt6RemoteObjects)
|
||||
BuildRequires: cmake(Qt6Scxml)
|
||||
BuildRequires: cmake(Qt6Sensors)
|
||||
BuildRequires: cmake(Qt6SerialBus)
|
||||
BuildRequires: cmake(Qt6SerialPort)
|
||||
BuildRequires: cmake(Qt6SpatialAudio)
|
||||
BuildRequires: cmake(Qt6StateMachine)
|
||||
BuildRequires: cmake(Qt6Svg)
|
||||
BuildRequires: cmake(Qt6SvgWidgets)
|
||||
BuildRequires: cmake(Qt6TextToSpeech)
|
||||
BuildRequires: cmake(Qt6UiPlugin)
|
||||
BuildRequires: cmake(Qt6UiTools)
|
||||
BuildRequires: cmake(Qt6WebChannel)
|
||||
%ifarch x86_64 %x86_64 aarch64 riscv64
|
||||
BuildRequires: cmake(Qt6Pdf)
|
||||
BuildRequires: cmake(Qt6PdfWidgets)
|
||||
BuildRequires: cmake(Qt6WebEngineCore)
|
||||
BuildRequires: cmake(Qt6WebEngineQuick)
|
||||
BuildRequires: cmake(Qt6WebEngineWidgets)
|
||||
BuildRequires: cmake(Qt63DAnimation) >= %{version}
|
||||
BuildRequires: cmake(Qt63DAnimationPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt63DCore) >= %{version}
|
||||
BuildRequires: cmake(Qt63DCorePrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt63DExtras) >= %{version}
|
||||
BuildRequires: cmake(Qt63DExtrasPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt63DInput) >= %{version}
|
||||
BuildRequires: cmake(Qt63DInputPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt63DLogic) >= %{version}
|
||||
BuildRequires: cmake(Qt63DLogicPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt63DRender) >= %{version}
|
||||
BuildRequires: cmake(Qt63DRenderPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Bluetooth) >= %{version}
|
||||
BuildRequires: cmake(Qt6BluetoothPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Charts) >= %{version}
|
||||
BuildRequires: cmake(Qt6ChartsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6DBus) >= %{version}
|
||||
BuildRequires: cmake(Qt6DBusPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6DataVisualization) >= %{version}
|
||||
BuildRequires: cmake(Qt6DataVisualizationPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Designer) >= %{version}
|
||||
BuildRequires: cmake(Qt6DesignerPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Graphs) >= %{version}
|
||||
BuildRequires: cmake(Qt6GraphsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6GraphsWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6GraphsWidgetsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Help) >= %{version}
|
||||
BuildRequires: cmake(Qt6HelpPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6HttpServer) >= %{version}
|
||||
BuildRequires: cmake(Qt6HttpServerPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Location) >= %{version}
|
||||
BuildRequires: cmake(Qt6LocationPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Multimedia) >= %{version}
|
||||
BuildRequires: cmake(Qt6MultimediaPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6MultimediaWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6MultimediaWidgetsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6NetworkAuth) >= %{version}
|
||||
BuildRequires: cmake(Qt6Nfc) >= %{version}
|
||||
BuildRequires: cmake(Qt6NfcPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6NetworkAuthPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6OpenGL) >= %{version}
|
||||
BuildRequires: cmake(Qt6OpenGLWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6Positioning) >= %{version}
|
||||
BuildRequires: cmake(Qt6PositioningPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Qml) >= %{version}
|
||||
BuildRequires: cmake(Qt6QmlPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Quick) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Quick3D) >= %{version}
|
||||
BuildRequires: cmake(Qt6Quick3DPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickControls2) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickControls2Private) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickTest) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickTestPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6QuickWidgetsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6RemoteObjects) >= %{version}
|
||||
BuildRequires: cmake(Qt6RemoteObjectsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6RepParser) >= %{version}
|
||||
BuildRequires: cmake(Qt6Scxml) >= %{version}
|
||||
BuildRequires: cmake(Qt6ScxmlPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Sensors) >= %{version}
|
||||
BuildRequires: cmake(Qt6SensorsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6SerialBus) >= %{version}
|
||||
BuildRequires: cmake(Qt6SerialBusPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6SerialPort) >= %{version}
|
||||
BuildRequires: cmake(Qt6SerialPortPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6SpatialAudio) >= %{version}
|
||||
BuildRequires: cmake(Qt6SpatialAudioPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6StateMachine) >= %{version}
|
||||
BuildRequires: cmake(Qt6StateMachinePrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6Svg) >= %{version}
|
||||
BuildRequires: cmake(Qt6SvgPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6SvgWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6SvgWidgetsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6TextToSpeech) >= %{version}
|
||||
BuildRequires: cmake(Qt6TextToSpeechPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6UiPlugin) >= %{version}
|
||||
BuildRequires: cmake(Qt6UiTools) >= %{version}
|
||||
BuildRequires: cmake(Qt6UiToolsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebChannel) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebChannelPrivate) >= %{version}
|
||||
%ifarch x86_64 %{x86_64} aarch64 riscv64
|
||||
BuildRequires: cmake(Qt6Pdf) >= %{version}
|
||||
BuildRequires: cmake(Qt6PdfPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6PdfWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6PdfWidgetsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebEngineCore) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebEngineCorePrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebEngineQuick) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebEngineQuickPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebEngineWidgets) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebEngineWidgetsPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebView) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebViewPrivate) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebViewQuick) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebViewQuickPrivate) >= %{version}
|
||||
%endif
|
||||
BuildRequires: cmake(Qt6WebSockets)
|
||||
BuildRequires: cmake(Qt6WebSockets) >= %{version}
|
||||
BuildRequires: cmake(Qt6WebSocketsPrivate) >= %{version}
|
||||
# /SECTION
|
||||
Requires: %{mypython}-shiboken6
|
||||
%endif
|
||||
@@ -155,6 +210,10 @@ Python bindings for the Qt cross-platform application and UI framework.
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}
|
||||
%if "%{pyside_flavor}" == "shiboken6"
|
||||
# Shiboken runs llvm-config to find Clang's built-in include directory
|
||||
Requires: llvm%{_llvm_sonum}-devel
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1500
|
||||
Provides: python3-%{pyside_flavor}-devel = %{version}-%{release}
|
||||
Obsoletes: python3-%{pyside_flavor}-devel < %{version}-%{release}
|
||||
@@ -164,6 +223,8 @@ Obsoletes: python3-%{pyside_flavor}-devel < %{version}-%{release}
|
||||
Python bindings for the Qt cross-platform application and UI framework
|
||||
|
||||
%prep
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
|
||||
%autosetup -p1 -n %{tar_name}-%{version}
|
||||
|
||||
# Restore 6.6.1 RPATH value. rpmlint will complain otherwise
|
||||
@@ -197,7 +258,9 @@ numpyinc=$(%{__mypython} -c 'import numpy; print(numpy.get_include())')
|
||||
%if "%{pyside_flavor}" == "shiboken6"
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
%endif
|
||||
-DQFP_NO_STRIP:BOOL=ON
|
||||
-DQFP_NO_STRIP:BOOL=ON \
|
||||
-DCTEST_TESTING_TIMEOUT=120 \
|
||||
%{nil}
|
||||
|
||||
%{qt6_build}
|
||||
|
||||
@@ -237,8 +300,8 @@ export LD_LIBRARY_PATH=%{buildroot}%{_qt6_libdir}:$LD_LIBRARY_PATH
|
||||
for dir in libminimal libother libsample libsmart; do
|
||||
export LD_LIBRARY_PATH=$PWD/sources/shiboken6/shiboken6/tests/$dir:$LD_LIBRARY_PATH
|
||||
done
|
||||
# 2023-05-30 Only fails on armv7l
|
||||
%ifarch armv7l armv7hl
|
||||
# 2025-03-18 Fails on armv7l and ppc64le
|
||||
%ifarch armv7l armv7hl ppc64le
|
||||
%define excluded_tests 1
|
||||
ctest_exclude_regex="smart_smart_pointer"
|
||||
%endif
|
||||
@@ -248,7 +311,7 @@ ctest_exclude_regex="smart_smart_pointer"
|
||||
%define xvfb_command xvfb-run -s "-screen 0 1600x1200x16 -ac +extension GLX +render -noreset" \\
|
||||
|
||||
%define excluded_tests 1
|
||||
# Excluded tests (last update: 2024-05-27)
|
||||
# Excluded tests (last update: 2025-05-07)
|
||||
# QtWebEngineWidgets_pyside-474-qtwebengineview fails with 'ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer'
|
||||
# QtGui_qpen_test times out
|
||||
# QtMultimediaWidgets_qmultimediawidgets aborts
|
||||
@@ -257,16 +320,32 @@ ctest_exclude_regex="smart_smart_pointer"
|
||||
# QtWidgets_qwidget_test fails randomly
|
||||
# pyside6-android-deploy_test_pyside6_android_deploy
|
||||
# QtCore_qoperatingsystemversion_test fails after https://code.qt.io/cgit/qt/qtbase.git/commit/?id=1214edc
|
||||
ctest_exclude_regex="QtWebEngineWidgets_pyside-474-qtwebengineview|QtGui_qpen_test|QtMultimediaWidgets_qmultimediawidgets|Qt3DExtras_qt3dextras_test|QtPositioning_positioning|pyside6-deploy_test_pyside6_deploy|QtWidgets_qwidget_test|pyside6-android-deploy_test_pyside6_android_deploy|qoperatingsystemversion"
|
||||
# cpp_interop_cpp_interop_test is flaky
|
||||
ctest_exclude_regex="QtWebEngineWidgets_pyside-474-qtwebengineview|QtGui_qpen_test|QtMultimediaWidgets_qmultimediawidgets|Qt3DExtras_qt3dextras_test|QtPositioning_positioning|pyside6-deploy_test_pyside6_deploy|QtWidgets_qwidget_test|pyside6-android-deploy_test_pyside6_android_deploy|qoperatingsystemversion|cpp_interop_cpp_interop_test"
|
||||
|
||||
# registry_existence_test randomly times out and QtWebEngineCore_web_engine_custom_scheme asserts
|
||||
# QtWebEngineCore_qwebenginecookiestore_test fails with a mesa error ('MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)')
|
||||
# QtWebEngineCore_web_engine_custom_scheme asserts
|
||||
# QtWebEngineCore_qwebenginecookiestore_test, pysidetest_new_inherited_functions_test fail with a mesa error ('MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)')
|
||||
# QtWidgets_bug_668, QtWidgets_bug_728 segfault
|
||||
%ifarch aarch64
|
||||
ctest_exclude_regex="$ctest_exclude_regex|registry_existence_test|QtWebEngineCore_web_engine_custom_scheme|QtWebEngineCore_qwebenginecookiestore_test"
|
||||
ctest_exclude_regex="$ctest_exclude_regex|QtWebEngineCore_web_engine_custom_scheme|QtWebEngineCore_qwebenginecookiestore_test|pysidetest_new_inherited_functions_test|QtWidgets_bug_668|QtWidgets_bug_728"
|
||||
%endif
|
||||
# python311-distro is unavailable in 15.5, skip registry_existence_test
|
||||
%if 0%{?sle_version} == 150500
|
||||
ctest_exclude_regex="$ctest_exclude_regex|registry_existence_test"
|
||||
# QtWebEngineCore_web_engine_custom_scheme is flaky
|
||||
# QtQml_qquickitem_grabToImage fails for unknown reasons
|
||||
%ifarch riscv64
|
||||
ctest_exclude_regex+="|QtWebEngineCore_web_engine_custom_scheme|QtQml_qquickitem_grabToImage"
|
||||
%endif
|
||||
%ifarch ppc64le
|
||||
# Tests started segfaulting after an unknown change that happened ~ april 10
|
||||
ctest_exclude_regex+="|QtQml_bug_825_old|QtQml_bug_825|QtQml_bug_847|QtQml_qqmlnetwork_test|QtQml_registertype|QtQml_registersingletontype|QtQml_qqmlincubator_incubateWhile|QtQml_qquickitem_grabToImage|quicktestmainwithsetup_tst_quicktestmainwithsetup|QtDataVisualization_datavisualization_test"
|
||||
%endif
|
||||
%ifarch x86_64 riscv64
|
||||
# QtWebengine failures caused by fixes for AMD graphics (cf. sr#1274939)
|
||||
ctest_exclude_regex+="|QtWebEngineCore_web_engine_custom_scheme|QtWebEngineCore_qwebenginecookiestore_test"
|
||||
%endif
|
||||
|
||||
# qemu linux-user emulation is always multi-threaded, sandbox refuses to start
|
||||
%if 0%{?qemu_user_space_build}
|
||||
ctest_exclude_regex+="|QtWebEngineCore_web_engine_custom_scheme|QtWebEngineCore_qwebenginecookiestore_test|QtWebEngineWidgets_pyside-474-qtwebengineview"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
@@ -293,6 +372,9 @@ popd
|
||||
%{mypython_sitearch}/shiboken6_generator/
|
||||
%endif
|
||||
%if "%{pyside_flavor}" == "pyside6"
|
||||
# This library is used to interpret .rep files from Python
|
||||
# it is intentionally static (also see https://bugreports.qt.io/browse/PYSIDE-862)
|
||||
%{_libdir}/libpyside6remoteobjects.a
|
||||
%{_libdir}/libpyside6qml.abi3.so.*
|
||||
%dir %{_qt6_pluginsdir}/designer
|
||||
%{_qt6_pluginsdir}/designer/libPySidePlugin.so
|
||||
|
Reference in New Issue
Block a user