Accepting request 760053 from home:cgiboudeaux:branches:KDE:Qt5

Update to 5.14.0

OBS-URL: https://build.opensuse.org/request/show/760053
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=36
This commit is contained in:
Luca Beltrame 2019-12-30 15:48:41 +00:00 committed by Git OBS Bridge
parent c64e3321d1
commit 500e84dc52
7 changed files with 224 additions and 31 deletions

View File

@ -0,0 +1,114 @@
From 69d6c32805c57e9b1c2428567ee968bff33781be Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Mon, 30 Dec 2019 11:24:23 +0100
Subject: [PATCH 1/2] Don't try to install or use uic/rcc/designer copies.
These executables are installed by qtbase and qttools. Making copies
is not needed.
pyside2-tools wrongly assumed the executables were in /usr/bin on Linux.
---
build_scripts/platforms/unix.py | 17 +---------
sources/pyside2-tools/CMakeLists.txt | 48 ----------------------------
2 files changed, 1 insertion(+), 64 deletions(-)
diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py
index abca942..f5b2760 100644
--- a/build_scripts/platforms/unix.py
+++ b/build_scripts/platforms/unix.py
@@ -134,24 +134,9 @@ def prepare_packages_posix(self, vars):
"{st_build_dir}/{st_package_name}",
filter=[
"pyside2-lupdate",
- "uic",
- "rcc",
],
recursive=False, vars=vars))
- # Copying designer
- if sys.platform == "darwin":
- executables.extend(copydir(
- "{install_dir}/bin/Designer.app",
- "{st_build_dir}/{st_package_name}/Designer.app",
- filter=None,
- recursive=True, vars=vars))
- else:
- copyfile(
- "{install_dir}/bin/designer",
- "{st_build_dir}/{st_package_name}/designer",
- force=False, vars=vars)
-
# <install>/lib/lib* -> {st_package_name}/
copydir(
"{install_dir}/lib/",
@@ -204,7 +189,7 @@ def prepare_packages_posix(self, vars):
# compatibility
if sys.version_info[0] == 3:
examples_path = "{st_build_dir}/{st_package_name}/examples".format(**vars)
- pyside_rcc_path = "{install_dir}/bin/rcc".format(**vars)
+ pyside_rcc_path = "/usr/bin/rcc"
pyside_rcc_options = ['-g', 'python']
regenerate_qt_resources(examples_path, pyside_rcc_path, pyside_rcc_options)
diff --git a/sources/pyside2-tools/CMakeLists.txt b/sources/pyside2-tools/CMakeLists.txt
index ce65750..ed7fb09 100644
--- a/sources/pyside2-tools/CMakeLists.txt
+++ b/sources/pyside2-tools/CMakeLists.txt
@@ -39,54 +39,6 @@ if (NOT PYTHON_SITE_PACKAGES)
endif()
endif()
-# Handling .exe extension for Window and the uic/rcc executables
-if (WIN32)
- set(EXE_EXT ".exe")
-else()
- set(EXE_EXT "")
-endif()
-
-set(TOOLS_PATH "${_qt5Core_install_prefix}/bin")
-set(UIC_PATH "${TOOLS_PATH}/uic${EXE_EXT}")
-set(RCC_PATH "${TOOLS_PATH}/rcc${EXE_EXT}")
-if (APPLE)
- set(DESIGNER_PATH "${TOOLS_PATH}/Designer.app")
-else()
- set(DESIGNER_PATH "${TOOLS_PATH}/designer${EXE_EXT}")
-endif()
-
-install(FILES "${UIC_PATH}"
- DESTINATION bin
- PERMISSIONS
- OWNER_EXECUTE OWNER_WRITE OWNER_READ
- GROUP_EXECUTE GROUP_READ
- WORLD_EXECUTE WORLD_READ)
-
-install(FILES "${RCC_PATH}"
- DESTINATION bin
- PERMISSIONS
- OWNER_EXECUTE OWNER_WRITE OWNER_READ
- GROUP_EXECUTE GROUP_READ
- WORLD_EXECUTE WORLD_READ)
-
-if (EXISTS ${DESIGNER_PATH})
- if (APPLE)
- install(DIRECTORY "${DESIGNER_PATH}"
- DESTINATION bin
- FILE_PERMISSIONS
- OWNER_EXECUTE OWNER_WRITE OWNER_READ
- GROUP_EXECUTE GROUP_READ
- WORLD_EXECUTE WORLD_READ)
- else()
- install(FILES "${DESIGNER_PATH}"
- DESTINATION bin
- PERMISSIONS
- OWNER_EXECUTE OWNER_WRITE OWNER_READ
- GROUP_EXECUTE GROUP_READ
- WORLD_EXECUTE WORLD_READ)
- endif()
-endif()
-
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
--
2.24.1

View File

@ -1,21 +0,0 @@
From 08afc74f3c040569bf7e41483358bec968de7d06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Fri, 21 Dec 2018 16:20:45 +0100
Subject: [PATCH] Remove unnecessary she-bang from icon-cache.py
---
sources/pyside2-tools/pyside2uic/icon_cache.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/sources/pyside2-tools/pyside2uic/icon_cache.py b/sources/pyside2-tools/pyside2uic/icon_cache.py
index 523d207..9d0dfe2 100644
--- a/sources/pyside2-tools/pyside2uic/icon_cache.py
+++ b/sources/pyside2-tools/pyside2uic/icon_cache.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# This file is part of the PySide project.
#
# Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
--
2.19.2

View File

@ -0,0 +1,52 @@
From 81ad0e88644af358c30ea036c26b6f2afc457b98 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Mon, 30 Dec 2019 12:16:25 +0100
Subject: [PATCH 2/2] Fix the openSUSE executable names.
---
build_scripts/platforms/unix.py | 2 +-
sources/pyside2-tools/pyside_tool.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py
index f5b2760..a0109c6 100644
--- a/build_scripts/platforms/unix.py
+++ b/build_scripts/platforms/unix.py
@@ -189,7 +189,7 @@ def prepare_packages_posix(self, vars):
# compatibility
if sys.version_info[0] == 3:
examples_path = "{st_build_dir}/{st_package_name}/examples".format(**vars)
- pyside_rcc_path = "/usr/bin/rcc"
+ pyside_rcc_path = "/usr/bin/rcc-qt5"
pyside_rcc_options = ['-g', 'python']
regenerate_qt_resources(examples_path, pyside_rcc_path, pyside_rcc_options)
diff --git a/sources/pyside2-tools/pyside_tool.py b/sources/pyside2-tools/pyside_tool.py
index da2d741..be32e2f 100755
--- a/sources/pyside2-tools/pyside_tool.py
+++ b/sources/pyside2-tools/pyside_tool.py
@@ -71,18 +71,18 @@ def qt_tool_wrapper(qt_tool, args):
def uic():
- qt_tool_wrapper("uic", ['-g', 'python'] + sys.argv[1:])
+ qt_tool_wrapper("uic-qt5", ['-g', 'python'] + sys.argv[1:])
def rcc():
- qt_tool_wrapper("rcc", ['-g', 'python'] + sys.argv[1:])
+ qt_tool_wrapper("rcc-qt5", ['-g', 'python'] + sys.argv[1:])
def designer():
if sys.platform == "darwin":
qt_tool_wrapper("Designer.app/Contents/MacOS/Designer", sys.argv[1:])
else:
- qt_tool_wrapper("designer", sys.argv[1:])
+ qt_tool_wrapper("designer-qt5", sys.argv[1:])
if __name__ == "__main__":
--
2.24.1

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e255d64df08880d0281ebe86009d5ea45f24332b308954d967c33995f75e543
size 3123964

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c2ad1901a99165ed7bac8f522ee351ae3ebadd580024248f5a1db52e4a94b30
size 3203908

View File

@ -1,3 +1,51 @@
-------------------------------------------------------------------
Mon Dec 30 09:12:02 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 5.14.0:
*
* [PYSIDE-990] It is no longer possible to nest types in typesystem files by
by qualifying the namespace components with "::". The elements need to be
properly nested.
* [PYSIDE-487] Add bindings for Qt 5.14
* [PYSIDE-785] Release ownership in QAbstractVideoFilterWrapper::createFilterRunnable
* [PYSIDE-795] Create a framework for deprecated functions
* [PYSIDE-795] Make the function registry more usable in Python modules
* [PYSIDE-795] Improve the NumPy Support by iterables
* [PYSIDE-820] Fix booleans and empty list cases in QSettings
* [PYSIDE-849] Add inject-code for QVideoFrame::bits()
* [PYSIDE-939] Add support for Python 3.8
* [PYSIDE-939] Fix refcount issues with QSettings glue code
* [PYSIDE-939] Finalize the Python 3.8 refcount fix
* [PYSIDE-951] Support Pointer Primitive Types by Arrays or Result Tuples
* [PYSIDE-1007] Remove extra ref on QDataStream::setDevice
* [PYSIDE-1033] CMake modularization: macros creation
* [PYSIDE-1041] Enable multimedia classes after API fixup
* [PYSIDE-1047] QtWinExtras: Add QtWin namespace
* [PYSIDE-1051] Fix heaptype conflict with QtCore.QObject.__new__in Python 2.7
* [PYSIDE-1052] Add QtCore.Slot.__signature__ and much more manually
* [PYSIDE-1059] Documentation: update QInputDialog snippets
* [PYSIDE-1066] Fix Xcode sdk value embedded into PySide2 binaries
* [PYSIDE-1067] Update docs style
* [PYSIDE-1067] New documentation structure
* [PYSIDE-1068] Add designer to the pyside tools
* [PYSIDE-1073] Fix a typing bug in Python 2.7 and update
* [PYSIDE-1077] Fix wrong Python init return codes
* [PYSIDE-1079] signature: Support typing.Optional[T] and refine a bit
* [PYSIDE-1089] Fix formatting of the deployment documentation
* [PYSIDE-1093] Fix bad shutdown effect on QApplication.instance()
* [PYSIDE-1098] Replace pyside2-uic/pyside2-rcc by uic/rcc which now have an
option to generate Python
* [PYSIDE-1101] Remove QGraphicsItem::scroll from QtChart
* [PYSIDE-1140] Add python_requires to the python setup
* [QTBUG-66304] Blacklist failing QtPositioning test
* [PYSIDE-454] Fix crash when smartptr template class cannot be found
* [PYSIDE-1037] Allow for "auto" as target of type for CONVERTTOCPP in injected code
* [PYSIDE-1095] Fix handling of modified default expressions
- Drop 0001-Remove-unnecessary-she-bang-from-icon-cache.py.patch. pyside2uic is gone
- Add patches:
* 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch to prevent file conflicts
* 0002-Fix-the-openSUSE-executable-names.patch to use the -qt5 suffix
-------------------------------------------------------------------
Thu Dec 19 08:54:08 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -22,7 +22,7 @@
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Name: python3-pyside2
Version: 5.13.2
Version: 5.14.0
Release: 0
Summary: Python bindings for Qt
# Legal:
@ -34,8 +34,10 @@ Group: Development/Languages/Python
URL: http://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
Patch0: lib64.patch
# PATCH-FIX-UPSTREAM - PYSIDE-881
Patch1: 0001-Remove-unnecessary-she-bang-from-icon-cache.py.patch
# PATCH-FIX-UPSTREAM
Patch1: 0001-Don-t-try-to-install-or-use-uic-rcc-designer-copies.patch
# PATCH-FIX-OPENSUSE
Patch2: 0002-Fix-the-openSUSE-executable-names.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
@ -118,10 +120,11 @@ Examples and Tutorials for the PySide2 bindings for Qt.
%prep
%setup -q -n pyside-setup-opensource-src-%{version}
%patch1 -p1
%patch2 -p1
%if "%{_lib}" == "lib64"
%patch0 -p1
%endif
%patch1 -p1
%build
export LLVM_INSTALL_DIR=%{_prefix}
@ -164,10 +167,7 @@ sed -i 's,"[^"]*/share/PySide2/typesystems","%{_datadir}/PySide2/typesystems",'
sed -i 's,"[^"]*/share/PySide2/glue","%{_datadir}/PySide2/glue",' %{buildroot}/%{_libdir}/cmake/PySide2*/*.cmake
sed -i 's,^include("[^"]*-release/%{_lib}/,include("%{_libdir}/,' %{buildroot}/%{_libdir}/cmake/PySide2*/*.cmake
sed -i 's,env python,python,' %{buildroot}/%{_bindir}/pyside2-uic
rm %{buildroot}%{_bindir}/*_tool.py
rm -Rf %{buildroot}%{python_sitearch}/pyside2uic/port_v2/
rm -Rf %{buildroot}%{_datadir}/PySide2/typesystems/typesystem_*_win.xml
%fdupes %{buildroot}%{_datadir}/PySide2/examples/