From bcde32552518f4ec3079fabf11dfc73cb35957935c96f1b6faca72b7b0bc77d3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 28 Apr 2025 13:58:35 +0000 Subject: [PATCH 1/2] - 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 From 578671c09145dd16dbfc9d8ffbac1153a3b653cc2549abeb33c3b2d9623acf35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 30 Apr 2025 06:36:52 +0000 Subject: [PATCH 2/2] Accepting request 1273537 from home:jengelh:branches:devel:languages:python - Adjust run-time dependencies to avoid old virtual provides. - Adjust build-time dependencies so that it builds with SDL3. OBS-URL: https://build.opensuse.org/request/show/1273537 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=36 --- python-PySDL2.changes | 7 ++++++- python-PySDL2.spec | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-PySDL2.changes b/python-PySDL2.changes index 04dcb70..12e4829 100644 --- a/python-PySDL2.changes +++ b/python-PySDL2.changes @@ -1,7 +1,12 @@ +------------------------------------------------------------------- +Wed Apr 30 00:41:39 UTC 2025 - Jan Engelhardt + +- Adjust run-time dependencies to avoid old virtual provides. + ------------------------------------------------------------------- Mon Apr 28 13:58:16 UTC 2025 - Matej Cepl -- Adjust dependencies so that it builds with SDL3. +- Adjust build-time 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 2b75d5a..50f2de2 100644 --- a/python-PySDL2.spec +++ b/python-PySDL2.spec @@ -43,11 +43,11 @@ BuildRequires: %{python_module pytest} BuildRequires: libmpg123-0 BuildRequires: xorg-x11-server # /SECTION -Requires: SDL3 >= 2.0.22 -Requires: SDL2_gfx >= 1.0.4 -Requires: SDL2_image >= 2.6.0 -Requires: SDL2_mixer >= 2.6.0 -Requires: SDL2_ttf >= 2.20.0 +Requires: libSDL2-2_0-0 >= 2.0.22 +Requires: libSDL2_gfx-1_0-0 >= 1.0.4 +Requires: libSDL2_image-2_0-0 >= 2.6.0 +Requires: libSDL2_mixer-2_0-0 >= 2.6.0 +Requires: libSDL2_ttf-2_0-0 >= 2.20.0 BuildArch: noarch %python_subpackages