forked from pool/python3-pyside2
unlink
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=2
This commit is contained in:
commit
5fed45be19
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
15
_service
Normal file
15
_service
Normal file
@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="url">https://code.qt.io/pyside/pyside-setup.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">5.11</param>
|
||||
<param name="versionprefix">2.0~pre</param>
|
||||
</service>
|
||||
<service mode="buildtime" name="disabled" />
|
||||
|
||||
<service mode="buildtime" name="tar" />
|
||||
<service mode="buildtime" name="recompress">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
</services>
|
10
fix-cmake.patch
Normal file
10
fix-cmake.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff --git a/sources/pyside2/libpyside/PySide2Config.cmake.in b/sources/pyside2/libpyside/PySide2Config.cmake.in
|
||||
index 352a8999..7969ea50 100644
|
||||
--- a/sources/pyside2/libpyside/PySide2Config.cmake.in
|
||||
+++ b/sources/pyside2/libpyside/PySide2Config.cmake.in
|
||||
@@ -2,4 +2,4 @@ if (NOT PYTHON_CONFIG_SUFFIX)
|
||||
message(STATUS "PySide2Config: Using default python: @SHIBOKEN_PYTHON_CONFIG_SUFFIX@")
|
||||
SET(PYTHON_CONFIG_SUFFIX @SHIBOKEN_PYTHON_CONFIG_SUFFIX@)
|
||||
endif()
|
||||
-include(@LIB_INSTALL_DIR@/cmake/PySide2-@BINDING_API_VERSION@/PySide2Config${PYTHON_CONFIG_SUFFIX}.cmake)
|
||||
+include("@LIB_INSTALL_DIR@/cmake/PySide2-@BINDING_API_VERSION@/PySide2Config${PYTHON_CONFIG_SUFFIX}.cmake")
|
13
lib64.patch
Normal file
13
lib64.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/sources/shiboken2/CMakeLists.txt b/sources/shiboken2/CMakeLists.txt
|
||||
index 006924ad..b525cc4d 100644
|
||||
--- a/sources/shiboken2/CMakeLists.txt
|
||||
+++ b/sources/shiboken2/CMakeLists.txt
|
||||
@@ -103,7 +103,7 @@ endif()
|
||||
message(STATUS "CLANG: ${CLANG_DIR}, ${CLANG_LIBRARY} detected by ${CLANG_DIR_SOURCE}")
|
||||
|
||||
# Find highest version clang builtin includes folder to pass along to shiboken.
|
||||
-set(CLANG_BUILTIN_INCLUDES_DIR_PREFIX ${CLANG_DIR}/lib/clang)
|
||||
+set(CLANG_BUILTIN_INCLUDES_DIR_PREFIX ${CLANG_DIR}/lib64/clang)
|
||||
file(GLOB CLANG_BUILTIN_INCLUDES_DIR_VERSIONS "${CLANG_BUILTIN_INCLUDES_DIR_PREFIX}/*")
|
||||
|
||||
# Sort in alphabetical order the list of version folders.
|
3
pyside-setup-2.0~pre.1526654735.3f8c8702.obscpio
Normal file
3
pyside-setup-2.0~pre.1526654735.3f8c8702.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:def47f4d3d9296c089b956af69b3e94d8a60ffb8a6bc2d2a80339dca546bc40a
|
||||
size 22927374
|
5
pyside-setup.obsinfo
Normal file
5
pyside-setup.obsinfo
Normal file
@ -0,0 +1,5 @@
|
||||
name: pyside-setup
|
||||
version: 2.0~pre.1526654735.3f8c8702
|
||||
mtime: 1526654735
|
||||
commit: 3f8c8702ea295f39357e7c66f46e5138f56bcc9f
|
||||
|
40
python3-pyside2.changes
Normal file
40
python3-pyside2.changes
Normal file
@ -0,0 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 27 09:32:03 UTC 2018 - adrian@suse.de
|
||||
|
||||
- build against Qt 5.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 13 07:07:28 UTC 2018 - adrian@suse.de
|
||||
|
||||
- disable python2 build
|
||||
No one needs it atm and it is conflicting at installation time
|
||||
with python3 variant
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 5 05:52:58 UTC 2018 - adrian@suse.de
|
||||
|
||||
- update to current snapshot from dev branch for Qt 5.10
|
||||
- make test optional
|
||||
- fix-cmake.patch lib64.patch for fixing build and installation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 3 06:26:03 UTC 2018 - adrian@suse.de
|
||||
|
||||
- build fix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 14 20:15:52 UTC 2017 - kkaempf@suse.com
|
||||
|
||||
- add Qt5-svg support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 28 06:09:43 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Trim filler wording from description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 12 06:37:36 UTC 2017 - adrian@suse.de
|
||||
|
||||
- initial package of PySide2 for Qt5.9
|
||||
- includes also shiboken
|
||||
|
182
python3-pyside2.spec
Normal file
182
python3-pyside2.spec
Normal file
@ -0,0 +1,182 @@
|
||||
#
|
||||
# spec file for package python3-pyside2
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
%define mypython python3
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
Name: python3-pyside2
|
||||
|
||||
Version: 2.0~pre.1509971197.06e4edac
|
||||
Release: 0
|
||||
Summary: PySide - python bindings for Qt
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: http://qt-project.org/wiki/PySide
|
||||
Source0: pyside-setup-%{version}.tar.xz
|
||||
Patch1: fix-cmake.patch
|
||||
Patch2: lib64.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: libqt5-qtdeclarative-private-headers-devel
|
||||
|
||||
##### essential modules
|
||||
BuildRequires: pkgconfig(Qt5Concurrent)
|
||||
BuildRequires: pkgconfig(Qt5Concurrent)
|
||||
BuildRequires: pkgconfig(Qt5Core) < 5.12
|
||||
BuildRequires: pkgconfig(Qt5Core) >= 5.11
|
||||
BuildRequires: pkgconfig(Qt5Network)
|
||||
BuildRequires: pkgconfig(Qt5PrintSupport)
|
||||
BuildRequires: pkgconfig(Qt5Sql)
|
||||
BuildRequires: pkgconfig(Qt5Test)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(Qt5X11Extras)
|
||||
BuildRequires: pkgconfig(Qt5Xml)
|
||||
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
||||
|
||||
##### optional modules
|
||||
BuildRequires: libQt53DQuickScene2D5
|
||||
BuildRequires: pkgconfig(Qt53DAnimation)
|
||||
BuildRequires: pkgconfig(Qt53DCore)
|
||||
BuildRequires: pkgconfig(Qt53DExtras)
|
||||
BuildRequires: pkgconfig(Qt53DInput)
|
||||
BuildRequires: pkgconfig(Qt53DLogic)
|
||||
BuildRequires: pkgconfig(Qt53DRender)
|
||||
BuildRequires: pkgconfig(Qt5Charts)
|
||||
BuildRequires: pkgconfig(Qt5DataVisualization)
|
||||
BuildRequires: pkgconfig(Qt5Designer)
|
||||
BuildRequires: pkgconfig(Qt5Multimedia)
|
||||
BuildRequires: pkgconfig(Qt5MultimediaWidgets)
|
||||
BuildRequires: pkgconfig(Qt5OpenGL)
|
||||
BuildRequires: pkgconfig(Qt5QuickWidgets)
|
||||
BuildRequires: pkgconfig(Qt5Script)
|
||||
BuildRequires: pkgconfig(Qt5ScriptTools)
|
||||
BuildRequires: pkgconfig(Qt5Svg)
|
||||
BuildRequires: pkgconfig(Qt5TextToSpeech)
|
||||
BuildRequires: pkgconfig(Qt5TextToSpeech)
|
||||
BuildRequires: pkgconfig(Qt5WebChannel)
|
||||
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
|
||||
BuildRequires: pkgconfig(Qt5WebKit)
|
||||
BuildRequires: pkgconfig(Qt5WebSockets)
|
||||
BuildRequires: pkgconfig(Qt5WebSockets)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(Qt5Xml)
|
||||
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
||||
#BuildRequires: pkgconfig(Qt5Vector3D)
|
||||
#breaks with llvm 5?
|
||||
#BuildRequires: pkgconfig(Qt5WebKitWidgets)
|
||||
|
||||
BuildRequires: libxslt-devel
|
||||
BuildRequires: llvm-clang-devel >= 3.9
|
||||
BuildRequires: llvm-devel >= 3.9
|
||||
BuildRequires: python-devel >= 2.6
|
||||
BuildRequires: python-setuptools
|
||||
|
||||
%description
|
||||
The PySide2 project provides Python bindings for the Qt
|
||||
application and UI framework.
|
||||
|
||||
%package devel
|
||||
Summary: Header Files for PySide2
|
||||
Group: Development/Languages/Python
|
||||
Requires: %name = %{version}
|
||||
|
||||
%description devel
|
||||
Files needed for development with the PySide2 bindings
|
||||
for Qt.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyside-setup-%{version}
|
||||
%patch1 -p1
|
||||
%if "%{_libdir}" == "/usr/lib64"
|
||||
%patch2 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
export CFLAGS=-I/usr/include/linux
|
||||
%mypython setup.py build --reuse-build --ignore-git \
|
||||
%if %{with tests}
|
||||
--build-tests
|
||||
%endif
|
||||
|
||||
%install
|
||||
%mypython setup.py install --reuse-build --ignore-git --prefix=%{_prefix} --root=%{buildroot} \
|
||||
%if %{with tests}
|
||||
--build-tests
|
||||
%endif
|
||||
|
||||
# and hack re-installation, since setup is doing it wrong
|
||||
rm -rf %{buildroot}/*
|
||||
mkdir -p %{buildroot}/%{_libdir}
|
||||
cp -a ./pyside?_install/py*-release/* %{buildroot}%{_prefix}/
|
||||
|
||||
sed -i 's,=.*/pyside._install/[^\/]*,=/usr,' %{buildroot}%{_prefix}/lib/pkgconfig/*.pc
|
||||
sed -i 's,^libdir=.*,libdir=%{_libdir},' %{buildroot}%{_prefix}/lib/pkgconfig/*.pc
|
||||
|
||||
sed -i 's,"[^"]*/include/shiboken2","/usr/include/shiboken2",' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
|
||||
sed -i 's,"[^"]*/lib/libshiboken2.\(.*\)","%{_libdir}/libshiboken2.\1",' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
|
||||
sed -i 's,"[^"]*/bin/shiboken2","%{_prefix}/bin/shiboken2",' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
|
||||
sed -i 's,^include("[^"]*-release/lib/,include("%{_libdir}/,' %{buildroot}%{_prefix}/lib/cmake/Shiboken*/*.cmake
|
||||
|
||||
sed -i 's,"[^"]*/include/PySide2","/usr/include/PySide2",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
|
||||
sed -i 's,"[^"]*/lib/cmake/\(.*\)","%{_libdir}/cmake/\1",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
|
||||
sed -i 's,"[^"]*/lib/libpyside2\.\(.*\)","%{_libdir}/libpyside2.\1",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
|
||||
sed -i 's,"[^"]*/\(python.*/site-packages\)","%{_libdir}/\1",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
|
||||
sed -i 's,"[^"]*/share/PySide2/typesystems","%{_prefix}/share/PySide2/typesystems",' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
|
||||
sed -i 's,^include("[^"]*-release/lib/,include("%{_libdir}/,' %{buildroot}%{_prefix}/lib/cmake/PySide2*/*.cmake
|
||||
|
||||
%if "%{_libdir}" == "/usr/lib64"
|
||||
mv %{buildroot}%{_prefix}/lib/lib* %{buildroot}/%{_libdir}/
|
||||
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}/%{_libdir}/
|
||||
mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}/%{_libdir}/
|
||||
rmdir %{buildroot}%{_prefix}/lib
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%mypython testrunner.py test
|
||||
%endif
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE.*
|
||||
%{_prefix}/bin/*
|
||||
%{_libdir}/*.so.*
|
||||
%if "@BUILD_FLAVOR@" == "python3-pyside2"
|
||||
%{python3_sitearch}/*
|
||||
%else
|
||||
%{py_sitedir}/*
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man*/*
|
||||
%{_prefix}/include/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/cmake
|
||||
%{_libdir}/pkgconfig
|
||||
%{_datadir}/PySide2
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user