14
0
forked from pool/python-PySDL2

Accepting request 1250129 from home:mcalabkova:branches:devel:languages:python:adi

- Update to 0.9.17
  * Updated to wrap new functions and constants in SDL 2.30.10.
  * Updated to wrap new functions and constants in SDL_mixer 2.8.0
  * Updated to wrap new function in SDL_image 2.8.0.
  * Added a new function sdl2.ext.get_key_state for checking if a given 
    key is currently down or up independently of the SDL event queue.
- Drop merged patches:
  * fix-tests-SDL_GetError.patch
  * fix-partially-resolve-video_test.patch
  * fix-test-SDL_hid_enumerate.patch

OBS-URL: https://build.opensuse.org/request/show/1250129
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=33
This commit is contained in:
2025-03-10 06:47:59 +00:00
committed by Git OBS Bridge
parent de884e4146
commit f1733da240
7 changed files with 22 additions and 444 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PySDL2
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,19 +17,14 @@
%define X_display ":98"
%define lname pysdl2
Name: python-PySDL2
Version: 0.9.16
Version: 0.9.17
Release: 0
Summary: Python ctypes wrapper around SDL2
License: SUSE-Public-Domain
URL: https://github.com/py-sdl/py-sdl2
Source: https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-tests-SDL_GetError.patch -- based on commit 1c865e3
Patch0: https://github.com/py-sdl/py-sdl2/commit/1c865e3f751e678f3ad2d8f3fca17a0755fbeaf7.patch#/fix-tests-SDL_GetError.patch
# PATCH-FIX-UPSTREAM fix-test-SDL_hid_enumerate.patch -- based on commit d7c0604
Patch1: https://github.com/py-sdl/py-sdl2/commit/d7c0604381f6cbefa2c8b51c84b879e2f927e91e.patch#/fix-test-SDL_hid_enumerate.patch
# PATCH-FIX-UPSTREAM fix-partially-resolve-video_test.patch -- based on commit ed28ea6
Patch2: https://github.com/py-sdl/py-sdl2/commit/ed28ea6305dede1b6ba046e36ddae9ba2016b62e.patch#/fix-partially-resolve-video_test.patch
Source: https://files.pythonhosted.org/packages/source/p/%{lname}/%{lname}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -62,7 +57,7 @@ the built-in ctypes module to interface with SDL2, and provides simple
Python classes and wrappers for common SDL2 functionality.
%prep
%autosetup -p1 -n PySDL2-%{version}
%autosetup -p1 -n %{lname}-%{version}
sed -i 's/\r$//' AUTHORS.txt COPYING.txt README.md
find . -name *DS_Store -delete