forked from pool/python-PySDL2
- Add mixer_tests_fix.patch to switch off failing tests
(gh#py-sdl/py-sdl2#241). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=17
This commit is contained in:
@@ -25,7 +25,12 @@ 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 mixer_tests_fix.patch gh#py-sdl/py-sdl2#241 mcepl@suse.com
|
||||
# allow dynamic configuration of libmpg123
|
||||
Patch0: mixer_tests_fix.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: SDL2 >= 2.0.22
|
||||
BuildRequires: SDL2_gfx >= 1.0.4
|
||||
BuildRequires: SDL2_image >= 2.6.0
|
||||
@@ -55,13 +60,14 @@ Python classes and wrappers for common SDL2 functionality.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n PySDL2-%{version}
|
||||
|
||||
sed -i 's/\r$//' AUTHORS.txt COPYING.txt README.md
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -94,8 +100,6 @@ donttest="$donttest or test_SDL_GetPowerInfo"
|
||||
# python2 env different, pytest arg missing
|
||||
python2_donttest=" or test_SDL_GetBasePath or test_render_on"
|
||||
%endif
|
||||
# gh#py-sdl/py-sdl2#241
|
||||
donttest="$donttest or sdlmixer_test"
|
||||
%pytest -rfEs -k "not ($donttest ${$python_donttest})"
|
||||
|
||||
%files %{python_files}
|
||||
|
Reference in New Issue
Block a user