package the qmlplugin apart to fix conflict between -py* packages [release 5.11.3-2mamba;Fri Jul 12 2019]
This commit is contained in:
parent
679d1b0106
commit
b7c95f72da
34
PyQt5.spec
34
PyQt5.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: PyQt5
|
||||
Version: 5.11.3
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Python bindings for the Qt5 cross platform GUI toolkit
|
||||
Group: System/Libraries
|
||||
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
|
||||
BuildRequires: python-sip-devel >= 4.19.13
|
||||
Requires: python-dbus
|
||||
Requires: %{name}-qmlplugin
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
@ -58,7 +59,7 @@ PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolk
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: Development files for PyQt4
|
||||
Summary: Development files for PyQt5
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{?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.
|
||||
|
||||
%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
|
||||
Summary: QtDesigner support components for PyQt4
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n PyQt5_gpl-%{version} -D -T
|
||||
%setup -q -n PyQt5_gpl-%{version}
|
||||
#-D -T
|
||||
#:<< _EOF
|
||||
#%patch0 -p0
|
||||
#% ifarch arm
|
||||
@ -91,7 +102,7 @@ This package contains the QtDesigner support components for PyQt4.
|
||||
#%patch3 -p1
|
||||
|
||||
%build
|
||||
:<< _EOF
|
||||
#:<< _EOF
|
||||
sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includedir}/phonon\"]:" configure.py
|
||||
|
||||
%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \
|
||||
@ -115,27 +126,25 @@ find examples/ -type f -exec chmod 0644 {} ';'
|
||||
|
||||
%files %{?with_pyver:py%{pyver}}
|
||||
%defattr(-,root,root)
|
||||
%ifarch x86_64 arm
|
||||
%{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
|
||||
%{python_sitearch}/PyQt5-%{version}.dist-info/*
|
||||
%dir %{python_sitearch}/PyQt5
|
||||
%{python_sitearch}/PyQt5/*
|
||||
%exclude %{python_sitearch}/PyQt5/QtDesigner.so
|
||||
%dir %{_qt5_plugindir}/PyQt5
|
||||
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
|
||||
%doc LICENSE*
|
||||
|
||||
%files qmlplugin
|
||||
%defattr(-,root,root)
|
||||
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%dir %{_datadir}/sip/PyQt5
|
||||
%{_datadir}/sip/PyQt5/*
|
||||
%{_datadir}/qt5/qsci/api/python/PyQt5.api
|
||||
%doc examples
|
||||
%doc NEWS README
|
||||
|
||||
@ -145,6 +154,9 @@ find examples/ -type f -exec chmod 0644 {} ';'
|
||||
%{_qt5_plugindir}/designer/*
|
||||
|
||||
%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
|
||||
- update to 5.11.3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user