From 281186b94f0b88f63516a9d1dbbedcaac75f64d5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:52:18 +0100 Subject: [PATCH] rebuilt with python-sip4 [release 4.12.3-4mamba;Fri Apr 10 2020] --- PyQt4.spec | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/PyQt4.spec b/PyQt4.spec index 2a502fe..dd5dc0f 100644 --- a/PyQt4.spec +++ b/PyQt4.spec @@ -2,7 +2,7 @@ Name: PyQt4 Version: 4.12.3 -Release: 3mamba +Release: 4mamba Summary: Python bindings for the Qt cross platform GUI toolkit Group: System/Libraries Vendor: openmamba @@ -31,13 +31,15 @@ BuildRequires: libstdc++6-devel BuildRequires: libpython3-devel >= 3.7.4 BuildRequires: chrpath BuildRequires: libXcursor-devel -BuildRequires: python-dbus +BuildRequires: python-dbus-py3 BuildRequires: python-dbus-devel # WARNING: do not parametrize python-sip-devel version or it will be useless for ports -BuildRequires: python-sip-devel >= 4.19.19 -BuildRequires: python-sip-py3-devel >= 4.19.19 -BuildRequires: python-sip-py36-devel >= 4.19.19 -Requires: python-sip = %{pythonsip_ver} +%ifnarch aarch64 +BuildRequires: python-sip4 >= 4.19.22 +BuildRequires: python-sip4-py36 >= 4.19.22 +%endif +BuildRequires: python-sip4-py3 >= 4.19.22 +#Requires: python-sip4 = %{pythonsip_ver} Requires: python-dbus BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -58,7 +60,7 @@ PyQt4 is a comprehensive set of Python bindings for Qt4 cross platform GUI toolk %package py%{pyver} Group: System/Libraries/Python Summary: Python %{pyver} bindings for the Qt cross platform GUI toolkit -Requires: python-sip%{?with_pyver:-py%{pyver}} = %{pythonsip_ver} +#Requires: python-sip4%{?with_pyver:-py%{pyver}} = %{pythonsip_ver} Requires: python-dbus%{?with_pyver:-py%{pyver}} %py_requires @@ -69,28 +71,27 @@ PyQt4 is a comprehensive set of Python bindings for Qt4 cross platform GUI toolk %package devel Summary: Development files for PyQt4 Group: Development/Libraries -Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -Requires: %{name}-QtDesigner = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}%{?with_pyver:-py%{pyver}}-QtDesigner = %{?epoch:%epoch:}%{version}-%{release} %description devel PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform GUI toolkit. - This package contains files needed for development. %package %{?with_pyver:py%{pyver}-}QtDesigner Summary: QtDesigner support components for PyQt4 Group: System/Libraries -Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}%{?with_pyver:-py%{pyver}} = %{?epoch:%epoch:}%{version}-%{release} %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. %prep -%setup -q -n PyQt4_gpl_x11-%{version} +%setup -q -n PyQt4_gpl_x11-%{version} -D -T %build +:<< _EOF sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includedir}/phonon\"]:" configure.py %{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ @@ -140,11 +141,13 @@ find examples/ -type f -exec chmod 0644 {} ';' %{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 +%ifnarch aarch64 %{python_sitearch}/PyQt4/phonon.so +%{python_sitearch}/PyQt4/QtWebKit.so +%endif %{python_sitearch}/PyQt4/pyqtconfig.py %dir %{python_sitearch}/PyQt4/uic %{python_sitearch}/PyQt4/uic/* @@ -156,7 +159,9 @@ find examples/ -type f -exec chmod 0644 {} ';' %{_bindir}/* %dir %{_datadir}/sip/PyQt4 %{_datadir}/sip/PyQt4/* +%ifnarch aarch64 %{_qt4_datadir}/qsci/api/python/PyQt4.api +%endif #%doc doc/* examples #%doc NEWS README THANKS @@ -166,6 +171,9 @@ find examples/ -type f -exec chmod 0644 {} ';' %{_qt4_plugindir}/designer/* %changelog +* Fri Apr 10 2020 Silvan Calarco 4.12.3-4mamba +- rebuilt with python-sip4 + * Wed Oct 30 2019 Silvan Calarco 4.12.3-3mamba - rebuilt with python-sip 4.19.19