rebuilt with python-sip 6.0.1 [release 5.15.2-2mamba;Wed Feb 10 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 17:52:30 +01:00
parent 48d3a8b193
commit 91b685a30f

View File

@ -1,14 +1,14 @@
%define pythonsip_ver %(sip -V) %define pythonsip_ver %(sip -V)
Name: PyQt5 Name: PyQt5
Version: 5.15.1 Version: 5.15.2
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
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.riverbankcomputing.com/software/pyqt URL: https://www.riverbankcomputing.com/software/pyqt
Source: https://pypi.debian.net/PyQt5/PyQt5-%{version}.tar.gz Source: https://pypi.debian.net/PyQt5/PyQt5-%{version}.tar.gz
#Source: https://www.riverbankcomputing.com/static/Downloads/PyQt5/%{version}/PyQt5_gpl-%{version}.tar.gz #Source: https://www.riverbankcomputing.com/static/Downloads/PyQt5/%{version}/PyQt5_gpl-%{version}.tar.gz
#Source: http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-%{version}/PyQt5_gpl-%{version}.tar.gz #Source: http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-%{version}/PyQt5_gpl-%{version}.tar.gz
@ -30,12 +30,11 @@ BuildRequires: libXcursor-devel
BuildRequires: libdbus-devel BuildRequires: libdbus-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-dbus-py3 >= 1.2.16 BuildRequires: python-dbus-py3 >= 1.2.16
BuildRequires: python-sip-py3 >= 5.4.0 BuildRequires: python-sip-py3 >= 5.5.0
%ifnarch aarch64 BuildRequires: PyQt5-sip-py3 >= 6.0.1
BuildRequires: python-dbus-py36 >= 1.2.16 BuildRequires: PyQt-builder-py3
BuildRequires: python-sip-py36 >= 5.4.0
%endif
BuildRequires: libqt5-devel >= %{version} BuildRequires: libqt5-devel >= %{version}
BuildRequires: python-dbus-devel
%ifnarch arm %ifnarch arm
BuildRequires: libQt5WebEngine-devel >= %{version} BuildRequires: libQt5WebEngine-devel >= %{version}
%endif %endif
@ -63,7 +62,11 @@ Requires: %{name}-qmlplugin
Requires: PyQt5-sip-py%{pyver} Requires: PyQt5-sip-py%{pyver}
%if "%{pyver}" == "3" %if "%{pyver}" == "3"
Provides: PyQt5 Provides: PyQt5
Obsoletes: PyQt5 Obsoletes: PyQt5 < 5.15.2
Provides: PyQt5-devel
Obsoletes: PyQt5-devel < 5.15.2-2mamba
Provides: PyQt5-qmlplugin
Obsoletes: PyQt5-qmlplugin < 5.15.2-2mamba
%endif %endif
%py_requires %py_requires
@ -71,26 +74,6 @@ Obsoletes: PyQt5
PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit. PyQt5 is a comprehensive set of Python bindings for Qt5 cross platform GUI toolkit.
%endif %endif
%package devel
Summary: Development files for PyQt5
Group: Development/Libraries
Requires: %{name}-py3 = %{?epoch:%epoch:}%{version}-%{release}
#Requires: %{name}-QtDesigner = %{?epoch:%epoch:}%{version}-%{release}
%description devel
PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit.
This package contains files needed for development.
%package qmlplugin
Summary: Qml plugin for PyQt5
Group: System/Libraries
%description qmlplugin
PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit.
This package contains the QML plugin.
%package QtDesigner%{?with_pyver:-py%{pyver}} %package QtDesigner%{?with_pyver:-py%{pyver}}
Summary: QtDesigner support components for PyQt5 Summary: QtDesigner support components for PyQt5
Group: System/Libraries Group: System/Libraries
@ -104,7 +87,6 @@ Obsoletes: PyQt5-QtDesigner
%description QtDesigner%{?with_pyver:-py%{pyver}} %description QtDesigner%{?with_pyver:-py%{pyver}}
PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit. PyQt5 is a comprehensive set of Python bindings for Nokia's Qt5 cross platform GUI toolkit.
This package contains the QtDesigner support components for PyQt5. This package contains the QtDesigner support components for PyQt5.
%prep %prep
@ -112,20 +94,17 @@ This package contains the QtDesigner support components for PyQt5.
#%patch3 -p1 #%patch3 -p1
%build %build
sed -i "/generate_code(\"phonon\")/s:phonon\":&, extra_include_dirs=[\"%{_includedir}/phonon\"]:" configure.py sip-build \
%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \
--qmake=%{_qt5_qmake} \
-d %{python_sitearch} \
--confirm-license \ --confirm-license \
--assume-shared \ --no-make \
--verbose --api-dir %{_datadir}/qt5/qsci/api/python
%make cd build
make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot} %makeinstall -C build INSTALL_ROOT=%{buildroot}
# Fix documentation permissions # Fix documentation permissions
find examples/ -type f -exec chmod 0644 {} ';' find examples/ -type f -exec chmod 0644 {} ';'
@ -139,38 +118,32 @@ rm -f %{buildroot}%{_libdir}/qt5/plugins/PyQt5/libpyqt5qmlplugin.so
%files %{?with_pyver:py%{pyver}} %files %{?with_pyver:py%{pyver}}
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitelib}/dbus/mainloop/pyqt5.so %{_bindir}/*
%{python_sitearch}/dbus/mainloop/pyqt5.abi3.so
%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.abi3.so
%dir %{_qt5_plugindir}/PyQt5 %dir %{_qt5_plugindir}/PyQt5
%doc LICENSE* %{_datadir}/qt5/qsci/api/python/PyQt5.api
%if "%{pyver}" == "3" %if "%{pyver}" == "3"
%files qmlplugin
%defattr(-,root,root)
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so %{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
%endif %endif
%doc LICENSE*
%files devel
%defattr(-,root,root)
%{_bindir}/*
%dir %{_datadir}/sip/PyQt5
%{_datadir}/sip/PyQt5/*
%ifnarch aarch64
%{_datadir}/qt5/qsci/api/python/PyQt5.api
%endif
%doc examples
%doc NEWS README
%files QtDesigner%{?with_pyver:-py%{pyver}} %files QtDesigner%{?with_pyver:-py%{pyver}}
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/PyQt5/QtDesigner.so %{python_sitearch}/PyQt5/QtDesigner.abi3.so
%{_qt5_plugindir}/designer/* %{_qt5_plugindir}/designer/*
%changelog %changelog
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-2mamba
- rebuilt with python-sip 6.0.1
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-1mamba
- update to 5.15.2
* Sat Oct 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.1-1mamba * Sat Oct 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.1-1mamba
- update to 5.15.1 - update to 5.15.1