forked from pool/python-PySDL2
- 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
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 28 13:58:16 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Adjust dependencies so that it builds with SDL3.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 4 15:07:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Tue Mar 4 15:07:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -28,13 +28,14 @@ Source: https://files.pythonhosted.org/packages/source/p/%{lname}/%{lnam
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
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: fdupes
|
||||||
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
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
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module Pillow}
|
BuildRequires: %{python_module Pillow}
|
||||||
@@ -42,7 +43,7 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: libmpg123-0
|
BuildRequires: libmpg123-0
|
||||||
BuildRequires: xorg-x11-server
|
BuildRequires: xorg-x11-server
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: SDL2 >= 2.0.22
|
Requires: SDL3 >= 2.0.22
|
||||||
Requires: SDL2_gfx >= 1.0.4
|
Requires: SDL2_gfx >= 1.0.4
|
||||||
Requires: SDL2_image >= 2.6.0
|
Requires: SDL2_image >= 2.6.0
|
||||||
Requires: SDL2_mixer >= 2.6.0
|
Requires: SDL2_mixer >= 2.6.0
|
||||||
@@ -75,12 +76,12 @@ export SDL_AUDIODRIVER=dummy
|
|||||||
export SDL_RENDER_DRIVER=software
|
export SDL_RENDER_DRIVER=software
|
||||||
export PYTHONFAULTHANDLER=1
|
export PYTHONFAULTHANDLER=1
|
||||||
|
|
||||||
%pytest -rfEs
|
%pytest -rfEs -k 'not (test_SDL_SetWindowDisplayMode or test_SDL_SetWindowFullscreen or test_SDL_SetHint)'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
%doc AUTHORS.txt README.md doc/
|
%doc AUTHORS.txt README.md doc/
|
||||||
%{python_sitelib}/sdl2
|
%{python_sitelib}/sdl2
|
||||||
%{python_sitelib}/PySDL2-%{version}*-info
|
%{python_sitelib}/[Pp]y[Ss][Dd][Ll]2-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user