forked from pool/python-pyglet
Accepting request 513624 from home:kkirill:branches:devel:languages:python
- fix build for oS:Factory (fix examples) - make Brain Workshop work with system pyglet and latest python2 (fix "import Image") - add WMClass to have a proper application name instead of Unknown OBS-URL: https://build.opensuse.org/request/show/513624 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyglet
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@@ -27,6 +27,12 @@ Group: Development/Languages/Python
|
||||
Url: https://bitbucket.org/pyglet/pyglet
|
||||
Source0: http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE pyglet-1.2.4-fix-image-import.patch -- fix "import Image"
|
||||
Patch0: pyglet-1.2.4-fix-image-import.patch
|
||||
# PATCH-FEATURE-UPSTREAM pyglet-1.2.4-add-wmclass.patch -- https://bitbucket.org/pyglet/pyglet/issues/92
|
||||
Patch1: pyglet-1.2.4-add-wmclass.patch
|
||||
# PATCH-FIX-UPSTREAM pyglet-1.2.4-fix-examples.patch -- fix intrepreter shebang
|
||||
Patch2: pyglet-1.2.4-fix-examples.patch
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
@@ -65,6 +71,9 @@ for Windows, Mac OS X and Linux.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{oname}-%{version}
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
|
||||
# Convert to unix line end
|
||||
find -name "*.py" -exec dos2unix "{}" "+"
|
||||
|
Reference in New Issue
Block a user