Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ index 6136632..973d14b 100644
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
ARCHIVE DESTINATION "${LIB_INSTALL_DIR}"
--
2.51.0
2.51.0
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ index 27ee333..4be2ad1 100644
# If the resulting variable
# contains a "debug;X;optimized;Y" list like described in shiboken_check_if_limited_api,
--
2.46.1
2.46.1
20 changes: 10 additions & 10 deletions SPECS/python-pyside6/0003-Fix-installation.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ From c069622d35a00485742b125caf9439b31b1b972f Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Tue, 7 Oct 2025 15:54:32 +0200
Subject: [PATCH] Fix installation

Upstream decided to install files in non-standard locations.
---
sources/pyside6/CMakeLists.txt | 2 +-
sources/shiboken6/generator/CMakeLists.txt | 4 ++--
sources/shiboken6/libshiboken/CMakeLists.txt | 2 +-
sources/pyside6/CMakeLists.txt | 2 +-
sources/shiboken6_generator/generator/CMakeLists.txt | 4 ++--
sources/shiboken6/libshiboken/CMakeLists.txt | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sources/pyside6/CMakeLists.txt b/sources/pyside6/CMakeLists.txt
index 6b73d70..74aaba5 100644
--- a/sources/pyside6/CMakeLists.txt
Expand All @@ -23,10 +23,10 @@ index 6b73d70..74aaba5 100644
FILE PySide6Targets.cmake)
endif()

diff --git a/sources/shiboken6/generator/CMakeLists.txt b/sources/shiboken6/generator/CMakeLists.txt
diff --git a/sources/shiboken6_generator/generator/CMakeLists.txt b/sources/shiboken6_generator/generator/CMakeLists.txt
index 997468f..d0948d9 100644
--- a/sources/shiboken6/generator/CMakeLists.txt
+++ b/sources/shiboken6/generator/CMakeLists.txt
--- a/sources/shiboken6_generator/generator/CMakeLists.txt
+++ b/sources/shiboken6_generator/generator/CMakeLists.txt
@@ -73,11 +73,11 @@ install(EXPORT "${package_name}Targets"
if(NOT is_pyside6_superproject_build)
install(TARGETS shiboken6
Expand All @@ -45,7 +45,7 @@ diff --git a/sources/shiboken6/libshiboken/CMakeLists.txt b/sources/shiboken6/li
index 973d14b..c4235f8 100644
--- a/sources/shiboken6/libshiboken/CMakeLists.txt
+++ b/sources/shiboken6/libshiboken/CMakeLists.txt
@@ -217,6 +217,6 @@ if(NOT is_pyside6_superproject_build)
@@ -224,6 +224,6 @@ if(NOT is_pyside6_superproject_build)

install(EXPORT Shiboken6WheelTargets
NAMESPACE Shiboken6::
Expand All @@ -54,4 +54,4 @@ index 973d14b..c4235f8 100644
FILE Shiboken6Targets.cmake)
endif()
--
2.51.0
2.51.0
15 changes: 6 additions & 9 deletions SPECS/python-pyside6/python-pyside6.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

%global pypi_name pyside6
%global camel_name PySide6
%global qt6ver 6.10.1
%global qt6ver 6.11.1

Name: python-%{pypi_name}
Version: 6.10.1
Version: 6.11.1
Release: %autorelease
Summary: Python bindings for the Qt 6 cross-platform application and UI framework
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
URL: https://wiki.qt.io/Qt_for_Python
VCS: git:https://github.com/qtproject/pyside-pyside-setup
#!RemoteAsset: sha256:fd54f40853d61dfd845dbb40d4f89fbd63df5ed341b3d9a2c77bb5c947a0a838
#!RemoteAsset: sha256:6ffd9835bb0dd2c56f061d62f1616bb1707cfc0202b80e3165d6be087f3965e2
Source0: https://download.qt.io/official_releases/QtForPython/%{pypi_name}/%{camel_name}-%{qt6ver}-src/pyside-setup-everywhere-src-%{version}.tar.xz
BuildSystem: cmake

Expand All @@ -28,7 +28,7 @@ Patch1: 0002-Always-link-to-python-libraries.patch
Patch2: 0003-Fix-installation.patch

BuildOption(conf): -DCMAKE_BUILD_TYPE=Release
BuildOption(conf): -DBUILD_TESTING=OFF
BuildOption(conf): -DBUILD_TESTS=OFF
BuildOption(conf): -DBUILD_DOCS=OFF
BuildOption(conf): -DNO_QT_TOOLS=yes
BuildOption(conf): -DCMAKE_SKIP_INSTALL_RPATH=ON
Expand Down Expand Up @@ -101,6 +101,7 @@ BuildRequires: cmake(Qt63DAnimation)
BuildRequires: cmake(Qt63DExtras)
BuildRequires: cmake(Qt6RemoteObjects)
BuildRequires: cmake(Qt6UiPlugin)
BuildRequires: clang-static
BuildRequires: qt6-designer

Provides: python3-%{pypi_name} = %{version}-%{release}
Expand All @@ -117,6 +118,7 @@ Requires: pyside6-tools
Requires: shiboken6
Provides: python3-%{pypi_name}-devel = %{version}-%{release}
Provides: python3-%{pypi_name}-devel%{?_isa} = %{version}-%{release}

%description -n python-%{pypi_name}-devel
Development files for PySide6.

Expand Down Expand Up @@ -156,11 +158,6 @@ Shiboken development files.
sed -i 's#${base}/../shiboken6/##' sources/pyside6/CMakeLists.txt

%build -p
# fix can't find stddef.h
CLANG_INC=$(ls -d /usr/lib/clang/*/include | head -n 1)
echo "Injecting CPATH=$CLANG_INC into shiboken_wrapper.sh"
find . -name "shiboken_wrapper.sh" -exec sed -i "2i export CPATH=\"$CLANG_INC:\$CPATH\"" {} +

export PYTHONPATH="$PWD/%{_vpath_builddir}/sources:$PYTHONPATH"

%install -a
Expand Down
Loading