python3-pyside2/python3-pyside2.spec

331 lines
11 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python3-pyside2
#
# Copyright (c) 2024 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/
#
%bcond_without tests
%global flavor @BUILD_FLAVOR@%{nil}
%if "%flavor" == "sle15_python_module"
%{?sle15_python_module_pythons}
%{!?sle15_python_module_pythons:ExclusiveArch: donotbuild}
%{!?sle15_python_module_pythons:BuildRequires: no-build-without-sle15_python_module}
%else
# SLE15: python3.6, Tumbleweed: primary python
%define pythons python3
%endif
%global mypython %pythons
%global __mypython %{expand:%%__%{mypython}}
%global mypython_sitearch %{expand:%%%{mypython}_sitearch}
%global mypython_version_nodots %{expand:%%%{mypython}_version_nodots}
%global mypython_soflags %(%__mypython -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")
# QML imports created and used by examples
%global __requires_exclude qmlimport\\((Charts|TextBalloonPlugin)
Name: %{mypython}-pyside2
Version: 5.15.12
Release: 0
Summary: Python bindings for Qt
# Legal:
# Most files are LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
# pyside2-tools is GPL-2.0-only
# shiboken2 contains files under GPL-3.0-only WITH Qt-GPL-exception-1.0
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://wiki.qt.io/Qt_for_Python
Source0: https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-%{version}-src/pyside-setup-opensource-src-%{version}.tar.xz
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# PATCH-FIX-OPENSUSE
Patch0: 0001-Always-link-to-python-libraries.patch
# PATCH-FIX-UPSTREAM
Patch1: 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch
Accepting request 834560 from home:cgiboudeaux:branches:KDE:Qt5 - Update to 5.15.1 * [PYSIDE-74] Implement default __ne__ and __eq__ for all PySide types * [PYSIDE-198] Add compatibility with Nuitka * [PYSIDE-829] signature: Avoid non-existent attributes in compiled code (Nuitka) * [PYSIDE-841] doc: Add widget styling tutorial * [PYSIDE-841] add quick painteditem example * [PYSIDE-904] Add QObject.findChildren(QRegularExpression) * [PYSIDE-904] qp5_tool.py: Add an configuration key for the CMake generator * [PYSIDE-904] Port some examples from QRegExp to QRegularExpression * [PYSIDE-904] Fix libsample/photon test for Qt 6 / Windows * [PYSIDE-904] Enable adding operators ==, != as functions without code injection * [PYSIDE-957] Implement the QEnum/QFlag decorator, V2 * [PYSIDE-981] Return QVariantList when using list as Signal argument * [PYSIDE-1019] feature-select: Implement a selectable feature framework * [PYSIDE-1019] feature-select: allow snake_case instead of camelCase for methods * [PYSIDE-1019] feature-select: delay the feature switching * [PYSIDE-1223] Use pyside2-uic instead of uic for the loadUiType * [PYSIDE-1257] Potential fix for deploying with cx_freeze using zip_include_packages * [PYSIDE-1282] pthreads: Try to abandon the GIL in case a thread was terminated * [PYSIDE-1292] Doc: Enable doc builds using the offline template * [PYSIDE-1313] basewrapper.cpp: add PyErr_Fetch/Restore in SbkDeallocWrapperCommon() * [PYSIDE-1317] Add QSocketDescriptor class * [PYSIDE-1321] Fix leaking reference in PySide2 property getter * [PYSIDE-1321] Fix some leaks in enumeration creation * [PYSIDE-1323] Add missing Win runtime dll into win wheels * [PYSIDE-1323] Update vcredist binaries for MSVC 2019 * [PYSIDE-1332] Fix crashes in QThread::wait(), QWaitCondition::wait() * [PYSIDE-1349] QQmlComponent: allow thread in constructors * [PYSIDE-1353] doc: fix Property indentation * [PYSIDE-1355] Add Qt3DExtras.QNormalDiffuseMapAlphaMaterial OBS-URL: https://build.opensuse.org/request/show/834560 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=44
2020-09-16 07:04:15 +02:00
# PATCH-FIX-UPSTREAM
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
Patch2: 0001-cmake-Don-t-assume-qhelpgenerator-is-in-PATH.patch
# PATCH-FIX-UPSTREAM
Patch3: 0001-Fix-tests-sample_privatector-sample_privatedtor-fail.patch
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# Provide the PyPI names
Provides: %{mypython}-PySide2 = %{version}-%{release}
Provides: %{mypython}-shiboken2 = %{version}-%{release}
Provides: %{mypython}-shiboken2_generator = %{version}-%{release}
Requires(post): update-alternatives
Requires(postun):update-alternatives
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# SECTION common_dependencies
%if 0%{?suse_version} > 1500
# boo#1210176 - PYSIDE-2268
BuildRequires: clang15-devel
BuildRequires: llvm15-libclang13
#!BuildIgnore: clang16
#!BuildIgnore: clang17
%else
%if 0%{?sle_version} >= 150600
# boo#1210176 - PYSIDE-2268, PY-2288
BuildRequires: clang14-devel
BuildRequires: llvm14-libclang13
#!BuildIgnore: clang16
#!BuildIgnore: clang17
%else
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
BuildRequires: clang-devel >= 3.9
%endif
%endif
BuildRequires: %{mypython}-Sphinx
BuildRequires: %{mypython}-devel
BuildRequires: %{mypython}-idna
BuildRequires: %{mypython}-setuptools
BuildRequires: %{mypython}-urllib3
BuildRequires: %{mypython}-wheel
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libqt5-qtdeclarative-private-headers-devel
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
BuildRequires: libxslt-devel
BuildRequires: python-rpm-macros
%if %{with tests}
BuildRequires: Mesa-dri
BuildRequires: xvfb-run
%endif
# /SECTION
# SECTION essential_modules
BuildRequires: cmake(Qt5Concurrent)
Accepting request 809668 from home:cgiboudeaux:branches:KDE:Qt:5.15 - Update to 5.15.0 * [PYSIDE-487] Add API of Qt 5.15 * [PYSIDE-487] Add support for QSerialPort * [PYSIDE-487] Add QtQuickControls2 * [PYSIDE-841] example: add systray example * [PYSIDE-841] doc: add more videos from Qt events * [PYSIDE-841] doc: add tutorial for using qrc files * [PYSIDE-904] libpyside: Remove deprecated API * [PYSIDE-904] Add support for template type aliases * [PYSIDE-957] Add a tool to dump meta objects of QObject-derived classes * [PYSIDE-1280] Enable injecting raw code for setattro/getattro * [PYSIDE-1309] Rename and update some snippets * [PYSIDE-454] shiboken: Add a way of specifying system includes to be parsed * [PYSIDE-454] shiboken: Handle smart pointers with const pointees * [PYSIDE-904] libshiboken: Remove deprecated API * [PYSIDE-957] shiboken: Fix refcounts of sbkenum * [PYSIDE-990] shiboken: Handle inline namespaces * [PYSIDE-1024] shiboken: Make it possible to specify smartpointer instantiations * [PYSIDE-1074] shiboken: Fix classes in hidden namespaces * [PYSIDE-1188] shiboken: Fix shared pointer return value in virtual function * [PYSIDE-1265] shiboken: Introduce a separate logging category for documentation generation * [PYSIDE-1265] shiboken: Change debug messages to use qCInfo and remove some messages * [PYSIDE-1267] shiboken: Allow for parsing headers under system include paths * [PYSIDE-1296] shiboken: Support non-type template parameters in functions - Drop 0001-shiboken-Support-Clang-version-10.patch. Fixed upstream - Rebase 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Rebase lib64.patch OBS-URL: https://build.opensuse.org/request/show/809668 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=42
2020-05-28 10:01:51 +02:00
BuildRequires: cmake(Qt5Core) >= 5.15
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: cmake(Qt5Sql)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5X11Extras)
BuildRequires: cmake(Qt5Xml)
BuildRequires: cmake(Qt5XmlPatterns)
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# /SECTION
# SECTION optional_modules
BuildRequires: libQt53DQuickScene2D5
BuildRequires: cmake(Qt53DAnimation)
BuildRequires: cmake(Qt53DCore)
BuildRequires: cmake(Qt53DExtras)
BuildRequires: cmake(Qt53DInput)
BuildRequires: cmake(Qt53DLogic)
BuildRequires: cmake(Qt53DRender)
BuildRequires: cmake(Qt5Charts)
BuildRequires: cmake(Qt5DataVisualization)
BuildRequires: cmake(Qt5Designer)
BuildRequires: cmake(Qt5Multimedia)
BuildRequires: cmake(Qt5MultimediaWidgets)
BuildRequires: cmake(Qt5OpenGL)
Accepting request 809668 from home:cgiboudeaux:branches:KDE:Qt:5.15 - Update to 5.15.0 * [PYSIDE-487] Add API of Qt 5.15 * [PYSIDE-487] Add support for QSerialPort * [PYSIDE-487] Add QtQuickControls2 * [PYSIDE-841] example: add systray example * [PYSIDE-841] doc: add more videos from Qt events * [PYSIDE-841] doc: add tutorial for using qrc files * [PYSIDE-904] libpyside: Remove deprecated API * [PYSIDE-904] Add support for template type aliases * [PYSIDE-957] Add a tool to dump meta objects of QObject-derived classes * [PYSIDE-1280] Enable injecting raw code for setattro/getattro * [PYSIDE-1309] Rename and update some snippets * [PYSIDE-454] shiboken: Add a way of specifying system includes to be parsed * [PYSIDE-454] shiboken: Handle smart pointers with const pointees * [PYSIDE-904] libshiboken: Remove deprecated API * [PYSIDE-957] shiboken: Fix refcounts of sbkenum * [PYSIDE-990] shiboken: Handle inline namespaces * [PYSIDE-1024] shiboken: Make it possible to specify smartpointer instantiations * [PYSIDE-1074] shiboken: Fix classes in hidden namespaces * [PYSIDE-1188] shiboken: Fix shared pointer return value in virtual function * [PYSIDE-1265] shiboken: Introduce a separate logging category for documentation generation * [PYSIDE-1265] shiboken: Change debug messages to use qCInfo and remove some messages * [PYSIDE-1267] shiboken: Allow for parsing headers under system include paths * [PYSIDE-1296] shiboken: Support non-type template parameters in functions - Drop 0001-shiboken-Support-Clang-version-10.patch. Fixed upstream - Rebase 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Rebase lib64.patch OBS-URL: https://build.opensuse.org/request/show/809668 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=42
2020-05-28 10:01:51 +02:00
BuildRequires: cmake(Qt5QuickControls2)
BuildRequires: cmake(Qt5QuickWidgets)
BuildRequires: cmake(Qt5RemoteObjects)
BuildRequires: cmake(Qt5Script)
BuildRequires: cmake(Qt5ScriptTools)
BuildRequires: cmake(Qt5Scxml)
BuildRequires: cmake(Qt5Sensors)
Accepting request 809668 from home:cgiboudeaux:branches:KDE:Qt:5.15 - Update to 5.15.0 * [PYSIDE-487] Add API of Qt 5.15 * [PYSIDE-487] Add support for QSerialPort * [PYSIDE-487] Add QtQuickControls2 * [PYSIDE-841] example: add systray example * [PYSIDE-841] doc: add more videos from Qt events * [PYSIDE-841] doc: add tutorial for using qrc files * [PYSIDE-904] libpyside: Remove deprecated API * [PYSIDE-904] Add support for template type aliases * [PYSIDE-957] Add a tool to dump meta objects of QObject-derived classes * [PYSIDE-1280] Enable injecting raw code for setattro/getattro * [PYSIDE-1309] Rename and update some snippets * [PYSIDE-454] shiboken: Add a way of specifying system includes to be parsed * [PYSIDE-454] shiboken: Handle smart pointers with const pointees * [PYSIDE-904] libshiboken: Remove deprecated API * [PYSIDE-957] shiboken: Fix refcounts of sbkenum * [PYSIDE-990] shiboken: Handle inline namespaces * [PYSIDE-1024] shiboken: Make it possible to specify smartpointer instantiations * [PYSIDE-1074] shiboken: Fix classes in hidden namespaces * [PYSIDE-1188] shiboken: Fix shared pointer return value in virtual function * [PYSIDE-1265] shiboken: Introduce a separate logging category for documentation generation * [PYSIDE-1265] shiboken: Change debug messages to use qCInfo and remove some messages * [PYSIDE-1267] shiboken: Allow for parsing headers under system include paths * [PYSIDE-1296] shiboken: Support non-type template parameters in functions - Drop 0001-shiboken-Support-Clang-version-10.patch. Fixed upstream - Rebase 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Rebase lib64.patch OBS-URL: https://build.opensuse.org/request/show/809668 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=42
2020-05-28 10:01:51 +02:00
BuildRequires: cmake(Qt5SerialPort)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5TextToSpeech)
BuildRequires: cmake(Qt5WebChannel)
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%ifnarch ppc64 ppc64le s390x
BuildRequires: cmake(Qt5WebEngineWidgets)
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%endif
BuildRequires: cmake(Qt5WebSockets)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5Xml)
BuildRequires: cmake(Qt5XmlPatterns)
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# /SECTION
%description
The PySide2 project provides Python bindings for the Qt
application and UI framework.
%package devel
Summary: Header Files for PySide2
License: (GPL-2.0-only AND (GPL-2.0-only OR GPL-3.0-or-later) AND GPL-3.0-only WITH Qt-GPL-exception-1.0) OR LGPL-3.0-only
Requires: %{name} = %{version}
# can be used to disambiguate multiple providers of cmake(PySide2) and cmake(Shiboken2)
Provides: pyside2_python_abi(%{mypython_soflags}) = %{version}
%if "%{mypython}" != "python3"
# Can only build for one flavor at a time
Conflicts: python3-pyside2-devel
%endif
%description devel
Files needed for development with the PySide2 bindings
for Qt.
%package examples
Summary: Examples for using PySide2
License: BSD-3-Clause
Requires: %{name} = %{version}
%if "%{mypython}" != "python3"
Conflicts: python3-pyside2-examples
%endif
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
BuildArch: noarch
%description examples
Examples and Tutorials for the PySide2 bindings for Qt.
%prep
%autosetup -p1 -n pyside-setup-opensource-src-%{version}
%build
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
_libsuffix=$(echo %{_lib} | cut -b4-)
# NOTE:The compiler and linker flags shall not be defined
%cmake \
-DLIB_SUFFIX:STRING="${_libsuffix}" \
-DCMAKE_C_FLAGS:STRING="" \
-DCMAKE_CXX_FLAGS:STRING="" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="" \
-DPYTHON_EXECUTABLE:STRING=%{__mypython} \
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
-DCMAKE_BUILD_RPATH_USE_ORIGIN:BOOL=ON \
%if %{with tests}
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
-DBUILD_TESTS:BOOL=ON
%endif
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%cmake_build
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%install
%cmake_install
%python_clone -a %{buildroot}%{_bindir}/pyside2-lupdate
%python_clone -a %{buildroot}%{_bindir}/pyside_tool.py
%python_clone -a %{buildroot}%{_bindir}/shiboken2
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# Broken and conflicts with python3X-pyside6
rm %{buildroot}%{_bindir}/shiboken_tool.py
# No use on linux
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
rm %{buildroot}%{_datadir}/PySide2/typesystems/*_{mac,win}.xml
# The cmake superproject forgets these
cp -r build/sources/pyside2/PySide2/*.pyi \
build/sources/pyside2/PySide2/py.typed \
build/sources/pyside2/PySide2/support \
%{buildroot}%{mypython_sitearch}/PySide2/
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# this is not ideal, but at least we get some python dist metadata
%{__mypython} setup.py dist_info
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
for d in *.dist-info; do
# the commands were copied verbatim, not wrapped by entry-points.
rm -f $d/entry_points.txt
%if %{pkg_vcmp %{mypython}-setuptools < 63}
cp -r $d %{buildroot}%{mypython_sitearch}/${d/.dist-info/-%{version}.dist-info}
%else
cp -r $d %{buildroot}%{mypython_sitearch}/${d}
%endif
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
done
# Examples must be installed manually
cp -R examples %{buildroot}%{_datadir}/PySide2
%fdupes %{buildroot}%{_datadir}/PySide2/examples/
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%fdupes %{buildroot}%{_libqt5_libdir}/cmake/
%fdupes %{buildroot}%{mypython_sitearch}
%check
%if %{with tests}
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
# Set some environment variables
export PATH=%{_libqt5_bindir}:$PATH
export LD_LIBRARY_PATH=%{buildroot}%{_libqt5_libdir}:$LD_LIBRARY_PATH
export PYTHONPATH=%{buildroot}%{mypython_sitearch}:$PWD/build/sources/pyside2/tests/pysidetest
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%if 0%{?sle_version} && 0%{?sle_version} <= 150300
# Leap 15.3: ctest searches the libs before shiboken_paths.py can set the search path (!?)
for binding in $PWD/build/sources/shiboken2/tests/lib*; do
export LD_LIBRARY_PATH=$binding:$LD_LIBRARY_PATH
done
export LD_LIBRARY_PATH=$PWD/build/sources/pyside2/tests/pysidetest:$LD_LIBRARY_PATH
%endif
%define xvfb_command xvfb-run -s "-screen 0 1600x1200x16 -ac +extension GLX +render -noreset"
# Tests known to fail (listed in build_history/blacklist.txt)
ctest_exclude_regex="QtMultimedia_audio_test"
ctest_exclude_regex="$ctest_exclude_regex|QtQml_javascript_exceptions"
ctest_exclude_regex="$ctest_exclude_regex|QtScriptTools_debugger_test"
ctest_exclude_regex="$ctest_exclude_regex|registry_existence_test"
ctest_exclude_regex="$ctest_exclude_regex|QtWebEngineWidgets_pyside-474-qtwebengineview"
ctest_exclude_regex="$ctest_exclude_regex|QtWebEngineCore_web_engine_custom_scheme"
%if %{mypython_version_nodots} >= 311
# Blacklist broken test with python 3.11
ctest_exclude_regex="$ctest_exclude_regex|signal_enum_test|QtCore_qenum_test"
%endif
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%ifarch %{arm}
# bug_307 fails on armv7l only
ctest_exclude_regex="$ctest_exclude_regex|QtWidget_bug_307"
%endif
%ifarch ppc64le s390x
# TODO: investigate/report test failure on PowerPC and s390x
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
ctest_exclude_regex="$ctest_exclude_regex|QtQml_signal_arguments"
%endif
# Tests are executed from subdirectories. %%ctest can't be used.
%define ctest_command %{shrink:ctest
--output-on-failure
--force-new-ctest-process
--parallel %{_smp_build_ncpus}
--exclude-regex "($ctest_exclude_regex)"}
pushd build/sources/shiboken2
%{xvfb_command} %{ctest_command}
popd
pushd build/sources/pyside2
%{xvfb_command} %{ctest_command}
popd
%endif
%post
%{?ldconfig}
%python_install_alternative pyside2-lupdate
%python_install_alternative pyside_tool.py
%python_install_alternative shiboken2
%postun
%{?ldconfig}
%python_uninstall_alternative pyside2-lupdate
%python_uninstall_alternative pyside_tool.py
%python_uninstall_alternative shiboken2
%files
%license LICENSE.*
%doc dist/changes*
%python_alternative %{_bindir}/pyside2-lupdate
%python_alternative %{_bindir}/pyside_tool.py
%python_alternative %{_bindir}/shiboken2
%{_libqt5_libdir}/libpyside2.%{mypython_soflags}.so.*
%{_libqt5_libdir}/libshiboken2.%{mypython_soflags}.so.*
%{mypython_sitearch}/PySide2/
%{mypython_sitearch}/PySide2-%{version}.dist-info
%{mypython_sitearch}/shiboken2/
%{mypython_sitearch}/shiboken2-%{version}.dist-info
%{mypython_sitearch}/shiboken2_generator/
%{mypython_sitearch}/shiboken2_generator-%{version}.dist-info
%files devel
%{_datadir}/PySide2/
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%{_includedir}/PySide2/
%{_includedir}/shiboken2/
%{_libqt5_libdir}/libpyside2.%{mypython_soflags}.so
%{_libqt5_libdir}/libshiboken2.%{mypython_soflags}.so
Accepting request 983591 from home:bnavigator:branches:KDE:Qt5 - Clean up some deprecated python-rpm-macro usage and declare BuildRequirement on it explicitly. - Provide python dist-info metadata and PyPI names in rpm metadata - Fix missing install of typing stub and PySide2.support - Fix ctest suite run by providing some extra paths - Update to 5.15.4 * [PYSIDE-955] QOpenGLContext.versionFunctions() have been implemented. Class QOpenGLVersionFunctionsFactory (from Qt 6) has also been added. * [PYSIDE-1409] signature: The decision heuristics of result tuples have been refined. * [PYSIDE-1438] Crashes in Qt Datavisualization's QBar/SurfaceDataProxy add/set/insertRow() members have been fixed. * [PYSIDE-1502] Import errors will now be properly reported. * [PYSIDE-1513] Documentation on properties has been added. * [PYSIDE-1538] signature: Unrecognized items will no longer raise exceptions. * [PYSIDE-1540] The performance of QPainter::drawPoints(QPolygon) has been improved. * [PYSIDE-1529] Crashes when registering static fields have been fixed. - Update to 5.15.3. Bugs fixed: * [PYSIDE-454] namespace std is no longer rejected in the Qt typesystem files. * [PYSIDE-807] setup.py's 'clean' command has been fixed. * [PYSIDE-1305] The error handling of constructor keyword arguments has been fixed. * [PYSIDE-1422] A crash related to Signal and __eq__ has been fixed. * [PYSIDE-1432] An ownership issue in QLayout::replaceWidget() has been fixed. * [PYSIDE-1442] QFlags operations have been fixed. * [PYSIDE-1447] A crash related to qApp and Python 3.9 has been fixed. * [PYSIDE-1449] QTestlib's QAbstractItemModelTester has been added. * [PYSIDE-1460] An infinite loop changing up directories in the signature bootstrap code has been fixed. * [PYSIDE-1466] The newly introduced overload QSetting.value() taking a type has been documentated. * [PYSIDE-1478] A bug related to using QQmlContext.setContextProperty() with the snake case feature has been fixed. * [PYSIDE-1347] Inheritance for enum types has been fixed. * [PYSIDE-1448] Code injected at target/end being invoked for multiple overload ids has been fixed. * [PYSIDE-1470] shiboken.delete() can now be used to delete Q*Application. * [PYSIDE-1501] The clang parser has been fixed to be able to handle some Boost headers. - Switch to CMake for building pyside2. - Add patch: * 0001-Always-link-to-python-libraries.patch - Rebase patch: * 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch - Drop now unneeded patches: * lib64.patch * 0002-Fix-the-openSUSE-executable-names.patch - Build pyside without QtWebEngine on powerpc and zSystems OBS-URL: https://build.opensuse.org/request/show/983591 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=55
2022-06-19 19:35:33 +02:00
%{_libqt5_libdir}/cmake/PySide2-%{version}
%{_libqt5_libdir}/cmake/Shiboken2-%{version}
%{_libqt5_libdir}/pkgconfig/pyside2.pc
%{_libqt5_libdir}/pkgconfig/shiboken2.pc
%{_mandir}/man1/pyside2-lupdate.1%{?ext_man}
%exclude %{_datadir}/PySide2/examples
%files examples
%dir %{_datadir}/PySide2
%{_datadir}/PySide2/examples
%changelog