14
0
forked from pool/python-pygame

- Remove upstreamed patch adjust-surface-mask.patch.

- Switch from %python_{build,install} to %pyproject_{wheel,install} macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygame?expand=0&rev=46
This commit is contained in:
2023-08-12 16:45:08 +00:00
committed by Git OBS Bridge
parent 3a44ab1af6
commit dba0be6d7b
2 changed files with 6 additions and 4 deletions

View File

@@ -200,6 +200,8 @@ Wed Aug 9 21:10:42 UTC 2023 - Dominik George <nik@naturalnet.de>
* manylinux: Add more pythons to be built with by @illume in #3725
* Fix of inverted boolean of borderless window property by @joaquin30 in #3727
* That time numpy was giving me grief by @illume in #3731
- Remove upstreamed patch adjust-surface-mask.patch.
- Switch from %python_{build,install} to %pyproject_{wheel,install} macros.
-------------------------------------------------------------------
Sun May 7 10:54:14 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -26,7 +26,8 @@ URL: https://github.com/pygame/pygame
Source0: https://files.pythonhosted.org/packages/source/p/pygame/pygame-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: bitstream-vera-fonts
BuildRequires: fdupes
BuildRequires: fontconfig
@@ -52,7 +53,6 @@ BuildRequires: pkgconfig(libmpg123)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11)
Requires: fontconfig
Requires: python-numpy
%ifpython2
@@ -100,11 +100,11 @@ chmod a-x docs/licenses/LICENSE.sdl_gfx.txt
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export PORTMIDI_INC_PORTTIME=1
%python_build
%pyproject_wheel
%install
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_install
%pyproject_install
%{python_expand pushd %{buildroot}%{$python_sitearch}
sed -i "s|^#!.*env python.*$|#!%{_bindir}/$python|" pygame/tests/test_utils/png.py
chmod a+x pygame/tests/test_utils/png.py