Accepting request 839338 from home:bnavigator:branches:KDE:Qt5

- Fix openSUSE:Leap:15.1:Update failure: Qt3DAnimation is only 
  built for Qt >= 5.10

OBS-URL: https://build.opensuse.org/request/show/839338
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python-qt3d-qt5?expand=0&rev=14
This commit is contained in:
Benjamin Greiner 2020-10-05 19:00:59 +00:00 committed by Git OBS Bridge
parent 8b061c267b
commit b16e496961
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 26 18:09:37 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Fix openSUSE:Leap:15.1:Update failure: Qt3DAnimation is only
built for Qt >= 5.10
-------------------------------------------------------------------
Mon Sep 14 15:53:23 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -16,6 +16,14 @@
#
# This definition is for projects which include the PyQt5 packages in recent
# versions but use default (old) Qt libraries e.g. from Leap, which does not
# have Qt >= 5.10. In that case, no Qt3DAnimation module will be built per
# sip %%If directives in the sip/Qt3DAnimation/*.sip files
%if %{pkg_vcmp libQt53DAnimation-devel >= 5.10}
%define have_qt3danimation 1
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-qt3d-qt5
Version: 5.15.1
@ -85,6 +93,7 @@ cp -r sip build_%{$python_bin_suffix}
%build
%{python_expand pushd build_%{$python_bin_suffix}
$python configure.py \
-w \
--no-dist-info \
--no-stubs \
--qmake=%{_bindir}/qmake-qt5
@ -106,7 +115,7 @@ cp -r examples %{buildroot}%{_docdir}/%{name}
%license LICENSE
%doc NEWS README
%dir %{python_sitearch}/PyQt5/
%{python_sitearch}/PyQt5/Qt3DAnimation.so
%{?have_qt3danimation:%{python_sitearch}/PyQt5/Qt3DAnimation.so}
%{python_sitearch}/PyQt5/Qt3DCore.so
%{python_sitearch}/PyQt5/Qt3DExtras.so
%{python_sitearch}/PyQt5/Qt3DInput.so
@ -121,7 +130,7 @@ cp -r examples %{buildroot}%{_docdir}/%{name}
%files -n %{name}-sip
%license LICENSE
%{_datadir}/sip/PyQt5/Qt3DAnimation/
%{?have_qt3danimation:%{_datadir}/sip/PyQt5/Qt3DAnimation/}
%{_datadir}/sip/PyQt5/Qt3DCore/
%{_datadir}/sip/PyQt5/Qt3DExtras/
%{_datadir}/sip/PyQt5/Qt3DInput/