14
0
forked from pool/python-PySDL2

- Update to 0.9.13:

- Updated to wrap new functions and constants in SDL_ttf
    2.20.0.
  - Updated to wrap new functions and constants in SDL_mixer
    2.6.0.
  - Updated to wrap new functions and constants in SDL_image
    2.6.0.
  - Added experimental bindings for the new functions and
    constants in the SDL 2.23.1 pre-release.
  - Added a new function :func:sdl2.ext.load_svg that allows
    loading simple SVG images at arbitrary resolutions with
    SDL_image 2.6.0 or later.
  - Added bindings for new functions and constants introduced in
    SDL2 2.0.22
  - Added a stable API for accessing the raw ctypes function
    objects for SDL2 functions
  - Various bugfixes (see the project's news.rst for more info)
- Switch off failing tests (gh#py-sdl/py-sdl2#241)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=16
This commit is contained in:
2022-07-29 16:14:57 +00:00
committed by Git OBS Bridge
parent e0ab0957ff
commit 9c7fa542fa
4 changed files with 39 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93e51057d39fd583b80001d42b21d5a3f71e30d489d85924d944b2c7350e2da6
size 736026

3
PySDL2-0.9.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:09ee9181175fa7fd3a7c8b1992f4353ed59ac4118505e9aa7e8dbec42018136f
size 754811

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Jul 29 12:38:06 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 0.9.13:
- Updated to wrap new functions and constants in SDL_ttf
2.20.0.
- Updated to wrap new functions and constants in SDL_mixer
2.6.0.
- Updated to wrap new functions and constants in SDL_image
2.6.0.
- Added experimental bindings for the new functions and
constants in the SDL 2.23.1 pre-release.
- Added a new function :func:sdl2.ext.load_svg that allows
loading simple SVG images at arbitrary resolutions with
SDL_image 2.6.0 or later.
- Added bindings for new functions and constants introduced in
SDL2 2.0.22
- Added a stable API for accessing the raw ctypes function
objects for SDL2 functions
- Various bugfixes (see the project's news.rst for more info)
- Switch off failing tests (gh#py-sdl/py-sdl2#241)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 20 09:55:17 UTC 2022 - Ben Greiner <code@bnavigator.de> Sun Mar 20 09:55:17 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@@ -19,18 +19,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define X_display ":98" %define X_display ":98"
Name: python-PySDL2 Name: python-PySDL2
Version: 0.9.11 Version: 0.9.13
Release: 0 Release: 0
Summary: Python ctypes wrapper around SDL2 Summary: Python ctypes wrapper around SDL2
License: SUSE-Public-Domain License: SUSE-Public-Domain
URL: https://github.com/py-sdl/py-sdl2 URL: https://github.com/py-sdl/py-sdl2
Source: https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: SDL2 >= 2.0.5 BuildRequires: SDL2 >= 2.0.22
BuildRequires: SDL2_gfx >= 1.0.3 BuildRequires: SDL2_gfx >= 1.0.4
BuildRequires: SDL2_image >= 2.0.1 BuildRequires: SDL2_image >= 2.6.0
BuildRequires: SDL2_mixer >= 2.0.1 BuildRequires: SDL2_mixer >= 2.6.0
BuildRequires: SDL2_ttf >= 2.0.14 BuildRequires: SDL2_ttf >= 2.20.0
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
@@ -39,11 +39,11 @@ BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: xorg-x11-server BuildRequires: xorg-x11-server
# /SECTION # /SECTION
Requires: SDL2 >= 2.0.5 Requires: SDL2 >= 2.0.22
Requires: SDL2_gfx >= 1.0.3 Requires: SDL2_gfx >= 1.0.4
Requires: SDL2_image >= 2.0.1 Requires: SDL2_image >= 2.6.0
Requires: SDL2_mixer >= 2.0.1 Requires: SDL2_mixer >= 2.6.0
Requires: SDL2_ttf >= 2.0.14 Requires: SDL2_ttf >= 2.20.0
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -94,11 +94,13 @@ donttest="$donttest or test_SDL_GetPowerInfo"
# python2 env different, pytest arg missing # python2 env different, pytest arg missing
python2_donttest=" or test_SDL_GetBasePath or test_render_on" python2_donttest=" or test_SDL_GetBasePath or test_render_on"
%endif %endif
# gh#py-sdl/py-sdl2#241
donttest="$donttest or sdlmixer_test"
%pytest -rfEs -k "not ($donttest ${$python_donttest})" %pytest -rfEs -k "not ($donttest ${$python_donttest})"
%files %{python_files} %files %{python_files}
%license COPYING.txt %license COPYING.txt
%doc AUTHORS.txt README.md %doc AUTHORS.txt README.md doc/
%{python_sitelib}/sdl2 %{python_sitelib}/sdl2
%{python_sitelib}/PySDL2-%{version}*-info %{python_sitelib}/PySDL2-%{version}*-info