Accepting request 1169282 from devel:languages:python

Forwarded request #1168476 from mlin7442

fix the test flavor build on Leap 15

OBS-URL: https://build.opensuse.org/request/show/1169282
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QtPy?expand=0&rev=25
This commit is contained in:
2024-04-21 18:26:12 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 16 11:01:50 UTC 2024 - Max Lin <mlin@suse.com>
- Make sure to use pytest-3.11 on Leap15.6
- To buildrequires python 3.11 version of pyside6 and pyside2
-------------------------------------------------------------------
Tue Nov 21 13:39:59 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -34,7 +34,10 @@ BuildArch: noarch
%bcond_with pyside2
%bcond_with pyside6
%endif
# make sure using pytest-3.11 on Leap 15.6
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
%define python3_bin_suffix 3.11
%endif
%{?sle15_python_module_pythons}
Name: python-QtPy%{psuffix}
Version: 2.4.1
@@ -87,10 +90,18 @@ BuildRequires: %{python_module PyQt6-WebEngine}
%endif
%endif
%if %{with pyside2}
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
BuildRequires: %{python_module pyside2}
%else
BuildRequires: python3-pyside2
%endif
%endif
%if %{with pyside6}
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
BuildRequires: %{python_module pyside6}
%else
BuildRequires: python3-pyside6
%endif
BuildRequires: qt6-sql-sqlite
%endif
%endif