-py3 support [release 5.3.2-2mamba;Thu Nov 20 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 17:52:29 +01:00
parent 35a4c20f2e
commit c5228ee9f0
2 changed files with 74 additions and 59 deletions

View File

@ -2,8 +2,8 @@
Name: PyQt5
Version: 5.3.2
Release: 1mamba
Summary: Python bindings for the Qt cross platform GUI toolkit
Release: 2mamba
Summary: Python bindings for the Qt5 cross platform GUI toolkit
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
@ -36,7 +36,27 @@ Requires: python-dbus
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform GUI toolkit.
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
%py_requires
%description py%{pyver}
PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit.
%endif
%package devel
Summary: Development files for PyQt4
@ -49,12 +69,12 @@ PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform G
This package contains files needed for development.
%package QtDesigner
%package %{?with_pyver:py%{pyver}-}QtDesigner
Summary: QtDesigner support components for PyQt4
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description QtDesigner
%description %{?with_pyver:py%{pyver}-}QtDesigner
PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform GUI toolkit.
This package contains the QtDesigner support components for PyQt4.
@ -76,9 +96,9 @@ This package contains the QtDesigner support components for PyQt4.
#:<< _EOF
sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includedir}/phonon\"]:" configure.py
%{__python27} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \
%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \
--qmake=%{_qt5_qmake} \
-d %{python27_sitearch} \
-d %{python_sitearch} \
--confirm-license \
--assume-shared \
--verbose
@ -89,62 +109,54 @@ sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includ
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot}
## Remove rpaths
#chrpath --list %{buildroot}%{python27_sitearch}/PyQt5/QtCore.so
#chrpath --delete %{buildroot}%{python27_sitearch}/PyQt5/QtCore.so
#
#chrpath --list %{buildroot}%{python27_sitearch}/PyQt5/QtGui.so
#chrpath --delete %{buildroot}%{python27_sitearch}/PyQt5/QtGui.so
#
#chrpath --list %{buildroot}%{python27_sitearch}/PyQt5/QtDesigner.so
#chrpath --delete %{buildroot}%{python27_sitearch}/PyQt5/QtDesigner.so
# Fix documentation permissions
find examples/ -type f -exec chmod 0644 {} ';'
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%files %{?with_pyver:py%{pyver}}
%defattr(-,root,root)
%{python27_sitelib}/dbus/mainloop/pyqt5.so
%dir %{python27_sitearch}/PyQt5
%{python27_sitearch}/PyQt5/Enginio.so
%{python27_sitearch}/PyQt5/Qt.so
%{python27_sitearch}/PyQt5/QtBluetooth.so
#%{python27_sitearch}/PyQt5/QtAssistant.so
%{python27_sitearch}/PyQt5/QtCore.so
%{python27_sitearch}/PyQt5/QtDBus.so
#%{python27_sitearch}/PyQt5/QtDeclarative.so
%{python27_sitearch}/PyQt5/QtGui.so
%{python27_sitearch}/PyQt5/QtHelp.so
%{python27_sitearch}/PyQt5/QtMultimedia.so
%{python27_sitearch}/PyQt5/QtMultimediaWidgets.so
%{python27_sitearch}/PyQt5/QtNetwork.so
%{python27_sitearch}/PyQt5/QtOpenGL.so
%{python27_sitearch}/PyQt5/QtPositioning.so
%{python27_sitearch}/PyQt5/QtPrintSupport.so
%{python27_sitearch}/PyQt5/QtQml.so
%{python27_sitearch}/PyQt5/QtQuick.so
%{python27_sitearch}/PyQt5/QtQuickWidgets.so
%{python27_sitearch}/PyQt5/QtSensors.so
%{python27_sitearch}/PyQt5/QtSerialPort.so
#%{python27_sitearch}/PyQt5/QtScript.so
#%{python27_sitearch}/PyQt5/QtScriptTools.so
%{python27_sitearch}/PyQt5/QtSql.so
%{python27_sitearch}/PyQt5/QtSvg.so
%{python27_sitearch}/PyQt5/QtTest.so
%{python27_sitearch}/PyQt5/QtWebKit.so
%{python27_sitearch}/PyQt5/QtWebKitWidgets.so
%{python27_sitearch}/PyQt5/QtWebSockets.so
%{python27_sitearch}/PyQt5/QtWidgets.so
%{python27_sitearch}/PyQt5/QtX11Extras.so
#%{python27_sitearch}/PyQt5/QtXml.so
%{python27_sitearch}/PyQt5/QtXmlPatterns.so
%{python27_sitearch}/PyQt5/_QOpenGLFunctions_2_0.so
%{python27_sitearch}/PyQt5/__init__.py
%dir %{python27_sitearch}/PyQt5/uic
%{python27_sitearch}/PyQt5/uic/*
%if "%{?pyver}" != "3"
%{python_sitelib}/dbus/mainloop/pyqt5.so
%endif
%dir %{python_sitearch}/PyQt5
%{python_sitearch}/PyQt5/Enginio.so
%{python_sitearch}/PyQt5/Qt.so
%{python_sitearch}/PyQt5/QtBluetooth.so
#%{python_sitearch}/PyQt5/QtAssistant.so
%{python_sitearch}/PyQt5/QtCore.so
%{python_sitearch}/PyQt5/QtDBus.so
#%{python_sitearch}/PyQt5/QtDeclarative.so
%{python_sitearch}/PyQt5/QtGui.so
%{python_sitearch}/PyQt5/QtHelp.so
%{python_sitearch}/PyQt5/QtMultimedia.so
%{python_sitearch}/PyQt5/QtMultimediaWidgets.so
%{python_sitearch}/PyQt5/QtNetwork.so
%{python_sitearch}/PyQt5/QtOpenGL.so
%{python_sitearch}/PyQt5/QtPositioning.so
%{python_sitearch}/PyQt5/QtPrintSupport.so
%{python_sitearch}/PyQt5/QtQml.so
%{python_sitearch}/PyQt5/QtQuick.so
%{python_sitearch}/PyQt5/QtQuickWidgets.so
%{python_sitearch}/PyQt5/QtSensors.so
%{python_sitearch}/PyQt5/QtSerialPort.so
#%{python_sitearch}/PyQt5/QtScript.so
#%{python_sitearch}/PyQt5/QtScriptTools.so
%{python_sitearch}/PyQt5/QtSql.so
%{python_sitearch}/PyQt5/QtSvg.so
%{python_sitearch}/PyQt5/QtTest.so
%{python_sitearch}/PyQt5/QtWebKit.so
%{python_sitearch}/PyQt5/QtWebKitWidgets.so
%{python_sitearch}/PyQt5/QtWebSockets.so
%{python_sitearch}/PyQt5/QtWidgets.so
%{python_sitearch}/PyQt5/QtX11Extras.so
#%{python_sitearch}/PyQt5/QtXml.so
%{python_sitearch}/PyQt5/QtXmlPatterns.so
%{python_sitearch}/PyQt5/_QOpenGLFunctions_2_0.so
%{python_sitearch}/PyQt5/__init__.py
%dir %{python_sitearch}/PyQt5/uic
%{python_sitearch}/PyQt5/uic/*
%dir %{_qt5_plugindir}/PyQt5
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
%doc LICENSE*
@ -157,12 +169,15 @@ find examples/ -type f -exec chmod 0644 {} ';'
%doc doc/* examples
%doc NEWS README
%files QtDesigner
%files %{?with_pyver:py%{pyver}-}QtDesigner
%defattr(-,root,root)
%{python27_sitearch}/PyQt5/QtDesigner.so
%{python_sitearch}/PyQt5/QtDesigner.so
%{_qt5_plugindir}/designer/*
%changelog
* Thu Nov 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.2-2mamba
- -py3 support
* Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.2-1mamba
- update to 5.3.2

View File

@ -1,4 +1,4 @@
# PyQt5
PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform GUI toolkit.
PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit.