forked from pool/python-PySDL2
Accepting request 1275032 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1275032 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PySDL2?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 30 00:41:39 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Adjust run-time dependencies to avoid old virtual provides.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 13:58:16 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Adjust build-time dependencies so that it builds with SDL3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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 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,11 +43,11 @@ BuildRequires: %{python_module pytest}
|
||||
BuildRequires: libmpg123-0
|
||||
BuildRequires: xorg-x11-server
|
||||
# /SECTION
|
||||
Requires: SDL2 >= 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
|
||||
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user