commit 18a38bf510353fb1353927c8ba9fdd86fab48c3b Author: Adrian Schröter Date: Thu Feb 1 16:51:01 2024 +0100 Sync from SUSE:ALP:Source:Standard:1.0 python3-pyside6 revision b710bacf21ff2bc3cb6726c65ed673b2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/0001-Always-link-to-python-libraries.patch b/0001-Always-link-to-python-libraries.patch new file mode 100644 index 0000000..9c4314d --- /dev/null +++ b/0001-Always-link-to-python-libraries.patch @@ -0,0 +1,42 @@ +From 3de1ff0464ccf0f5e88c62330e98cb816c42f7b2 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Tue, 27 Jul 2021 14:54:00 +0200 +Subject: [PATCH] Always link to python libraries. + +Change-Id: I687191431adaff55927de353db8f81dfa30ba1b1 +--- + sources/shiboken6/cmake/ShibokenHelpers.cmake | 18 +++--------------- + 1 file changed, 3 insertions(+), 15 deletions(-) + +diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake +index 87a6762..189d7ab 100644 +--- a/sources/shiboken6/cmake/ShibokenHelpers.cmake ++++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake +@@ -310,21 +310,9 @@ macro(shiboken_compute_python_libraries) + "SHIBOKEN_COMPUTE_LIBS" "shiboken_compute_python_libraries" + "IS_CALLED_FROM_EXPORT" "" "" ${ARGN}) + +- if (NOT SHIBOKEN_PYTHON_LIBRARIES) +- set(SHIBOKEN_PYTHON_LIBRARIES "") +- endif() +- +- if(CMAKE_BUILD_TYPE STREQUAL "Debug") +- if(WIN32 AND NOT SHIBOKEN_PYTHON_LIBRARIES) +- set(SHIBOKEN_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES}) +- endif() +- endif() +- +- if(CMAKE_BUILD_TYPE STREQUAL "Release") +- if(WIN32 AND NOT SHIBOKEN_PYTHON_LIBRARIES) +- set(SHIBOKEN_PYTHON_LIBRARIES ${PYTHON_LIBRARIES}) +- endif() +- endif() ++ # Always link to python libraries. ++ message(STATUS "Linking shiboken to ${PYTHON_LIBRARIES}") ++ set(SHIBOKEN_PYTHON_LIBRARIES ${PYTHON_LIBRARIES}) + + # If the resulting variable + # contains a "debug;X;optimized;Y" list like described in shiboken_check_if_limited_api, +-- +2.34.1 + diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..c1040ac --- /dev/null +++ b/_constraints @@ -0,0 +1,25 @@ + + + + python3-pyside6:shiboken6 + + + + 3500 + + + + + + python3-pyside6 + + + + 6 + + + 6 + + + + diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..684ba60 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + shiboken6 + + diff --git a/pyside-setup-everywhere-src-6.6.1.tar.xz b/pyside-setup-everywhere-src-6.6.1.tar.xz new file mode 100644 index 0000000..994fb92 --- /dev/null +++ b/pyside-setup-everywhere-src-6.6.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:341f42483fbe58c88fa5b353eefa83ffcc4ec440bf6e87c1c7ffd278ed54d1ca +size 13887704 diff --git a/python3-pyside6.changes b/python3-pyside6.changes new file mode 100644 index 0000000..8e7e53b --- /dev/null +++ b/python3-pyside6.changes @@ -0,0 +1,244 @@ +------------------------------------------------------------------- +Thu Dec 7 10:54:43 UTC 2023 - Christophe Marin + +- Update to 6.6.1. Check the installed changes-6.6.0 file for the + full list of changes +- Drop patch, merged upstream: + * 0001-Fix-QtAsyncio-install-dir.patch + +------------------------------------------------------------------- +Tue Oct 17 10:35:38 UTC 2023 - Christophe Marin + +- Update to 6.6.0. Check the installed changes-6.6.0 file for the + full list of changes +- Drop patches, merged upstream: + * 0001-Fix-tests-sample_privatector-sample_privatedtor-fail.patch + * 0001-adapt-qC_Debug_Info_Warning_Critical_-for-new-definition.patch +- Add patch: + * 0001-Fix-QtAsyncio-install-dir.patch + +------------------------------------------------------------------- +Wed Oct 4 09:00:16 UTC 2023 - Antonio Larrosa + +- Add patch from upstream to fix a build failure: + * 0001-adapt-qC_Debug_Info_Warning_Critical_-for-new-definition.patch + +------------------------------------------------------------------- +Mon Sep 18 12:54:20 UTC 2023 - Christophe Marin + +- Add patch to fix failure with Python 3.11.5: + * 0001-Fix-tests-sample_privatector-sample_privatedtor-fail.patch + +------------------------------------------------------------------- +Wed Jul 26 10:48:26 UTC 2023 - Christophe Marin + +- Update to 6.5.2. Check the installed changes-6.5.2 file for the + full list of changes +- Drop patch, merged upstream: + * 0001-CMake-Fix-installation-of-pyi-files.patch + +------------------------------------------------------------------- +Tue May 30 08:23:43 UTC 2023 - Christophe Marin + +- Update to 6.5.1. Check the installed changes-6.5.1 file for the + full list of changes +- Drop patch, merged upstream: + * 0001-Fix-build-when-using-QT_FEATURE_opengles2.patch +- Add patch: + * 0001-CMake-Fix-installation-of-pyi-files.patch + +------------------------------------------------------------------- +Mon Apr 24 09:45:54 UTC 2023 - Frederic Crozat + +- Generate egg-info. + +------------------------------------------------------------------- +Sat Apr 22 08:38:24 UTC 2023 - Christophe Marin + +- Add patch to fix build on arm (boo#1210723): + * 0001-Fix-build-when-using-QT_FEATURE_opengles2.patch + +------------------------------------------------------------------- +Tue Apr 4 23:22:25 UTC 2023 - Christophe Marin + +- Update to 6.5.0. Check the installed changes-6.5.0 file for the + full list of changes +- Drop patch, merged upstream: + * 0001-Don-t-install-CMake-files-into-versioned-directories.patch +- Build pyside with llvm15 on Tumbleweed to work around + boo#1210176 / https://bugreports.qt.io/browse/PYSIDE-2268 + +------------------------------------------------------------------- +Fri Mar 17 09:04:56 UTC 2023 - Christophe Marin + +- Temporarily disable Qt3D bindings on x86 + +------------------------------------------------------------------- +Wed Jan 11 11:11:25 UTC 2023 - Christophe Marin + +- Update to 6.4.2. Check the installed changes-6.4.2 file for the + full list of changes +- Drop patches, merged upstream: + * 0001-Fix-a-cmake-only-build.patch + * 0002-Fix-a-cmake-only-build-amended.patch + +------------------------------------------------------------------- +Tue Dec 6 07:34:22 UTC 2022 - Christophe Marin + +- Disable two additional tests on aarch64 + +------------------------------------------------------------------- +Thu Nov 24 08:14:56 UTC 2022 - Christophe Giboudeaux + +- Update to 6.4.1. Check the installed changes-6.4.1 file for the + full list of changes + * The long missing support for __slots__ was finally added + * Documentation builds have been fixed to work with + system-installed versions of Qt 6. + * A bug when passing wrong keyword args to signals has been fixed + * The build with OpenGLES has been fixed + * Crashes when not implementing abstract methods have been + fixed + * Python 3.10 and higher are not compatible to the + __signature__ attribute. This has been fixed by a temporary + patch until the final removal of that attribute. +- Drop patch, merged upstream: + * pyside-6.4.0-arm_gles.patch +- Add patches to fix CMake builds: + * 0001-Fix-a-cmake-only-build.patch + * 0002-Fix-a-cmake-only-build-amended.patch + +------------------------------------------------------------------- +Sun Oct 16 07:04:40 UTC 2022 - Christophe Giboudeaux + +- Update to 6.4.0. Check the installed changes-6.4.0 file for the + full list of changes + * Modules QtPdf, QtPdfWidgets and QtSpatialAudio have been added + * The Qt5Compat QML imports have been added (QtGraphicalEffects) + * Errors message about test-configuring projects with cmake + have been improved + * The feature module has been improved by a reset function + * The documentation build process has been improved; it no + longer requires a complete PySide6 build + * Support for Python 3.11 has been added +- Drop patch, fixed upstream + * 0001-Adapt-to-Qt-6.4.patch +- Fix the shiboken constraints +- Add patch to fix build failures on ARM: + * pyside-6.4.0-arm_gles.patch + +------------------------------------------------------------------- +Fri Sep 30 20:54:07 UTC 2022 - Christophe Giboudeaux + +- Add Qt 6.4 compatibility patch: + * 0001-Adapt-to-Qt-6.4.patch +- Add QtQuick3D and QtSpeech bindings +- Disable a failing test when building with Qt 6.4 + +------------------------------------------------------------------- +Tue Sep 13 06:51:16 UTC 2022 - Christophe Giboudeaux + +- Update to 6.3.2. Check the installed changes-6.3.2 file for the + complete list of changes. + +------------------------------------------------------------------- +Sat Aug 6 09:27:06 UTC 2022 - Christophe Giboudeaux + +- Use CMAKE_SKIP_RPATH when building python3-shiboken6 to avoid + non-existent RUNPATH entries in the library. + +------------------------------------------------------------------- +Sun Jun 19 19:11:09 UTC 2022 - Christophe Giboudeaux + +- Update to 6.3.1. Check the installed changes-6.3.1 file for the + complete list of changes. +- Drop patch, fixed upstream: + * 0001-Work-around-build-issue-in-pyside-6.3.patch + +------------------------------------------------------------------- +Sun Apr 17 13:25:54 UTC 2022 - Christophe Giboudeaux + +- Add patch to fix build: + * 0001-Work-around-build-issue-in-pyside-6.3.patch +- Rebase patch: + * 0001-Don-t-install-CMake-files-into-versioned-directories.patch + +------------------------------------------------------------------- +Tue Apr 12 10:26:46 UTC 2022 - Christophe Giboudeaux + +- Update to 6.3.0. Check the installed changes-6.3.0 file for the + complete list of changes. + * The QtNfc module has been added. + * New QML tools have been added: pyside6-metaobjectdump, + pyside6-qmltyperegistrar and pyside6-qmllint. + * Several class decorators have been added for QML: QmlAttached, + QmlExtended, QmlForeign, QmlNamedElement, QmlSingleton and + QmlUncreatable. + * class QPyQmlPropertyValueSource for implementing QML value + property sources has been added. + * QML code has been split out from libpyside into a new library + libpysideqml. libpyside thus no longer depends on QtQml and + pyside.h no longer includes QML headers. pyside.h has been + split into smaller headers. + * A context manager for override cursors has been added. It is + now possible to write code like: with + QApplication.setOverrideCursor(Qt.WaitCursor):... +- Don't build QtWebEngine bindings on 32 bits archs. + +------------------------------------------------------------------- +Wed Mar 23 11:37:45 UTC 2022 - Christophe Giboudeaux + +- Update to 6.2.4 + https://code.qt.io/cgit/pyside/pyside-setup.git/tree/doc/changelogs/changes-6.2.4 +- Drop patches, now upstream: + * 0001-Prospective-fix-for-broken-QByteArray-__msetitem__-o.patch + * 0002-Refactor-code-snippets-for-QByteArray-__msetitem__-_.patch + +------------------------------------------------------------------- +Thu Feb 3 15:43:44 UTC 2022 - Christophe Giboudeaux + +- Update to 6.2.3 + https://code.qt.io/cgit/pyside/pyside-setup.git/tree/doc/changelogs/changes-6.2.3 +- Add upstream patches to fix issues on big endian archs: + * 0001-Prospective-fix-for-broken-QByteArray-__msetitem__-o.patch + * 0002-Refactor-code-snippets-for-QByteArray-__msetitem__-_.patch +- Update _constraints for pyside6. + +------------------------------------------------------------------- +Thu Dec 9 08:23:19 UTC 2021 - Christophe Giboudeaux + +- Update to 6.2.2 + https://code.qt.io/cgit/pyside/pyside-setup.git/tree/doc/changelogs/changes-6.2.2 +- Rebase patches: + * 0001-Don-t-install-CMake-files-into-versioned-directories.patch + * 0001-Always-link-to-python-libraries.patch + +------------------------------------------------------------------- +Sat Oct 30 09:41:32 UTC 2021 - Christophe Giboudeaux + +- Update to 6.2.1 + https://code.qt.io/cgit/pyside/pyside-setup.git/tree/dist/changes-6.2.1 +- Drop upstream changes: + * 0001-Fix-hang-in-test-bug_430.py-in-Qt-6.3.patch + * 0001-shiboken6-Adapt-to-LLVM-12.01.patch + +------------------------------------------------------------------- +Tue Oct 12 09:51:22 UTC 2021 - Christophe Giboudeaux + +- Add upstream patches to fix a test failure... + * 0001-Fix-hang-in-test-bug_430.py-in-Qt-6.3.patch +- ...and failures with llvm > 12 + * 0001-shiboken6-Adapt-to-LLVM-12.01.patch + +------------------------------------------------------------------- +Thu Sep 30 13:14:54 UTC 2021 - Christophe Giboudeaux + +- Update to 6.2.0 + +------------------------------------------------------------------- +Tue Jul 27 16:40:23 UTC 2021 - Christophe Giboudeaux + +- Init python3-pyside6 +- Add patches: + * 0001-Don-t-install-CMake-files-into-versioned-directories.patch + * 0001-Always-link-to-python-libraries.patch diff --git a/python3-pyside6.spec b/python3-pyside6.spec new file mode 100644 index 0000000..32e27a5 --- /dev/null +++ b/python3-pyside6.spec @@ -0,0 +1,283 @@ +# +# spec file for package python3-pyside6 +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define tar_name pyside-setup-everywhere-src +%define short_version 6.6 +# +%if "@BUILD_FLAVOR@%{nil}" == "shiboken6" +%global pyside_flavor shiboken6 +%else +%global pyside_flavor pyside6 +%endif +# +Name: python3-%{pyside_flavor} +Version: 6.6.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 +# PATCH-FIX-OPENSUSE +Patch0: 0001-Always-link-to-python-libraries.patch +# SECTION common_dependencies +BuildRequires: clang-devel +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx +BuildRequires: python3-devel >= 3.7 +BuildRequires: python3-numpy-devel +BuildRequires: python3-setuptools +BuildRequires: qt6-macros +BuildRequires: cmake(Qt6Core) +BuildRequires: cmake(Qt6Test) +BuildRequires: cmake(Qt6Xml) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(libxslt) +# /SECTION +%if "%{pyside_flavor}" == "pyside6" +# For the registry_existence test +BuildRequires: python3-distro +BuildRequires: cmake(Shiboken6) = %{version} +# SECTION test_dependencies +BuildRequires: Mesa-dri +BuildRequires: qt6-location +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) +# /SECTION +# SECTION optional_modules +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: qt6-qml-private-devel +BuildRequires: cmake(Qt6OpenGL) +BuildRequires: cmake(Qt6OpenGLWidgets) +BuildRequires: cmake(Qt6Positioning) +BuildRequires: cmake(Qt6Qml) +BuildRequires: cmake(Qt6Quick) +BuildRequires: cmake(Qt6Quick3D) +BuildRequires: cmake(Qt6QuickControls2) +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) +%ifnarch %{ix86} armv7l armv7hl ppc ppc64 ppc64le s390 s390x +BuildRequires: cmake(Qt6Pdf) +BuildRequires: cmake(Qt6PdfWidgets) +BuildRequires: cmake(Qt6WebEngineCore) +BuildRequires: cmake(Qt6WebEngineQuick) +BuildRequires: cmake(Qt6WebEngineWidgets) +%endif +BuildRequires: cmake(Qt6WebSockets) +# /SECTION +%endif + +%description +Python bindings for the Qt cross-platform application and UI framework. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version} + +%description devel +Python bindings for the Qt cross-platform application and UI framework + +%prep +%autosetup -p1 -n %{tar_name}-%{version} + +%build +_libsuffix=$(echo %{_lib} | cut -b4-) + +# The python script used to set paths before running tests +# doesn't handle build dirs called 'build' +%global __qt6_builddir %{pyside_flavor} + +# Fix installation dir +sed -i 's#purelib#platlib#' sources/shiboken6/cmake/ShibokenHelpers.cmake + +pushd sources/%{pyside_flavor} + +# NOTE:The compiler and linker flags shall not be defined +%cmake_qt6 \ + -DBUILD_TESTS:BOOL=ON \ + -DLIB_SUFFIX:STRING="${_libsuffix}" \ + -DCMAKE_C_FLAGS:STRING="" \ + -DCMAKE_CXX_FLAGS:STRING="" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="" \ + -DPYTHON_EXECUTABLE:STRING=python3 \ + -DNUMPY_INCLUDE_DIR:STRING=%{python_sitearch}/numpy/core/include \ + -DCMAKE_BUILD_RPATH_USE_ORIGIN:BOOL=ON \ +%if "%{pyside_flavor}" == "shiboken6" + -DCMAKE_SKIP_RPATH:BOOL=ON \ +%endif + -DQFP_NO_STRIP:BOOL=ON + +%{qt6_build} + +popd + +%install +pushd sources/%{pyside_flavor} +%{qt6_install} +popd + +%if "%{pyside_flavor}" == "shiboken6" + +%fdupes -s %{buildroot}%{python_sitearch} + +sed -i 's#env python$#python3#' %{buildroot}%{_bindir}/shiboken_tool.py + +%else + +rm %{buildroot}%{_datadir}/PySide6/typesystems/*_{mac,win}.xml + +%fdupes -s %{buildroot}%{python_sitearch}/PySide6 + +%endif +# Install egg-info +# qtpaths is needed +export PATH="%{_qt6_bindir}:$PATH" +python3 setup.py egg_info --build-type=%{pyside_flavor} +cp -r *.egg-info %{buildroot}%{python_sitearch} + +%fdupes -s %{buildroot}%{_libdir}/cmake + +%check +# the pyside tests need to know the path to the 'qmake' executable +export PATH=%{_qt6_bindir}:$PATH + +# Needed by the shiboken tests +export LD_LIBRARY_PATH=%{buildroot}%{_qt6_libdir}:$LD_LIBRARY_PATH + +%if "%{pyside_flavor}" == "shiboken6" +# Since we need CMAKE_SKIP_RPATH to avoid having bogus RUNPATH in the shiboken libraries, +# It needs to know the path to a couple tests folders +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 +%define excluded_tests 1 +ctest_exclude_regex="smart_smart_pointer" +%endif +%endif + +%if "%{pyside_flavor}" == "pyside6" +%define xvfb_command xvfb-run -s "-screen 0 1600x1200x16 -ac +extension GLX +render -noreset" \\ + +%define excluded_tests 1 +# Excluded tests (last update: 2023-10-17) +# QtWebEngineWidgets_pyside-474-qtwebengineview fails with 'ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer' +# QtGui_qpen_test times out +# QtMultimediaWidgets_qmultimediawidgets aborts +# Qt3DExtras_qt3dextras_test fails on s390x (timeout) and randomly everywhere else (exception) +# QtPositioning_positioning fails +# QtWidgets_qwidget_test fails randomly +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" + +# Random failures on aarch64: registry_existence_test times out and QtWebEngineCore_web_engine_custom_scheme asserts +%ifarch aarch64 +ctest_exclude_regex="$ctest_exclude_regex|registry_existence_test|QtWebEngineCore_web_engine_custom_scheme" +%endif +# Test broken by https://codereview.qt-project.org/c/pyside/pyside-setup/+/478366 +%ifarch aarch64 armv7l armv7hl +ctest_exclude_regex="$ctest_exclude_regex|QtOpenGL_qopenglwindow_test" +%endif +%endif + +pushd sources/%{pyside_flavor} +%{?xvfb_command} +ctest \ + --output-on-failure \ + --force-new-ctest-process \ + --test-dir %{__qt6_builddir} \ + --parallel %{_smp_build_ncpus} \ + %{?excluded_tests:--exclude-regex "($ctest_exclude_regex)"} +popd + +%ldconfig_scriptlets + +%files +%license sources/%{pyside_flavor}/COPYING* +%doc doc/changelogs/changes-* +%{_libdir}/lib%{pyside_flavor}.abi3.so.* +%if "%{pyside_flavor}" == "shiboken6" +%{_bindir}/shiboken6 +%{_bindir}/shiboken_tool.py +%{python_sitearch}/shiboken6/ +%{python_sitearch}/shiboken6_generator/ +%endif +%if "%{pyside_flavor}" == "pyside6" +%{_libdir}/libpyside6qml.abi3.so.* +%dir %{_qt6_pluginsdir}/designer +%{_qt6_pluginsdir}/designer/libPySidePlugin.so +%{python_sitearch}/PySide6/ +%endif +%{python_sitearch}/*.egg-info + +%files devel +%if "%{pyside_flavor}" == "shiboken6" +%{_includedir}/shiboken6/ +%{_qt6_cmakedir}/Shiboken6/ +%{_qt6_cmakedir}/Shiboken6Tools/ +%endif +%if "%{pyside_flavor}" == "pyside6" +%{_datadir}/PySide6/ +%{_includedir}/PySide6/ +%{_libdir}/libpyside6qml.abi3.so +%{_qt6_cmakedir}/PySide6/ +%{_qt6_cmakedir}/PySide6Qml/ +%endif +%{_libdir}/lib%{pyside_flavor}.abi3.so +%{_libdir}/pkgconfig/%{pyside_flavor}.pc + +%changelog