diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..0a80fdce31f59c062e2abba28776e9521eddff30 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..9ccedbbc6724aa455fd385c95a1d7560a011e9d6 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/python-qt5 diff --git a/PyQt5-5.15.11.tar.gz b/PyQt5-5.15.11.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..df1feb654eaa1290fcf892b963a270a101887a16 --- /dev/null +++ b/PyQt5-5.15.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fda45743ebb4a27b4b1a51c6d8ef455c4c1b5d610c90d2934c7802b5c1557c52 +size 3216775 diff --git a/PyQt5-5.15.9.tar.gz b/PyQt5-5.15.9.tar.gz deleted file mode 100644 index dd04cc28ebc921789b9e346b9ae2945e1ccc0069..0000000000000000000000000000000000000000 Binary files a/PyQt5-5.15.9.tar.gz and /dev/null differ diff --git a/pylupdate5.sh b/pylupdate5.sh deleted file mode 100644 index 9a67bee30878fa7decd0a98c5ed023250afcbc15..0000000000000000000000000000000000000000 --- a/pylupdate5.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -@PYTHON3@ -Ic "import PyQt5.pylupdate_main" &> /dev/null -if [ $? -eq 0 ]; then - exec @PYTHON3@ -Im PyQt5.pylupdate_main ${1+"$@"} -else - exec @PYTHON2@ -c "import sys; del sys.path[0]; import PyQt5.pylupdate_main; PyQt5.pylupdate_main.main()" ${1+"$@"} - -fi diff --git a/pyrcc5.sh b/pyrcc5.sh deleted file mode 100644 index c7d55869ae4716bdc354f800849571bc1b46eb58..0000000000000000000000000000000000000000 --- a/pyrcc5.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -@PYTHON3@ -Ic "import PyQt5.pyrcc_main" &> /dev/null -if [ $? -eq 0 ]; then - exec @PYTHON3@ -Im PyQt5.pyrcc_main ${1+"$@"} -else - exec @PYTHON2@ -c "import sys; del sys.path[0]; import PyQt5.pyrcc_main; PyQt5.pyrcc_main.main()" ${1+"$@"} -fi diff --git a/python-qt5.spec b/python-qt5.spec index 5e0c5294a37202c794be4121ae169f49267d1a28..93584d8ab4bc43061ad4d7b744cc395e346936bc 100644 --- a/python-qt5.spec +++ b/python-qt5.spec @@ -1,237 +1,674 @@ -%global python3_dbus_dir %(%{__python3} -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])" 2>/dev/null || echo "%{python3_sitearch}/dbus/mainloop") -%ifarch %{?qt5_qtwebengine_arches}%{?!qt5_qtwebengine_arches:%{ix86} x86_64 %{arm} aarch64 mips mipsel mips64el} -%global webengine 0 -%endif -%global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) -%global py3_sipdir %{_datadir}/sip/PyQt5 +%global __provides_exclude_from ^(%{_qt5_plugindir}/.*\\.so)$ %undefine _strict_symbol_defs_build -%global py3_site_qt5 %{python3_sitearch}/PyQt5 Name: python-qt5 -Version: 5.15.9 -Release: 2 +Version: 5.15.11 +Release: 1 Summary: PyQt5 is a set of Python bindings for Qt5 -License: GPLv3 -Url: http://www.riverbankcomputing.com/software/pyqt/ +License: GPL-3.0-only +Url: https://www.riverbankcomputing.com/software/pyqt/ Source0: %{pypi_source PyQt5} Source1: macros.pyqt5 -Source2: pylupdate5.sh -Source3: pyrcc5.sh -Source4: pyuic5.sh - - -BuildRequires: chrpath findutils dbus-devel dbus-python-devel qt5-qttools-devel -BuildRequires: qt5-qtbase-devel >= 5.5 qt5-qtconnectivity-devel -BuildRequires: qt5-qtlocation-devel qt5-qtmultimedia-devel qt5-qtdeclarative-devel -BuildRequires: qt5-qtsensors-devel qt5-qtserialport-devel qt5-qtx11extras-devel -BuildRequires: qt5-qtxmlpatterns-devel qt5-qtwebchannel-devel qt5-qtwebsockets-devel -BuildRequires: pulseaudio-libs-devel dbus-python qt5-qtsvg-devel qt5-qtscript-devel -BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion} -BuildRequires: python%{python3_pkgversion}-enum34 python%{python3_pkgversion}-pyqt5-sip >= 4.19.12 -BuildRequires: python%{python3_pkgversion}-dbus python%{python3_pkgversion}-sip-devel >= 4.19.12 -Obsoletes: python-qt5 < 5.5.1-10 -%description -PyQt is a set of Python v2 and v3 bindings for The Qt Company's Qt application framework and runs on -all platforms supported by Qt including Windows, OS X, Linux, iOS and Android. PyQt5 supports Qt v5. +BuildRequires: chrpath findutils dbus-devel dbus-python-devel +BuildRequires: pkgconfig(Qt5Bluetooth) +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Designer) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Help) +BuildRequires: pkgconfig(Qt5Location) +BuildRequires: pkgconfig(Qt5Multimedia) +BuildRequires: pkgconfig(Qt5MultimediaWidgets) +BuildRequires: pkgconfig(Qt5Network) +BuildRequires: pkgconfig(Qt5Nfc) +BuildRequires: pkgconfig(Qt5OpenGL) +BuildRequires: pkgconfig(Qt5Positioning) +BuildRequires: pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5QuickWidgets) +BuildRequires: pkgconfig(Qt5RemoteObjects) +BuildRequires: pkgconfig(Qt5Sensors) +BuildRequires: pkgconfig(Qt5SerialPort) +BuildRequires: pkgconfig(Qt5Sql) +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Test) +BuildRequires: pkgconfig(Qt5TextToSpeech) +BuildRequires: pkgconfig(Qt5WebChannel) +BuildRequires: pkgconfig(Qt5WebSockets) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5X11Extras) +BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: pkgconfig(Qt5XmlPatterns) +BuildRequires: /usr/bin/pylupdate5 +BuildRequires: /usr/bin/pyrcc5 +BuildRequires: pulseaudio-libs-devel dbus-python +BuildRequires: python3-devel +BuildRequires: python3-dbus +BuildRequires: python3dist(pyqt-builder) >= 1.14.1 +BuildRequires: python3dist(sip) >= 6.8.6 -%global __provides_exclude_from ^(%{_qt5_plugindir}/.*\\.so)$ +%description +PyQt5 is a comprehensive set of Python bindings for Qt v5. +#------------------------------------------------------------ %package rpm-macros Summary: RPM macros in python-qt5 Conflicts: python3-qt5 < 5.6 BuildArch: noarch + %description rpm-macros RPM macros in python-qt5. -%package -n python%{python3_pkgversion}-qt5 -Summary: Python v3 bindings for Qt5 -Requires: python%{python3_pkgversion}-qt5-base%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python%{python3_pkgversion}-qt5} -Provides: python%{python3_pkgversion}-PyQt5 = %{version}-%{release} -Provides: python%{python3_pkgversion}-PyQt5%{?_isa} = %{version}-%{release} -Obsoletes: python3-qt5 < 5.5.1-10 +%files rpm-macros +%{_rpmmacrodir}/macros.pyqt5 + +#------------------------------------------------------------ -%description -n python%{python3_pkgversion}-qt5 +%package -n python3-qt5 +Summary: Python v3 bindings for Qt5 +Buildarch: noarch +Provides: python3-PyQt5 = %{version}-%{release} +Provides: python3-PyQt5 = %{version}-%{release} +Requires: python3-qt5-base = %{version} +Requires: python3-qt5-bluetooth = %{version} +Requires: python3-qt5-help = %{version} +Requires: python3-qt5-location = %{version} +Requires: python3-qt5-nfc = %{version} +Requires: python3-qt5-positioning = %{version} +Requires: python3-qt5-qml = %{version} +Requires: python3-qt5-quick = %{version} +Requires: python3-qt5-quickwidgets = %{version} +Requires: python3-qt5-multimedia = %{version} +Requires: python3-qt5-multimediawidgets = %{version} +Requires: python3-qt5-remoteobjects = %{version} +Requires: python3-qt5-sensors = %{version} +Requires: python3-qt5-serialport = %{version} +Requires: python3-qt5-texttospeech = %{version} +Requires: python3-qt5-svg = %{version} +Requires: python3-qt5-webchannel = %{version} +Requires: python3-qt5-websockets = %{version} +Requires: python3-qt5-xmlpatterns = %{version} +Requires: python3-qt5-x11extras = %{version} +Requires: python3-qt5-designer = %{version} +Obsoletes: python-qt5 < 5.5.1-10 + +%description -n python3-qt5 Python v3 bindings for Qt5. -%package -n python%{python3_pkgversion}-qt5-base +%files -n python3-qt5 +%license LICENSE +%{python3_sitearch}/PyQt5-%{version}.dist-info + +#------------------------------------------------------------ + +%package -n python3-qt5-base Summary: Python v3 bindings for Qt5 base -%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} -%{?_sip_api:Requires: python%{python3_pkgversion}-pyqt5-sip-api(%{_sip_api_major}) >= %{_sip_api}} -Provides: python%{python3_pkgversion}-PyQt5-base = %{version}-%{release} -Provides: python%{python3_pkgversion}-PyQt5-base%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python%{python3_pkgversion}-qt5-base} -Requires: %{name}-rpm-macros = %{version}-%{release} python%{python3_pkgversion}-dbus - -%description -n python%{python3_pkgversion}-qt5-base +Buildarch: noarch +Provides: python3-PyQt5-base = %{version}-%{release} +Requires: %{name}-rpm-macros = %{version}-%{release} +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-dbus = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-network = %{version} +Requires: python3-qt5-opengl = %{version} +Requires: python3-qt5-printsupport = %{version} +Requires: python3-qt5-sql = %{version} +Requires: python3-qt5-test = %{version} +Requires: python3-qt5-widgets = %{version} +Requires: python3-qt5-xml = %{version} + +%description -n python3-qt5-base Python v3 bindings for Qt5 base. -%package -n python%{python3_pkgversion}-qt5-devel +%files -n python3-qt5-base +%license LICENSE + +#------------------------------------------------------------ + +%package -n python3-qt5-core +Summary: Python 3 bindings for PyQt 5 core +Requires: python3-dbus +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-core +Python 3 bindings for PyQt 5 core. + +%files -n python3-qt5-core +%license LICENSE +%dir %{python3_sitearch}/PyQt5 +%dir %{python3_sitearch}/PyQt5/bindings +%{python3_sitearch}/PyQt5/uic/ +%dir %{python3_sitearch}/PyQt5/__pycache__/ +%{python3_sitearch}/PyQt5/__pycache__/__init__.* +%{python3_sitearch}/PyQt5/__init__.py* +%{python3_sitearch}/dbus/mainloop/pyqt5.abi3.so +%{python3_sitearch}/PyQt5/Qt.abi3.so +%{python3_sitearch}/PyQt5/QtCore.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtCore + +#------------------------------------------------------------ + +%package -n python3-qt5-dbus +Summary: Python 3 bindings for PyQt 5 dbus +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-dbus +Python 3 bindings for PyQt 5 dbus. + +%files -n python3-qt5-dbus +%{python3_sitearch}/PyQt5/QtDBus.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtDBus + +#------------------------------------------------------------ + +%package -n python3-qt5-bluetooth +Summary: Python 3 bindings for PyQt 5 bluetooth +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-bluetooth +Python 3 bindings for PyQt 5 bluetooth. + +%files -n python3-qt5-bluetooth +%{python3_sitearch}/PyQt5/QtBluetooth.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtBluetooth + +#------------------------------------------------------------ + +%package -n python3-qt5-gui +Summary: Python 3 bindings for PyQt 5 gui +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-gui +Python 3 bindings for PyQt 5 gui. + +%files -n python3-qt5-gui +%{python3_sitearch}/PyQt5/QtGui.abi3.so +%{python3_sitearch}/PyQt5/_QOpenGLFunctions_*.so +%{python3_sitearch}/PyQt5/bindings/QtGui + +#------------------------------------------------------------ + +%package -n python3-qt5-network +Summary: Python 3 bindings for PyQt 5 network +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-network +Python 3 bindings for PyQt 5 network. + +%files -n python3-qt5-network +%{python3_sitearch}/PyQt5/QtNetwork.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtNetwork + +#------------------------------------------------------------ + +%package -n python3-qt5-help +Summary: Python 3 bindings for PyQt 5 help +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-help +Python 3 bindings for PyQt 5 help. + +%files -n python3-qt5-help +%{python3_sitearch}/PyQt5/QtHelp.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtHelp + +#------------------------------------------------------------ + +%package -n python3-qt5-location +Summary: Python 3 bindings for PyQt 5 location +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-positioning = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-location +Python 3 bindings for PyQt 5 location. + +%files -n python3-qt5-location +%{python3_sitearch}/PyQt5/QtLocation.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtLocation + +#------------------------------------------------------------ + +%package -n python3-qt5-nfc +Summary: Python 3 bindings for PyQt 5 nfc +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-nfc +Python 3 bindings for PyQt 5 nfc. + +%files -n python3-qt5-nfc +%{python3_sitearch}/PyQt5/QtNfc.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtNfc + +#------------------------------------------------------------ + +%package -n python3-qt5-opengl +Summary: Python 3 bindings for PyQt 5 opengl +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-opengl +Python 3 bindings for PyQt 5 opengl. + +%files -n python3-qt5-opengl +%{python3_sitearch}/PyQt5/QtOpenGL.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtOpenGL + +#------------------------------------------------------------ + +%package -n python3-qt5-positioning +Summary: Python 3 bindings for PyQt 5 positioning +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-positioning +Python 3 bindings for PyQt 5 positioning. + +%files -n python3-qt5-positioning +%{python3_sitearch}/PyQt5/QtPositioning.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtPositioning + +#------------------------------------------------------------ + +%package -n python3-qt5-printsupport +Summary: Python 3 bindings for PyQt 5 printsupport +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-printsupport +Python 3 bindings for PyQt 5 printsupport. + +%files -n python3-qt5-printsupport +%{python3_sitearch}/PyQt5/QtPrintSupport.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtPrintSupport + +#------------------------------------------------------------ + +%package -n python3-qt5-qml +Summary: Python 3 bindings for PyQt 5 qml +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-network = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-qml +Python 3 bindings for PyQt 5 qml. + +%files -n python3-qt5-qml +%{python3_sitearch}/PyQt5/QtQml.abi3.so +%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so +%{python3_sitearch}/PyQt5/bindings/QtQml + +#------------------------------------------------------------ + +%package -n python3-qt5-quick +Summary: Python 3 bindings for PyQt 5 quick +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-qml = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-quick +Python 3 bindings for PyQt 5 quick. + +%files -n python3-qt5-quick +%{python3_sitearch}/PyQt5/QtQuick.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtQuick + +#------------------------------------------------------------ + +%package -n python3-qt5-quickwidgets +Summary: Python 3 bindings for PyQt 5 quickwidgets +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-qml = %{version} +Requires: python3-qt5-quick = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-quickwidgets +Python 3 bindings for PyQt 5 quick. + +%files -n python3-qt5-quickwidgets +%{python3_sitearch}/PyQt5/QtQuickWidgets.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtQuickWidgets + +#------------------------------------------------------------ + +%package -n python3-qt5-multimedia +Summary: Python 3 bindings for PyQt 5 multimedia +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-network = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-multimedia +Python 3 bindings for PyQt 5 multimedia. + +%files -n python3-qt5-multimedia +%{python3_sitearch}/PyQt5/QtMultimedia.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtMultimedia + +#------------------------------------------------------------ + +%package -n python3-qt5-multimediawidgets +Summary: Python 3 bindings for PyQt 5 multimediawidgets +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-multimedia = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-multimediawidgets +Python 3 bindings for PyQt 5 multimediawidgets. + +%files -n python3-qt5-multimediawidgets +%{python3_sitearch}/PyQt5/QtMultimediaWidgets.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtMultimediaWidgets + +#------------------------------------------------------------ + +%package -n python3-qt5-remoteobjects +Summary: Python 3 bindings for PyQt 5 remoteobjects +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-remoteobjects +Python 3 bindings for PyQt 5 remoteobjects. + +%files -n python3-qt5-remoteobjects +%{python3_sitearch}/PyQt5/QtRemoteObjects.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtRemoteObjects + +#------------------------------------------------------------ + +%package -n python3-qt5-sensors +Summary: Python 3 bindings for PyQt 5 sensors +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-sensors +Python 3 bindings for PyQt 5 sensors. + +%files -n python3-qt5-sensors +%{python3_sitearch}/PyQt5/QtSensors.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtSensors + +#------------------------------------------------------------ + +%package -n python3-qt5-serialport +Summary: Python 3 bindings for PyQt 5 serialport +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-serialport +Python 3 bindings for PyQt 5 serialport. + +%files -n python3-qt5-serialport +%{python3_sitearch}/PyQt5/QtSerialPort.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtSerialPort + +#------------------------------------------------------------ + +%package -n python3-qt5-sql +Summary: Python 3 bindings for PyQt 5 sql +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-sql +Python 3 bindings for PyQt 5 sql. + +%files -n python3-qt5-sql +%{python3_sitearch}/PyQt5/QtSql.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtSql + +#------------------------------------------------------------ + +%package -n python3-qt5-svg +Summary: Python 3 bindings for PyQt 5 svg +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-svg +Python 3 bindings for PyQt 5 svg. + +%files -n python3-qt5-svg +%{python3_sitearch}/PyQt5/QtSvg.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtSvg + +#------------------------------------------------------------ + +%package -n python3-qt5-test +Summary: Python 3 bindings for PyQt 5 test +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-test +Python 3 bindings for PyQt 5 test. + +%files -n python3-qt5-test +%{python3_sitearch}/PyQt5/QtTest.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtTest + +#------------------------------------------------------------ + +%package -n python3-qt5-texttospeech +Summary: Python 3 bindings for PyQt 5 texttospeech +Requires: python3-qt5-core = %{version} + +%description -n python3-qt5-texttospeech +Python 3 bindings for PyQt 5 texttospeech. + +%files -n python3-qt5-texttospeech +%{python3_sitearch}/PyQt5/QtTextToSpeech.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtTextToSpeech/ + +#------------------------------------------------------------ + +%package -n python3-qt5-webchannel +Summary: Python 3 bindings for PyQt 5 webchannel +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-webchannel +Python 3 bindings for PyQt 5 webchannel. + +%files -n python3-qt5-webchannel +%{python3_sitearch}/PyQt5/QtWebChannel.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtWebChannel + +#------------------------------------------------------------ + +%package -n python3-qt5-websockets +Summary: Python 3 bindings for PyQt 5 websockets +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-network = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-websockets +Python 3 bindings for PyQt 5 websockets. + +%files -n python3-qt5-websockets +%{python3_sitearch}/PyQt5/QtWebSockets.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtWebSockets + +#------------------------------------------------------------ + +%package -n python3-qt5-widgets +Summary: Python 3 bindings for PyQt 5 widgets +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-gui = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-widgets +Python 3 bindings for PyQt 5 widgets. + +%files -n python3-qt5-widgets +%{python3_sitearch}/PyQt5/QtWidgets.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtWidgets + +#------------------------------------------------------------ + +%package -n python3-qt5-xml +Summary: Python 3 bindings for PyQt 5 xml +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5-base < 5.15.11 + +%description -n python3-qt5-xml +Python 3 bindings for PyQt 5 xml. + +%files -n python3-qt5-xml +%{python3_sitearch}/PyQt5/QtXml.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtXml + +#------------------------------------------------------------ + +%package -n python3-qt5-xmlpatterns +Summary: Python 3 bindings for PyQt 5 xmlpatterns +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-network = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-xmlpatterns +Python 3 bindings for PyQt 5 xmlpatterns. + +%files -n python3-qt5-xmlpatterns +%{python3_sitearch}/PyQt5/QtXmlPatterns.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtXmlPatterns + +#------------------------------------------------------------ + +%package -n python3-qt5-x11extras +Summary: Python 3 bindings for PyQt 5 x11extras +Requires: python3-qt5-core = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-x11extras +Python 3 bindings for PyQt 5 x11extras. + +%files -n python3-qt5-x11extras +%{python3_sitearch}/PyQt5/QtX11Extras.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtX11Extras + +#------------------------------------------------------------ + +%package -n python3-qt5-designer +Summary: Python 3 bindings for PyQt 5 designer +Requires: python3-qt5-core = %{version} +Requires: python3-qt5-widgets = %{version} +Conflicts: python3-qt5 < 5.15.11 + +%description -n python3-qt5-designer +Python 3 bindings for PyQt 5 designer. + +%files -n python3-qt5-designer +%{python3_sitearch}/PyQt5/QtDesigner.abi3.so +%{python3_sitearch}/PyQt5/bindings/QtDesigner + +#------------------------------------------------------------ + +%package -n python3-qt5-devel Summary: Development files for python3-qt5 -Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release} -Requires: python%{python3_pkgversion}-sip-devel -Provides: python%{python3_pkgversion}-PyQt5-devel = %{version}-%{release} -%{?python_provide:%python_provide python%{python3_pkgversion}-qt5-devel} +Requires: python3-qt5 = %{version}-%{release} +Requires: /usr/bin/python3 +Provides: python3-PyQt5-devel = %{version}-%{release} +Conflicts: python3-qt5 < 5.15.11 +Conflicts: python3-qt5-base < 5.15.11 -%description -n python%{python3_pkgversion}-qt5-devel +%description -n python3-qt5-devel Development files for python3-qt5. +%files -n python3-qt5-devel +%{_bindir}/pylupdate5 +%{_bindir}/pyrcc5 +%{_bindir}/pyuic5 +%{_qt5_plugindir}/designer/libpyqt5.so +%{python3_sitearch}/PyQt5/__pycache__/pylupdate* +%{python3_sitearch}/PyQt5/__pycache__/pyrcc* +%{python3_sitearch}/PyQt5/*.pyi +%{python3_sitearch}/PyQt5/pylupdate* +%{python3_sitearch}/PyQt5/pyrcc* +%{python3_sitearch}/PyQt5/py.typed + +#------------------------------------------------------------ + %package help Summary: Documentation for python-qt5 -Provides: PyQt5-doc = %{version}-%{release} %{name}-doc = %{version}-%{release} +Provides: PyQt5-doc = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} Obsoletes: %{name}-doc < %{version}-%{release} BuildArch: noarch %description help Documentation for python-qt5. -%if 0%{?webengine} -%package -n python%{python3_pkgversion}-qt5-webengine -Summary: Python v3 bindings for Qt5 WebEngine -BuildRequires: qt5-qtwebengine-devel -Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release} -Obsoletes: python3-webengine < 5.5.1-13 python3-qt5 < 5.5.1-10 -%{?python_provide:%python_provide python%{python3_pkgversion}-qt5-webengine} - -%description -n python%{python3_pkgversion}-qt5-webengine -Python v3 bindings for Qt5 WebEngine. -%endif - -%package -n python%{python3_pkgversion}-qt5-webkit -Summary: Python v3 bindings for Qt5 Webkit -BuildRequires: qt5-qtwebkit-devel qt5-qtwebkit-devel -Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release} -Obsoletes: python3-qt5 < 5.5.1-10 -%{?python_provide:%python_provide python%{python3_pkgversion}-qt5-webkit} +%files help +%doc NEWS README.md +%doc examples/ +%dir %{_qt5_datadir}/qsci/ +%dir %{_qt5_datadir}/qsci/api/ +%dir %{_qt5_datadir}/qsci/api/python/ +%doc %{_qt5_datadir}/qsci/api/python/PyQt5.api -%description -n python%{python3_pkgversion}-qt5-webkit -Python v3 bindings for Qt5 Webkit. +#------------------------------------------------------------ %prep %autosetup -n PyQt5-%{version} -p1 -sed -i 's/@MinimumSipVersion@/4.19.12/g' ./configure.py %build export PATH="%{_qt5_bindir}:$PATH" -mkdir %{_target_platform}-python3 -cp -a * %{_target_platform}-python3/ ||: -pushd %{_target_platform}-python3 -%{__python3} ./configure.py \ - --assume-shared --confirm-license --no-dist-info --qmake=%{_qt5_qmake} \ - --qsci-api --qsci-api-destdir=%{_qt5_datadir}/qsci \ - %{?py3_sipdir:--sipdir=%{py3_sipdir}} --verbose QMAKE_CFLAGS_RELEASE="%{optflags}" \ - QMAKE_CXXFLAGS_RELEASE="%{optflags} `pkg-config --cflags dbus-python`"\ - QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}" -%make_build -popd +sip-build \ + --no-make \ + --qt-shared \ + --confirm-license \ + --qmake=%{_qt5_qmake} \ + --api-dir=%{_qt5_datadir}/qsci/api/python \ + --verbose \ + --dbus=%{_includedir}/dbus-1.0/ \ + --pep484-pyi \ + --qmake-setting 'QMAKE_CFLAGS_RELEASE="%{?build_cflags}"' \ + --qmake-setting 'QMAKE_CXXFLAGS_RELEASE="%{?build_cxxflags} `pkg-config --cflags dbus-python`"' \ + --qmake-setting 'QMAKE_LFLAGS_RELEASE="%{?build_ldflags}"' + +%make_build -C build %install -%make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform}-python3 -pushd %{buildroot} -%if "%py3_sipdir" == "%{_datadir}/sip/PyQt5" -mkdir -p .%{_datadir}/python3-sip -cp -alf .%{py3_sipdir} .%{_datadir}/python3-sip/PyQt5 -%endif -for i in .%{py3_site_qt5}/*.so .%{python3_dbus_dir}/pyqt5.so ; do - test -x $i || chmod a+rx $i -done - -rm -rfv .%{py3_site_qt5}/uic/port_v2/ - -install -p -m644 -D %{SOURCE1} .%{rpm_macros_dir}/macros.pyqt5 +%make_install INSTALL_ROOT=%{buildroot} -C build + +# ensure .so modules are executable for proper -debuginfo extraction +find %{buildroot} -type f -name '*.so' | xargs chmod a+rx + +install -p -m644 -D %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.pyqt5 sed -i \ -e "s|@@NAME@@|%{name}|g" \ -e "s|@@EPOCH@@|%{?epoch}%{!?epoch:0}|g" \ -e "s|@@VERSION@@|%{version}|g" \ -e "s|@@EVR@@|%{?epoch:%{epoch:}}%{version}-%{release}|g" \ - .%{rpm_macros_dir}/macros.pyqt5 - -rm -fv .%{_bindir}/{pyrcc5,pylupdate5,pyuic5} -install -p -m755 -D %{SOURCE2} .%{_bindir}/pylupdate5 -install -p -m755 -D %{SOURCE3} .%{_bindir}/pyrcc5 -install -p -m755 -D %{SOURCE4} .%{_bindir}/pyuic5 -sed -i \ - -e "s|@PYTHON3@|%{__python3}|g" \ - .%{_bindir}/{pyrcc5,pylupdate5,pyuic5} -popd - -%files rpm-macros -%{rpm_macros_dir}/macros.pyqt5 - -%files -n python%{python3_pkgversion}-qt5 -%{_bindir}/pylupdate5 -%{_bindir}/pyrcc5 -%{_bindir}/pyuic5 -%{_qt5_plugindir}/PyQt5 -%{_qt5_plugindir}/designer/libpyqt5.so -%{py3_site_qt5}/QtBluetooth.* -%{py3_site_qt5}/QtDesigner.* -%{py3_site_qt5}/QtHelp.* -%{py3_site_qt5}/QtLocation.* -%{py3_site_qt5}/QtMultimedia.* -%{py3_site_qt5}/QtMultimediaWidgets.* -%{py3_site_qt5}/QtNfc.* -%{py3_site_qt5}/QtPositioning.* -%{py3_site_qt5}/QtQml.* -%{py3_site_qt5}/QtQuick.* -%{py3_site_qt5}/QtQuickWidgets.* -%{py3_site_qt5}/QtSensors.* -%{py3_site_qt5}/QtSerialPort.* -%{py3_site_qt5}/QtSvg.* -%{py3_site_qt5}/QtWebChannel.* -%{py3_site_qt5}/QtWebSockets.* -%{py3_site_qt5}/QtX11Extras.* -%{py3_site_qt5}/QtXmlPatterns.* -%{py3_site_qt5}/uic/ -%{py3_site_qt5}/pylupdate.so -%{py3_site_qt5}/pylupdate_main.py* -%{py3_site_qt5}/pyrcc.so -%{py3_site_qt5}/pyrcc_main.py* - -%files -n python%{python3_pkgversion}-qt5-base -%doc NEWS README -%license LICENSE -%{python3_dbus_dir}/pyqt5.so -%dir %{py3_site_qt5}/ -%{py3_site_qt5}/__pycache__/ -%{py3_site_qt5}/__init__.py* -%{py3_site_qt5}/Qt.* -%{py3_site_qt5}/QtCore.* -%{py3_site_qt5}/QtDBus.* -%{py3_site_qt5}/QtGui.* -%{py3_site_qt5}/QtNetwork.* -%{py3_site_qt5}/QtOpenGL.* -%{py3_site_qt5}/QtPrintSupport.* -%{py3_site_qt5}/QtSql.* -%{py3_site_qt5}/QtTest.* -%{py3_site_qt5}/QtWidgets.* -%{py3_site_qt5}/QtXml.* -%{py3_site_qt5}/_QOpenGLFunctions_* - -%if 0%{?webengine} -%files -n python%{python3_pkgversion}-qt5-webengine -%{py3_site_qt5}/QtWebEngine* -%endif - -%files -n python%{python3_pkgversion}-qt5-webkit -%{py3_site_qt5}/QtWebKit* - -%files -n python%{python3_pkgversion}-qt5-devel -%{py3_sipdir}/ -%dir %{_datadir}/python3-sip/ -%{_datadir}/python3-sip/PyQt5/ - -%files help -%doc examples/ -%dir %{_qt5_datadir}/qsci/ -%dir %{_qt5_datadir}/qsci/api/ -%dir %{_qt5_datadir}/qsci/api/python/ -%doc %{_qt5_datadir}/qsci/api/python/PyQt5.api + %{buildroot}%{_rpmmacrodir}/macros.pyqt5 %changelog +* Fri Sep 19 2025 Funda Wang - 5.15.11-1 +- update to 5.15.11 +- split into modules which could be installed separately + * Thu Sep 11 2025 Funda Wang - 5.15.9-2 - drop deprecated qtenginio diff --git a/pyuic5.sh b/pyuic5.sh deleted file mode 100644 index 4d4869c83fea95ab10c84583e9df2bc22d918cee..0000000000000000000000000000000000000000 --- a/pyuic5.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -@PYTHON3@ -Ic "import PyQt5.uic.pyuic" &> /dev/null -if [ $? -eq 0 ]; then - exec @PYTHON3@ -Im PyQt5.uic.pyuic ${1+"$@"} -else - exec @PYTHON2@ -c "import sys; del sys.path[0]; import PyQt5.uic.pyuic; PyQt5.uic.pyuic.main()" ${1+"$@"} -fi