diff --git a/python-pygame.changes b/python-pygame.changes index 3ea6932..f3e17cd 100644 --- a/python-pygame.changes +++ b/python-pygame.changes @@ -200,6 +200,8 @@ Wed Aug 9 21:10:42 UTC 2023 - Dominik George * 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 diff --git a/python-pygame.spec b/python-pygame.spec index 5b27a4b..c32daf1 100644 --- a/python-pygame.spec +++ b/python-pygame.spec @@ -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