update to 4.11.3

added -py3 subpackage support
require python-sip 4.16.4 [release 4.11.3-1mamba;Fri Nov 14 2014]
This commit is contained in:
Silvan Calarco 2024-01-05 17:52:18 +01:00
parent 7c6139c33a
commit 76924acdbb
2 changed files with 77 additions and 64 deletions

View File

@ -1,7 +1,7 @@
%define pythonsip_ver %(sip -V)
Name: PyQt4
Version: 4.11.2
Version: 4.11.3
Release: 1mamba
Summary: Python bindings for the Qt cross platform GUI toolkit
Group: System/Libraries
@ -16,44 +16,50 @@ Patch2: PyQt4-4.9.4-x86_64.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libGL-devel
BuildRequires: libglib-devel
BuildRequires: libGLU-devel
BuildRequires: libICE-devel
BuildRequires: libpng-devel
BuildRequires: libphonon-devel
BuildRequires: libqt4-designer
BuildRequires: libqt4-devel
BuildRequires: libSM-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libQtAssistantClient-devel
BuildRequires: libQtDeclarative
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: python-sip-devel
BuildRequires: libdbus-devel
BuildRequires: libgcc
BuildRequires: libphonon-devel
BuildRequires: libpython-devel
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: chrpath
BuildRequires: libQtAssistantClient-devel
BuildRequires: libXcursor-devel
BuildRequires: libdbus-devel
BuildRequires: libpython-devel
BuildRequires: python-dbus
BuildRequires: python-dbus-devel
# WARNING: do not parametrize python-sip-devel version or it will be useless for ports
BuildRequires: python-sip-devel >= 4.16.1
BuildRequires: python-sip-devel >= 4.16.4
Requires: python-sip = %{pythonsip_ver}
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.
PyQt4 is a comprehensive set of Python bindings for Qt4 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 Qt cross platform GUI toolkit
%py_requires
%description py%{pyver}
PyQt4 is a comprehensive set of Python bindings for Qt4 cross platform GUI toolkit.
%endif
%package devel
Summary: Development files for PyQt4
@ -66,12 +72,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.
@ -89,9 +95,9 @@ This package contains the QtDesigner support components for PyQt4.
%build
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=%{_qt4_qmake} \
-d %{python27_sitearch} \
-d %{python_sitearch} \
--confirm-license \
--assume-shared \
--verbose
@ -103,14 +109,14 @@ sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includ
%makeinstall INSTALL_ROOT=%{buildroot}
# Remove rpaths
chrpath --list %{buildroot}%{python27_sitearch}/PyQt4/QtCore.so
chrpath --delete %{buildroot}%{python27_sitearch}/PyQt4/QtCore.so
chrpath --list %{buildroot}%{python_sitearch}/PyQt4/QtCore.so
chrpath --delete %{buildroot}%{python_sitearch}/PyQt4/QtCore.so
chrpath --list %{buildroot}%{python27_sitearch}/PyQt4/QtGui.so
chrpath --delete %{buildroot}%{python27_sitearch}/PyQt4/QtGui.so
chrpath --list %{buildroot}%{python_sitearch}/PyQt4/QtGui.so
chrpath --delete %{buildroot}%{python_sitearch}/PyQt4/QtGui.so
chrpath --list %{buildroot}%{python27_sitearch}/PyQt4/QtDesigner.so
chrpath --delete %{buildroot}%{python27_sitearch}/PyQt4/QtDesigner.so
chrpath --list %{buildroot}%{python_sitearch}/PyQt4/QtDesigner.so
chrpath --delete %{buildroot}%{python_sitearch}/PyQt4/QtDesigner.so
# Fix documentation permissions
find examples/ -type f -exec chmod 0644 {} ';'
@ -118,33 +124,35 @@ 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/qt.so
%{python27_sitearch}/PyQt4/Qt.so
%{python27_sitearch}/PyQt4/QtAssistant.so
%{python27_sitearch}/PyQt4/QtCore.so
%{python27_sitearch}/PyQt4/QtDBus.so
%{python27_sitearch}/PyQt4/QtDeclarative.so
%{python27_sitearch}/PyQt4/QtGui.so
%{python27_sitearch}/PyQt4/QtHelp.so
%{python27_sitearch}/PyQt4/QtMultimedia.so
%{python27_sitearch}/PyQt4/QtNetwork.so
%{python27_sitearch}/PyQt4/QtOpenGL.so
%{python27_sitearch}/PyQt4/QtScript.so
%{python27_sitearch}/PyQt4/QtScriptTools.so
%{python27_sitearch}/PyQt4/QtSql.so
%{python27_sitearch}/PyQt4/QtSvg.so
%{python27_sitearch}/PyQt4/QtTest.so
%{python27_sitearch}/PyQt4/QtWebKit.so
%{python27_sitearch}/PyQt4/QtXml.so
%{python27_sitearch}/PyQt4/QtXmlPatterns.so
%{python27_sitearch}/PyQt4/__init__.py
%{python27_sitearch}/PyQt4/phonon.so
%{python27_sitearch}/PyQt4/pyqtconfig.py
%dir %{python27_sitearch}/PyQt4/uic
%{python27_sitearch}/PyQt4/uic/*
#%{python27_sitelib}/dbus/mainloop/qt.so
%if "%{?pyver}" != "3"
%{python_sitelib}/dbus/mainloop/qt.so
%endif
%{python_sitearch}/PyQt4/Qt.so
%{python_sitearch}/PyQt4/QtAssistant.so
%{python_sitearch}/PyQt4/QtCore.so
%{python_sitearch}/PyQt4/QtDBus.so
%{python_sitearch}/PyQt4/QtDeclarative.so
%{python_sitearch}/PyQt4/QtGui.so
%{python_sitearch}/PyQt4/QtHelp.so
%{python_sitearch}/PyQt4/QtMultimedia.so
%{python_sitearch}/PyQt4/QtNetwork.so
%{python_sitearch}/PyQt4/QtOpenGL.so
%{python_sitearch}/PyQt4/QtScript.so
%{python_sitearch}/PyQt4/QtScriptTools.so
%{python_sitearch}/PyQt4/QtSql.so
%{python_sitearch}/PyQt4/QtSvg.so
%{python_sitearch}/PyQt4/QtTest.so
%{python_sitearch}/PyQt4/QtWebKit.so
%{python_sitearch}/PyQt4/QtXml.so
%{python_sitearch}/PyQt4/QtXmlPatterns.so
%{python_sitearch}/PyQt4/__init__.py
%{python_sitearch}/PyQt4/phonon.so
%{python_sitearch}/PyQt4/pyqtconfig.py
%dir %{python_sitearch}/PyQt4/uic
%{python_sitearch}/PyQt4/uic/*
#%{python_sitelib}/dbus/mainloop/qt.so
%doc GPL_EXCEPTION*.TXT LICENSE*
%files devel
@ -156,12 +164,17 @@ find examples/ -type f -exec chmod 0644 {} ';'
%doc doc/* examples
%doc NEWS README THANKS
%files QtDesigner
%files %{?with_pyver:py%{pyver}-}QtDesigner
%defattr(-,root,root)
%{python27_sitearch}/PyQt4/QtDesigner.so
%{python_sitearch}/PyQt4/QtDesigner.so
%{_qt4_plugindir}/designer/*
%changelog
* Fri Nov 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.3-1mamba
- update to 4.11.3
- added -py3 subpackage support
- require python-sip 4.16.4
* Thu Sep 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.2-1mamba
- update to 4.11.2

View File

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