From b213527c3cb68e9435a589951244e56b3da9a12b65c8adda25bd24f8fbbd3237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 13 Jun 2018 16:47:41 +0000 Subject: [PATCH] Accepting request 616582 from home:TheBlackCat:branches:devel:languages:python - Get tests working. OBS-URL: https://build.opensuse.org/request/show/616582 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygame?expand=0&rev=17 --- python-pygame.changes | 5 +++++ python-pygame.spec | 42 ++++++++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/python-pygame.changes b/python-pygame.changes index 40fbce0..a3a178e 100644 --- a/python-pygame.changes +++ b/python-pygame.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 13 14:54:51 UTC 2018 - toddrme2178@gmail.com + +- Get tests working. + ------------------------------------------------------------------- Thu Aug 17 22:13:05 UTC 2017 - jengelh@inai.de diff --git a/python-pygame.spec b/python-pygame.spec index 5c024cd..9c7829f 100644 --- a/python-pygame.spec +++ b/python-pygame.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygame # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -# There are font issues in the test environment -%bcond_with test %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pygame @@ -27,22 +25,32 @@ Source0: https://files.pythonhosted.org/packages/source/P/Pygame/pygame-% Summary: A Python Module for Interfacing with the SDL Multimedia Library License: LGPL-2.1+ Group: Development/Libraries/Python -Url: http://www.pygame.org/ +Url: https://github.com/pygame/pygame BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} -BuildRequires: SDL_image-devel -BuildRequires: SDL_mixer-devel -BuildRequires: SDL_ttf-devel +BuildRequires: config(fluid-soundfont-gm) +BuildRequires: pkgconfig(SDL_image) +BuildRequires: pkgconfig(SDL_mixer) +BuildRequires: pkgconfig(SDL_ttf) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(sdl) +BuildRequires: pkgconfig(x11) BuildRequires: fdupes BuildRequires: fontconfig -BuildRequires: freetype2-devel -BuildRequires: libjpeg-devel -BuildRequires: libpng-devel +BuildRequires: libtiff-devel BuildRequires: libv4l-devel >= 0.8.4 BuildRequires: portmidi-devel BuildRequires: python-rpm-macros BuildRequires: xorg-x11 +BuildRequires: xorg-x11-devel +BuildRequires: xorg-x11-fonts +BuildRequires: xorg-x11-fonts-100dpi +BuildRequires: xorg-x11-fonts-75dpi +BuildRequires: xorg-x11-fonts-core +BuildRequires: xorg-x11-fonts-cyrillic Requires: fontconfig Requires: python-numpy %ifpython2 @@ -94,6 +102,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build %install +export CFLAGS="%{optflags} -fno-strict-aliasing" %python_install %{python_expand pushd %{buildroot}%{$python_sitearch} sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" pygame/tests/test_utils/png.py @@ -109,29 +118,26 @@ $python -O -m compileall -d %{$python_sitearch} pygame/tests/test_utils/ popd } -%if %{with test} %check export SDL_VIDEODRIVER=dummy export SDL_AUDIODRIVER=disk +export LANG=en_US.UTF-8 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pygame.tests.__main__ --exclude opengl --time_out 300 } -%endif %files %{python_files} -%defattr(-,root,root) -%doc LGPL WHATSNEW readme.html readme.rst +%doc WHATSNEW readme.html readme.rst +%license LGPL %{python_sitearch}/pygame/ %{python_sitearch}/pygame-%{version}-py*.egg-info %files %{python_files devel} -%defattr(-,root,root) -%doc LGPL +%license LGPL %{python_sysconfig_var INCLUDEPY}/pygame/ %files -n %{name}-doc -%defattr(-,root,root) -%doc LGPL +%license LGPL %doc docs/ %doc examples/