14
0
forked from pool/python-pyglet
Files
python-pyglet/pyglet-1.2.4-fix-examples.patch
Todd R b721373fcd 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
2017-08-01 16:10:53 +00:00

301 lines
9.8 KiB
Diff

Index: examples/apple_remote.py
===================================================================
--- examples/apple_remote.py.orig
+++ examples/apple_remote.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
'''
'''
Index: examples/events.py
===================================================================
--- examples/events.py.orig
+++ examples/events.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/fixed_resolution.py
===================================================================
--- examples/fixed_resolution.py.orig
+++ examples/fixed_resolution.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/font_comparison.py
===================================================================
--- examples/font_comparison.py.orig
+++ examples/font_comparison.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/graphics.py
===================================================================
--- examples/graphics.py.orig
+++ examples/graphics.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/html_label.py
===================================================================
--- examples/html_label.py.orig
+++ examples/html_label.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/image_convert.py
===================================================================
--- examples/image_convert.py.orig
+++ examples/image_convert.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/image_display.py
===================================================================
--- examples/image_display.py.orig
+++ examples/image_display.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/input.py
===================================================================
--- examples/input.py.orig
+++ examples/input.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
'''
'''
Index: examples/joystick.py
===================================================================
--- examples/joystick.py.orig
+++ examples/joystick.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
'''
'''
Index: examples/media_info.py
===================================================================
--- examples/media_info.py.orig
+++ examples/media_info.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
'''Print details of a media file that pyglet can open (requires AVbin).
Index: examples/media_player.py
===================================================================
--- examples/media_player.py.orig
+++ examples/media_player.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/multiple_windows.py
===================================================================
--- examples/multiple_windows.py.orig
+++ examples/multiple_windows.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/opengl.py
===================================================================
--- examples/opengl.py.orig
+++ examples/opengl.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/opengl_3.py
===================================================================
--- examples/opengl_3.py.orig
+++ examples/opengl_3.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# $Id:$
'''In order to use the new features of OpenGL 3, you must explicitly create
Index: examples/show_input.py
===================================================================
--- examples/show_input.py.orig
+++ examples/show_input.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
'''Graphically show all devices available via the pyglet.input interface.
Index: examples/tablet.py
===================================================================
--- examples/tablet.py.orig
+++ examples/tablet.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# $Id:$
import pyglet
Index: examples/text_input.py
===================================================================
--- examples/text_input.py.orig
+++ examples/text_input.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
'''Demonstrates basic use of IncrementalTextLayout and Caret.
Index: examples/timer.py
===================================================================
--- examples/timer.py.orig
+++ examples/timer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/video.py
===================================================================
--- examples/video.py.orig
+++ examples/video.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/window_platform_event.py
===================================================================
--- examples/window_platform_event.py.orig
+++ examples/window_platform_event.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/astraea/astraea.py
===================================================================
--- examples/astraea/astraea.py.orig
+++ examples/astraea/astraea.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/astraea/setup.py
===================================================================
--- examples/astraea/setup.py.orig
+++ examples/astraea/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/noisy/noisy.py
===================================================================
--- examples/noisy/noisy.py.orig
+++ examples/noisy/noisy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/programming_guide/animation.py
===================================================================
--- examples/programming_guide/animation.py.orig
+++ examples/programming_guide/animation.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/programming_guide/events.py
===================================================================
--- examples/programming_guide/events.py.orig
+++ examples/programming_guide/events.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/programming_guide/hello_world.py
===================================================================
--- examples/programming_guide/hello_world.py.orig
+++ examples/programming_guide/hello_world.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/programming_guide/image_viewer.py
===================================================================
--- examples/programming_guide/image_viewer.py.orig
+++ examples/programming_guide/image_viewer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/programming_guide/window_subclass.py
===================================================================
--- examples/programming_guide/window_subclass.py.orig
+++ examples/programming_guide/window_subclass.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
Index: examples/soundspace/soundspace.py
===================================================================
--- examples/soundspace/soundspace.py.orig
+++ examples/soundspace/soundspace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner