diff --git a/PyQt5.spec b/PyQt5.spec index 870f3bc..5ab3060 100644 --- a/PyQt5.spec +++ b/PyQt5.spec @@ -3,7 +3,7 @@ %define majver %(echo %version | cut -d. -f1-2) Name: PyQt5 Version: 5.15.6 -Release: 1mamba +Release: 2mamba Summary: Python bindings for the Qt5 cross platform GUI toolkit Group: System/Libraries Vendor: openmamba @@ -11,90 +11,86 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://www.riverbankcomputing.com/software/pyqt Source: https://pypi.debian.net/PyQt5/PyQt5-%{version}.tar.gz -#Source: https://www.riverbankcomputing.com/static/Downloads/PyQt5/%{version}/PyQt5_gpl-%{version}.tar.gz -#Source: http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-%{version}/PyQt5_gpl-%{version}.tar.gz Patch3: PyQt5-5.3.2-python-sip-4.16.1.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libGL-devel BuildRequires: libgcc +BuildRequires: libglvnd-devel BuildRequires: libpython3-devel -%ifnarch aarch64 -BuildRequires: libpython36-devel -%endif -BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel +BuildRequires: python3.7dist(pyqt5-sip) +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtdeclarative-devel +BuildRequires: qt5-qttools-devel ## AUTOBUILDREQ-END BuildRequires: chrpath BuildRequires: libXcursor-devel BuildRequires: libdbus-devel -# WARNING: do not parametrize python-sip-devel version or it will be useless for ports -BuildRequires: python-dbus-py3 >= 1.2.16 -BuildRequires: python-sip-py3 >= 5.5.0 -BuildRequires: PyQt5-sip-py3 >= 6.0.1 +## WARNING: do not parametrize python-sip-devel version or it will be useless for ports +BuildRequires: python-dbus-py3 BuildRequires: PyQt-builder-py3 +BuildRequires: python-dbus-py310 +BuildRequires: PyQt-builder-py310 BuildRequires: libqt5-devel >= %{majver} -BuildRequires: python-dbus-devel -%ifnarch arm -BuildRequires: libQt5WebEngine-devel >= %{majver} -%endif +#BuildRequires: python-dbus-devel +#%ifnarch arm +#BuildRequires: libQt5WebEngine-devel >= %{majver} +#%endif %description -PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit. - -%if "%?with_pyver" -%define pyver %{with_pyver} -%define __python %(rpm --eval %{__python%{with_pyver}}) -%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) -%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) -%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) -%define python_version %(rpm --eval %{python%{with_pyver}_version}) -%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) -%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) -%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) - -%package py%{pyver} -Group: System/Libraries/Python -Summary: Python %{pyver} bindings for the Qt5 cross platform GUI toolkit -Requires: python-dbus-py%{pyver} -Requires: %{name}-qmlplugin -Requires: PyQt5-sip-py%{pyver} -%if "%{pyver}" == "3" -Provides: PyQt5 -Obsoletes: PyQt5 < 5.15.2 -Provides: PyQt5-devel -Obsoletes: PyQt5-devel < 5.15.2-2mamba -Provides: PyQt5-qmlplugin -Obsoletes: PyQt5-qmlplugin < 5.15.2-2mamba -%endif -%py_requires - -%description py%{pyver} PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit. + +# Dummy +%package QtDesigner +Summary: QtDesigner support components for PyQt5 +Group: System/Libraries + +%description QtDesigner +PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit. +This package contains the QtDesigner support components for PyQt5. + +%if "0%{?with_pyver}" == "03" +%define py_requires_append \ +Provides: PyQt5 \ +Obsoletes: PyQt5 < 5.15.2 \ +Provides: PyQt5-devel \ +Obsoletes: PyQt5-devel < 5.15.2-2mamba \ +Provides: PyQt5-qmlplugin \ +Obsoletes: PyQt5-qmlplugin < 5.15.2-2mamba \ +Requires: python-dbus-py%{?with_pyver} +%else +%define py_requires_append \ +Requires: python-dbus-py%{?with_pyver} %endif +%if 0%{?with_pyver} +%pyver_package + %package QtDesigner%{?with_pyver:-py%{pyver}} Summary: QtDesigner support components for PyQt5 Group: System/Libraries +%if "0%{?with_pyver}" == "03" Requires: PyQt5%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release} Provides: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner -Obsoletes: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner -%if "%{pyver}" == "3" +Obsoletes: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner < 5.15.6 Provides: PyQt5-QtDesigner -Obsoletes: PyQt5-QtDesigner +Obsoletes: PyQt5-QtDesigner < 5.15.6 %endif %description QtDesigner%{?with_pyver:-py%{pyver}} -PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit. +PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit. This package contains the QtDesigner support components for PyQt5. +%endif %prep %setup -q +#-D -T #%patch3 -p1 %build -sip-build \ +#:<< _EOF +sip-build-py%{with_pyver} \ --confirm-license \ --no-make \ --api-dir %{_datadir}/qt5/qsci/api/python @@ -109,16 +105,26 @@ make # Fix documentation permissions find examples/ -type f -exec chmod 0644 {} ';' -%if "%{pyver}" != "3" -rm -f %{buildroot}%{_libdir}/qt5/plugins/PyQt5/libpyqt5qmlplugin.so +%if "0%{pyver}" != "03" +rm -f %{buildroot}%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so %endif +for f in pylupdate5 pyrcc5 pyuic5; do + mv %{buildroot}%{_bindir}/${f} %{buildroot}%{_bindir}/${f}-py%{with_pyver} +%if "0%{?with_pyver}" == "03" + ln -s ${f}-py%{with_pyver} %{buildroot}%{_bindir}/${f} +%endif +done + + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %{?with_pyver:py%{pyver}} %defattr(-,root,root) -%{_bindir}/* +%{_bindir}/pylupdate5* +%{_bindir}/pyrcc5* +%{_bindir}/pyuic5* %{python_sitearch}/dbus/mainloop/pyqt5.abi3.so %dir %{python_sitearch}/PyQt5-%{version}.dist-info %{python_sitearch}/PyQt5-%{version}.dist-info/* @@ -138,6 +144,9 @@ rm -f %{buildroot}%{_libdir}/qt5/plugins/PyQt5/libpyqt5qmlplugin.so %{_qt5_plugindir}/designer/* %changelog +* Fri Apr 08 2022 Silvan Calarco 5.15.6-2mamba +- rebuilt with python 3.10 subpackage + * Sat Oct 30 2021 Automatic Build System 5.15.6-1mamba - automatic version update by autodist diff --git a/README.md b/README.md index 8f28235..e387d14 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # PyQt5 -PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit. - +PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit.