Change qt subpackage requirement to (python-PyQt6 or python-pyside6)

python-pyside6 just builds for the primary python, so to depend
directly on that will require to just build the qt subpackage for
primary python. This should work well with python-PyQt6.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=118
This commit is contained in:
2025-06-03 06:59:36 +00:00
committed by Git OBS Bridge
parent 18bb8a88b2
commit 7316768931

View File

@@ -128,7 +128,7 @@ BuildRequires: %{python_module nbconvert if %python-base >= 3.10}
BuildRequires: %{python_module nbformat if %python-base >= 3.10}
%endif
# /SECTION nbagg
# SECTION qt backends: Only test PyQt5 in Minimal-X
# SECTION qt backends: Only test PyQt6 in Minimal-X
%if %{with qt}
BuildRequires: %{python_module PyQt6}
%if %{without ringdisabled}
@@ -239,8 +239,7 @@ and figures.
%package qt
Summary: Qt backend for %{name}
Requires: %{name} = %{version}
Requires: python-PyQt6 >= 6.1
Requires: python-pyside6
Requires: (python-PyQt6 >= 6.1 or python-pyside6)
Provides: %{name}-qt-shared = %{version}
Provides: %{name}-qt6 = %{version}
Obsoletes: %{name}-qt-shared < %{version}