14
0
forked from pool/python-PySDL2

Accepting request 1098896 from home:munix9:branches:devel:languages:python

- Update to 0.9.16:
  * Updated to wrap new functions and constants in SDL 2.28.0.
  * Added a new method to sdl2.ext.Renderer, Renderer.rcopy(), for
    drawing textures to the renderer with relative alignment.
  * Added a new module, sdl2.ext.input for processing common SDL
    input events in a Pythonic manner.
  * Added a new function sdl2.ext.quit_requested() for checking
    whether an SDL event queue contains any sdl2.SDL_QUIT events.
- Update to 0.9.15:
  * Updated to wrap new functions and constants in SDL 2.26.0.
  * Added a new module sdl2.ext.mouse for showing/hiding/moving/
    retrieving the mouse cursor and querying the current state of
    the mouse buttons.
  * Added indexing/unpacking support to the sdl2.ext.Point and
    sdl2.ext.Rect classes and their float equivalents.
  * Updated sdl2.ext.SpriteFactory.from_image() to allow passing
    PIL.Image.Image objects directly.
  * Improved sdl2.ext.Texture performance.
  * Fixed a bug preventing SDL Points and Rects from being used
    as srcrect or dstrect for sdl2.ext.Renderer.copy().
  * Added a binding for SDL_ResetHint, which was added in SDL
    2.24.0 but got missed in PR #246.
- Adjust fix-tests.patch
- Remove fix-version_test.patch (fixed upstream)
- Remove python-PySDL2.rpmlintrc (obsolete)

OBS-URL: https://build.opensuse.org/request/show/1098896
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=27
This commit is contained in:
2023-07-17 06:39:36 +00:00
committed by Git OBS Bridge
parent d2c494849e
commit 28ee5c8ba2
7 changed files with 52 additions and 150 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PySDL2
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,17 +18,14 @@
%define X_display ":98"
Name: python-PySDL2
Version: 0.9.14
Version: 0.9.16
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
Source99: python-PySDL2.rpmlintrc
# PATCH-FIX-OPENSUSE fix-tests.patch to make test work in chroot env without access to /dev/input
Patch0: fix-tests.patch
# PATCH-FIX-UPSTREAM fix-version_test.patch gh#py-sdl/py-sdl2#248
Patch1: fix-version_test.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}