forked from pool/python-pyglet
Accepting request 515046 from home:TheBlackCat:branches:devel:languages:python
- Further fix shebangs - Remove pyglet-1.2.4-fix-examples.patch We will fix shebangs dynamically OBS-URL: https://build.opensuse.org/request/show/515046 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=10
This commit is contained in:
@@ -1,300 +0,0 @@
|
||||
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
|
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 7 16:33:50 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Further fix shebangs
|
||||
- Remove pyglet-1.2.4-fix-examples.patch
|
||||
We will fix shebangs dynamically
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 6 02:32:29 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -30,8 +30,6 @@ Source1: %{name}-rpmlintrc
|
||||
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
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -68,7 +66,6 @@ for Windows, Mac OS X and Linux.
|
||||
%setup -q -n pyglet-%{version}
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
|
||||
# Convert to unix line end
|
||||
find -name "*.py" -exec dos2unix "{}" "+"
|
||||
@@ -78,16 +75,18 @@ find -name "*.py" -exec dos2unix "{}" "+"
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%{python_expand cp -r examples examples_%{$python_bin_suffix}
|
||||
find . -name "*.py" -exec sed -i "s|#!/usr/bin/python|#!%__$python|" {} \;
|
||||
%{python_expand cp -Lr examples examples_%{$python_bin_suffix}
|
||||
find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/python$|#!%{__$python}|" {} \;
|
||||
find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" {} \;
|
||||
%fdupes examples_%{$python_bin_suffix}
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG README LICENSE NOTICE RELEASE_NOTES
|
||||
%doc examples_%{python_bin_suffix}/
|
||||
%doc examples_%{python_bin_suffix}
|
||||
%{python_sitelib}/pyglet
|
||||
%{python_sitelib}/pyglet-%{version}-py*.egg-info
|
||||
|
||||
|
Reference in New Issue
Block a user