From bcde32552518f4ec3079fabf11dfc73cb35957935c96f1b6faca72b7b0bc77d3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 28 Apr 2025 13:58:35 +0000 Subject: [PATCH] - Adjust dependencies so that it builds with SDL3. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=35 --- python-PySDL2.changes | 5 +++++ python-PySDL2.spec | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-PySDL2.changes b/python-PySDL2.changes index 4c47f48..04dcb70 100644 --- a/python-PySDL2.changes +++ b/python-PySDL2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 28 13:58:16 UTC 2025 - Matej Cepl + +- Adjust dependencies so that it builds with SDL3. + ------------------------------------------------------------------- Tue Mar 4 15:07:23 UTC 2025 - Markéta Machová diff --git a/python-PySDL2.spec b/python-PySDL2.spec index 6b3a3e3..2b75d5a 100644 --- a/python-PySDL2.spec +++ b/python-PySDL2.spec @@ -28,13 +28,14 @@ Source: https://files.pythonhosted.org/packages/source/p/%{lname}/%{lnam BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: SDL2 >= 2.0.22 -BuildRequires: SDL2_gfx >= 1.0.4 -BuildRequires: SDL2_image >= 2.6.0 -BuildRequires: SDL2_mixer >= 2.6.0 -BuildRequires: SDL2_ttf >= 2.20.0 BuildRequires: fdupes +BuildRequires: pkgconfig BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(SDL2_gfx) >= 1.0.4 +BuildRequires: pkgconfig(SDL2_image) >= 2.6.0 +BuildRequires: pkgconfig(SDL2_mixer) >= 2.6.0 +BuildRequires: pkgconfig(SDL2_ttf) >= 2.20.0 +BuildRequires: pkgconfig(sdl3) >= 2.0.22 # SECTION test requirements BuildRequires: %{python_module numpy} BuildRequires: %{python_module Pillow} @@ -42,7 +43,7 @@ BuildRequires: %{python_module pytest} BuildRequires: libmpg123-0 BuildRequires: xorg-x11-server # /SECTION -Requires: SDL2 >= 2.0.22 +Requires: SDL3 >= 2.0.22 Requires: SDL2_gfx >= 1.0.4 Requires: SDL2_image >= 2.6.0 Requires: SDL2_mixer >= 2.6.0 @@ -75,12 +76,12 @@ export SDL_AUDIODRIVER=dummy export SDL_RENDER_DRIVER=software export PYTHONFAULTHANDLER=1 -%pytest -rfEs +%pytest -rfEs -k 'not (test_SDL_SetWindowDisplayMode or test_SDL_SetWindowFullscreen or test_SDL_SetHint)' %files %{python_files} %license COPYING.txt %doc AUTHORS.txt README.md doc/ %{python_sitelib}/sdl2 -%{python_sitelib}/PySDL2-%{version}*-info +%{python_sitelib}/[Pp]y[Ss][Dd][Ll]2-%{version}*-info %changelog