forked from pool/python-pygame
Accepting request 710330 from devel:languages:python
- version update to 1.9.6 * mixer thread deadlock issue when controlling it from different threads. * pygame.version.vernum now has major, minor, and patch attributes. - added patches Do not test mp3 format. + python-pygame-test-no-mp3.patch OBS-URL: https://build.opensuse.org/request/show/710330 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygame?expand=0&rev=28
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:700d1781c999af25d11bfd1f3e158ebb660f72ebccb2040ecafe5069d0b2c0b6
|
|
||||||
size 4806863
|
|
3
pygame-1.9.6.tar.gz
Normal file
3
pygame-1.9.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:301c6428c0880ecd4a9e3951b80e539c33863b6ff356a443db1758de4f297957
|
||||||
|
size 3223131
|
13
python-pygame-test-no-mp3.patch
Normal file
13
python-pygame-test-no-mp3.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: pygame-1.9.6/test/mixer_music_test.py
|
||||||
|
===================================================================
|
||||||
|
--- pygame-1.9.6.orig/test/mixer_music_test.py 2019-04-25 08:14:48.000000000 +0200
|
||||||
|
+++ pygame-1.9.6/test/mixer_music_test.py 2019-05-20 10:36:59.969907416 +0200
|
||||||
|
@@ -33,7 +33,7 @@ class MixerMusicModuleTest(unittest.Test
|
||||||
|
# Load a music file for playback
|
||||||
|
|
||||||
|
data_fname = example_path('data')
|
||||||
|
- formats = ['mp3', 'ogg', 'wav']
|
||||||
|
+ formats = ['ogg', 'wav']
|
||||||
|
|
||||||
|
for f in formats:
|
||||||
|
path = os.path.join(data_fname, 'house_lo.%s' % f)
|
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 20 08:46:49 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 1.9.6
|
||||||
|
* mixer thread deadlock issue when controlling it from different
|
||||||
|
threads.
|
||||||
|
* pygame.version.vernum now has major, minor, and patch attributes.
|
||||||
|
- added patches
|
||||||
|
Do not test mp3 format.
|
||||||
|
+ python-pygame-test-no-mp3.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 3 14:42:31 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
Mon Sep 3 14:42:31 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pygame
|
# spec file for package python-pygame
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,19 +12,21 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pygame
|
Name: python-pygame
|
||||||
Version: 1.9.4
|
Version: 1.9.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python Module for Interfacing with the SDL Multimedia Library
|
Summary: A Python Module for Interfacing with the SDL Multimedia Library
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: https://github.com/pygame/pygame
|
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
|
||||||
|
# Do not test mp3 format; whe have that support disabled in SDL1
|
||||||
|
Patch0: python-pygame-test-no-mp3.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -87,6 +89,7 @@ This package contains documentation and example programs for Pygame.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pygame-%{version}
|
%setup -q -n pygame-%{version}
|
||||||
|
%patch0 -p1
|
||||||
sed -i 's/\r$//' docs/reST/ref/code_examples/draw_module_example.py
|
sed -i 's/\r$//' docs/reST/ref/code_examples/draw_module_example.py
|
||||||
sed -i 's/\r$//' docs/reST/ref/code_examples/joystick_calls.py
|
sed -i 's/\r$//' docs/reST/ref/code_examples/joystick_calls.py
|
||||||
# Fix wrong-script-interpreter
|
# Fix wrong-script-interpreter
|
||||||
@@ -126,13 +129,13 @@ $python -m pygame.tests.__main__ --exclude opengl --time_out 300
|
|||||||
}
|
}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc WHATSNEW readme.html README.rst
|
%doc README.rst
|
||||||
%license LGPL
|
%license docs/LGPL
|
||||||
%{python_sitearch}/pygame/
|
%{python_sitearch}/pygame/
|
||||||
%{python_sitearch}/pygame-%{version}-py*.egg-info
|
%{python_sitearch}/pygame-%{version}-py*.egg-info
|
||||||
|
|
||||||
%files %{python_files devel}
|
%files %{python_files devel}
|
||||||
%license LGPL
|
%license docs/LGPL
|
||||||
%{python_sysconfig_var INCLUDEPY}/pygame/
|
%{python_sysconfig_var INCLUDEPY}/pygame/
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
|
Reference in New Issue
Block a user