package the qmlplugin apart to fix conflict between -py* packages [release 5.11.3-2mamba;Fri Jul 12 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 17:52:29 +01:00
parent 679d1b0106
commit b7c95f72da

View File

@ -2,7 +2,7 @@
Name: PyQt5 Name: PyQt5
Version: 5.11.3 Version: 5.11.3
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
@ -32,6 +32,7 @@ BuildRequires: python-dbus-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-sip-devel >= 4.19.13 BuildRequires: python-sip-devel >= 4.19.13
Requires: python-dbus Requires: python-dbus
Requires: %{name}-qmlplugin
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
@ -58,7 +59,7 @@ PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolk
%endif %endif
%package devel %package devel
Summary: Development files for PyQt4 Summary: Development files for PyQt5
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-QtDesigner = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name}-QtDesigner = %{?epoch:%epoch:}%{version}-%{release}
@ -68,6 +69,15 @@ PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform G
This package contains files needed for development. This package contains files needed for development.
%package qmlplugin
Summary: Qml plugin for PyQt5
Group: System/Libraries
%description qmlplugin
PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform GUI toolkit.
This package contains the QML plugin.
%package %{?with_pyver:py%{pyver}-}QtDesigner %package %{?with_pyver:py%{pyver}-}QtDesigner
Summary: QtDesigner support components for PyQt4 Summary: QtDesigner support components for PyQt4
Group: System/Libraries Group: System/Libraries
@ -79,7 +89,8 @@ PyQt4 is a comprehensive set of Python bindings for Nokia's Qt4 cross platform G
This package contains the QtDesigner support components for PyQt4. This package contains the QtDesigner support components for PyQt4.
%prep %prep
%setup -q -n PyQt5_gpl-%{version} -D -T %setup -q -n PyQt5_gpl-%{version}
#-D -T
#:<< _EOF #:<< _EOF
#%patch0 -p0 #%patch0 -p0
#% ifarch arm #% ifarch arm
@ -91,7 +102,7 @@ This package contains the QtDesigner support components for PyQt4.
#%patch3 -p1 #%patch3 -p1
%build %build
:<< _EOF #:<< _EOF
sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includedir}/phonon\"]:" configure.py sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includedir}/phonon\"]:" configure.py
%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ %{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \
@ -115,27 +126,25 @@ find examples/ -type f -exec chmod 0644 {} ';'
%files %{?with_pyver:py%{pyver}} %files %{?with_pyver:py%{pyver}}
%defattr(-,root,root) %defattr(-,root,root)
%ifarch x86_64 arm
%{python_sitelib}/dbus/mainloop/pyqt5.so %{python_sitelib}/dbus/mainloop/pyqt5.so
%else
%if "%{?pyver}" != "36"
%{python_sitelib}/dbus/mainloop/pyqt5.so
%endif
%endif
%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/*
%dir %{python_sitearch}/PyQt5 %dir %{python_sitearch}/PyQt5
%{python_sitearch}/PyQt5/* %{python_sitearch}/PyQt5/*
%exclude %{python_sitearch}/PyQt5/QtDesigner.so %exclude %{python_sitearch}/PyQt5/QtDesigner.so
%dir %{_qt5_plugindir}/PyQt5 %dir %{_qt5_plugindir}/PyQt5
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
%doc LICENSE* %doc LICENSE*
%files qmlplugin
%defattr(-,root,root)
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/* %{_bindir}/*
%dir %{_datadir}/sip/PyQt5 %dir %{_datadir}/sip/PyQt5
%{_datadir}/sip/PyQt5/* %{_datadir}/sip/PyQt5/*
%{_datadir}/qt5/qsci/api/python/PyQt5.api
%doc examples %doc examples
%doc NEWS README %doc NEWS README
@ -145,6 +154,9 @@ find examples/ -type f -exec chmod 0644 {} ';'
%{_qt5_plugindir}/designer/* %{_qt5_plugindir}/designer/*
%changelog %changelog
* Fri Jul 12 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.11.3-2mamba
- package the qmlplugin apart to fix conflict between -py* packages
* Fri Dec 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.11.3-1mamba * Fri Dec 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.11.3-1mamba
- update to 5.11.3 - update to 5.11.3