forked from pool/python-pygame
Accepting request 704173 from home:pgajdos
- 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/704173 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygame?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
0e8f72c450
commit
26cc9de4ef
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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)
|
||||
# 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-%{**}}
|
||||
Name: python-pygame
|
||||
Version: 1.9.4
|
||||
Version: 1.9.6
|
||||
Release: 0
|
||||
Summary: A Python Module for Interfacing with the SDL Multimedia Library
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/pygame/pygame
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/pygame/pygame-%{version}.tar.gz
|
||||
# Do not test mp3 format.
|
||||
Patch0: python-pygame-test-no-mp3.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -87,6 +89,7 @@ This package contains documentation and example programs for Pygame.
|
||||
|
||||
%prep
|
||||
%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/joystick_calls.py
|
||||
# Fix wrong-script-interpreter
|
||||
@@ -126,13 +129,13 @@ $python -m pygame.tests.__main__ --exclude opengl --time_out 300
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%doc WHATSNEW readme.html README.rst
|
||||
%license LGPL
|
||||
%doc README.rst
|
||||
%license docs/LGPL
|
||||
%{python_sitearch}/pygame/
|
||||
%{python_sitearch}/pygame-%{version}-py*.egg-info
|
||||
|
||||
%files %{python_files devel}
|
||||
%license LGPL
|
||||
%license docs/LGPL
|
||||
%{python_sysconfig_var INCLUDEPY}/pygame/
|
||||
|
||||
%files -n %{name}-doc
|
||||
|
Reference in New Issue
Block a user