rebuilt with python 3.10 subpackage [release 5.15.6-2mamba;Fri Apr 08 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 17:52:30 +01:00
parent 24f764c668
commit cfaaf5a4af
2 changed files with 64 additions and 56 deletions

View File

@ -3,7 +3,7 @@
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: PyQt5 Name: PyQt5
Version: 5.15.6 Version: 5.15.6
Release: 1mamba Release: 2mamba
Summary: Python bindings for the Qt5 cross platform GUI toolkit Summary: Python bindings for the Qt5 cross platform GUI toolkit
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -11,90 +11,86 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.riverbankcomputing.com/software/pyqt URL: https://www.riverbankcomputing.com/software/pyqt
Source: https://pypi.debian.net/PyQt5/PyQt5-%{version}.tar.gz 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 Patch3: PyQt5-5.3.2-python-sip-4.16.1.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
%ifnarch aarch64
BuildRequires: libpython36-devel
%endif
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: python3.7dist(pyqt5-sip)
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qttools-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: libXcursor-devel BuildRequires: libXcursor-devel
BuildRequires: libdbus-devel BuildRequires: libdbus-devel
# WARNING: do not parametrize python-sip-devel version or it will be useless for ports ## WARNING: do not parametrize python-sip-devel version or it will be useless for ports
BuildRequires: python-dbus-py3 >= 1.2.16 BuildRequires: python-dbus-py3
BuildRequires: python-sip-py3 >= 5.5.0
BuildRequires: PyQt5-sip-py3 >= 6.0.1
BuildRequires: PyQt-builder-py3 BuildRequires: PyQt-builder-py3
BuildRequires: python-dbus-py310
BuildRequires: PyQt-builder-py310
BuildRequires: libqt5-devel >= %{majver} BuildRequires: libqt5-devel >= %{majver}
BuildRequires: python-dbus-devel #BuildRequires: python-dbus-devel
%ifnarch arm #%ifnarch arm
BuildRequires: libQt5WebEngine-devel >= %{majver} #BuildRequires: libQt5WebEngine-devel >= %{majver}
%endif #%endif
%description %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. 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 %endif
%if 0%{?with_pyver}
%pyver_package
%package QtDesigner%{?with_pyver:-py%{pyver}} %package QtDesigner%{?with_pyver:-py%{pyver}}
Summary: QtDesigner support components for PyQt5 Summary: QtDesigner support components for PyQt5
Group: System/Libraries Group: System/Libraries
%if "0%{?with_pyver}" == "03"
Requires: PyQt5%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release} Requires: PyQt5%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release}
Provides: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner Provides: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner
Obsoletes: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner Obsoletes: PyQt5%{?with_pyver:-py%{pyver}}-QtDesigner < 5.15.6
%if "%{pyver}" == "3"
Provides: PyQt5-QtDesigner Provides: PyQt5-QtDesigner
Obsoletes: PyQt5-QtDesigner Obsoletes: PyQt5-QtDesigner < 5.15.6
%endif %endif
%description QtDesigner%{?with_pyver:-py%{pyver}} %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. This package contains the QtDesigner support components for PyQt5.
%endif
%prep %prep
%setup -q %setup -q
#-D -T
#%patch3 -p1 #%patch3 -p1
%build %build
sip-build \ #:<< _EOF
sip-build-py%{with_pyver} \
--confirm-license \ --confirm-license \
--no-make \ --no-make \
--api-dir %{_datadir}/qt5/qsci/api/python --api-dir %{_datadir}/qt5/qsci/api/python
@ -109,16 +105,26 @@ make
# Fix documentation permissions # Fix documentation permissions
find examples/ -type f -exec chmod 0644 {} ';' find examples/ -type f -exec chmod 0644 {} ';'
%if "%{pyver}" != "3" %if "0%{pyver}" != "03"
rm -f %{buildroot}%{_libdir}/qt5/plugins/PyQt5/libpyqt5qmlplugin.so rm -f %{buildroot}%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
%endif %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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?with_pyver:py%{pyver}} %files %{?with_pyver:py%{pyver}}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/* %{_bindir}/pylupdate5*
%{_bindir}/pyrcc5*
%{_bindir}/pyuic5*
%{python_sitearch}/dbus/mainloop/pyqt5.abi3.so %{python_sitearch}/dbus/mainloop/pyqt5.abi3.so
%dir %{python_sitearch}/PyQt5-%{version}.dist-info %dir %{python_sitearch}/PyQt5-%{version}.dist-info
%{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/* %{_qt5_plugindir}/designer/*
%changelog %changelog
* Fri Apr 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.6-2mamba
- rebuilt with python 3.10 subpackage
* Sat Oct 30 2021 Automatic Build System <autodist@mambasoft.it> 5.15.6-1mamba * Sat Oct 30 2021 Automatic Build System <autodist@mambasoft.it> 5.15.6-1mamba
- automatic version update by autodist - automatic version update by autodist

View File

@ -1,4 +1,3 @@
# PyQt5 # 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.