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:
@@ -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
|
* manylinux: Add more pythons to be built with by @illume in #3725
|
||||||
* Fix of inverted boolean of borderless window property by @joaquin30 in #3727
|
* Fix of inverted boolean of borderless window property by @joaquin30 in #3727
|
||||||
* That time numpy was giving me grief by @illume in #3731
|
* 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>
|
Sun May 7 10:54:14 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
@@ -26,7 +26,8 @@ URL: https://github.com/pygame/pygame
|
|||||||
Source0: https://files.pythonhosted.org/packages/source/p/pygame/pygame-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pygame/pygame-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: bitstream-vera-fonts
|
BuildRequires: bitstream-vera-fonts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: fontconfig
|
BuildRequires: fontconfig
|
||||||
@@ -52,7 +53,6 @@ BuildRequires: pkgconfig(libmpg123)
|
|||||||
BuildRequires: pkgconfig(libpng)
|
BuildRequires: pkgconfig(libpng)
|
||||||
BuildRequires: pkgconfig(sdl2)
|
BuildRequires: pkgconfig(sdl2)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRequires: pkgconfig(x11)
|
|
||||||
Requires: fontconfig
|
Requires: fontconfig
|
||||||
Requires: python-numpy
|
Requires: python-numpy
|
||||||
%ifpython2
|
%ifpython2
|
||||||
@@ -100,11 +100,11 @@ chmod a-x docs/licenses/LICENSE.sdl_gfx.txt
|
|||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
export PORTMIDI_INC_PORTTIME=1
|
export PORTMIDI_INC_PORTTIME=1
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%python_install
|
%pyproject_install
|
||||||
%{python_expand pushd %{buildroot}%{$python_sitearch}
|
%{python_expand pushd %{buildroot}%{$python_sitearch}
|
||||||
sed -i "s|^#!.*env python.*$|#!%{_bindir}/$python|" pygame/tests/test_utils/png.py
|
sed -i "s|^#!.*env python.*$|#!%{_bindir}/$python|" pygame/tests/test_utils/png.py
|
||||||
chmod a+x pygame/tests/test_utils/png.py
|
chmod a+x pygame/tests/test_utils/png.py
|
||||||
|
Reference in New Issue
Block a user