debian/0000755000000000000000000000000011742277405007177 5ustar debian/changelog0000644000000000000000000001002311742277405011045 0ustar pyglet (1.1.4.dfsg-2build1) precise; urgency=low * Rebuild to drop python2.6 dependencies and provides. -- Matthias Klose Sat, 14 Apr 2012 13:43:33 +0000 pyglet (1.1.4.dfsg-2) unstable; urgency=low * Rebuild for upload to unstable -- Yaroslav Halchenko Tue, 03 May 2011 18:24:43 -0400 pyglet (1.1.4.dfsg-1) experimental; urgency=low * New upstream release (Closes: #532807) * debian/copyright: - converted to DEP5 format - added myself to holders of debian/* * debian/control: - boosted standards version to 3.9.1. BSD license included verbatim in a debian/copyright now - added myself to uploaders * debian/rules: get-orig-sources - not removing materials with included now copyright, free license terms - not pruning tools since script is minimal, written by the pyglet original author, part of the project, thus is covered by project's copyright/license * debian/source/format: switch source format to 3.0 (quilt) * Introduced patches: - up_no_string_exceptions: deduced two types of exceptions appropritate for the context to replace deprecated in 2.6 string exceptions (Closes: #585316) - up_typo_have_getprocaddress: minor typo - up_no_standard_config_available: use find_library first -- workaround the issue for NVidia GLX libraries (Closes: #584548) -- Yaroslav Halchenko Sat, 25 Dec 2010 22:25:44 -0500 pyglet (1.1.2.dfsg-3) UNRELEASED; urgency=low * debian/control - removed Ondrej from Uploaders: thanks for your work! -- Sandro Tosi Fri, 09 Oct 2009 22:56:40 +0200 pyglet (1.1.2.dfsg-2) unstable; urgency=low [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn [ Stephan Peijnik ] * debian/watch - Fixed version mangling. * debian/control - Fixed Recommends for libopenal1 (was: libopenal0a) as reported by debcheck. * debian/copyright - Replaced (C) with copyright sign for Debian packaging work notice. -- Stephan Peijnik Thu, 19 Feb 2009 07:34:06 +0100 pyglet (1.1.2.dfsg-1) unstable; urgency=low * New upstream release. * Updated debian/rules: get-orig-sources now also removes the documentation due to unclean licensing in pyglet-1.1.2. * Added PYGLET_VERSION variable in debian/rules to simplify updating of get-orig-sources. -- Stephan Peijnik Fri, 31 Oct 2008 00:29:13 +0100 pyglet (1.1.1.dfsg.2-1) unstable; urgency=low * Removed examples broken by the removal of non-free files as per the upstream maintainer's request. * Updated debian/copyright: - Removed notices for files not in upstream tarball anymore. - Added myself to copyright holders of Debian packaging. * Updated debian/rules: - Repackaging as pyglet-1.1.1.dfsg.2. -- Stephan Peijnik Tue, 16 Sep 2008 11:48:42 +0200 pyglet (1.1.1.dfsg-1) unstable; urgency=low [ Stephan Peijnik ] * New upstream release (Closes: #494367). * Updated debian/control: - Added myself as uploader. - Updated Standards-Version. * Updated debian/rules: Updated get-orig-sources to remove non-free examples. * Updated debian/TODO: - Removed note about documentation - Added information about non-free files being removed. * Updated debian/watch: Added dversionmangle option. -- Ondrej Certik Sun, 14 Sep 2008 23:56:18 +0200 pyglet (1.0.dfsg-1) unstable; urgency=low [ Michael Hanke ] * Initial release (Closes: #459729). * The whole debian packaging, except the changes described below: [ Ondrej Certik ] * debian/watch fixed to work with the latest pyglet release (1.0) * maintainer changed to Debian Python Modules Team * Vcs-Browser and Vcs-Svn fields changed to the DPMT svn repository * Ondrej Certik added to uploaders * DM-Upload-Allowed: yes field added * get-orig-sources rule added to debian/rules to create the dfsg.orig.tar.gz -- Ondrej Certik Sat, 16 Feb 2008 13:13:35 +0100 debian/rules0000755000000000000000000000254411560100433010244 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- include /usr/share/cdbs/1/rules/debhelper.mk DEB_PYTHON_SYSTEM = pysupport include /usr/share/cdbs/1/class/python-distutils.mk DEB_COMPRESS_EXCLUDE := .py DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG PYGLET_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p' | sed -rne 's,\.dfsg.*$\,,p') get-orig-sources: wget http://pyglet.googlecode.com/files/pyglet-$(PYGLET_VERSION).tar.gz tar xzf pyglet-$(PYGLET_VERSION).tar.gz # Remove examples with unclean licensing. # # Resources (images, sound files, etc.) needed by these examples # have no license attached and thus are non-free. rm -rf pyglet-$(PYGLET_VERSION)/examples/astraea/ rm -rf pyglet-$(PYGLET_VERSION)/examples/noisy/ rm -f pyglet-$(PYGLET_VERSION)/examples/programming_guide/dinosaur.gif rm -f pyglet-$(PYGLET_VERSION)/examples/programming_guide/kitten.jpg # Remove doc/ folder completely -- compiled material which might use # above non-free content. Present in pyglet-1.1.[24]. rm -rf pyglet-$(PYGLET_VERSION)/doc # Remove included log dumps since we are modifying archive anyways rm -f pyglet-$(PYGLET_VERSION)/tests/pyglet.1.log rm -f pyglet-$(PYGLET_VERSION)/examples/crashy tar czf pyglet_$(PYGLET_VERSION).dfsg.orig.tar.gz pyglet-$(PYGLET_VERSION) rm -r pyglet-$(PYGLET_VERSION) pyglet-$(PYGLET_VERSION).tar.gz debian/pyversions0000644000000000000000000000000511560100433011316 0ustar 2.4- debian/python-pyglet.examples0000644000000000000000000000001411560100433013535 0ustar examples/* debian/control0000644000000000000000000000256311560100433010570 0ustar Source: pyglet Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Michael Hanke , Per B. Sederberg , Stephan Peijnik , Yaroslav Halchenko Build-Depends: cdbs, debhelper (>= 5), python-support (>= 0.6), python Standards-Version: 3.9.1 Homepage: http://www.pyglet.org Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyglet/trunk Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyglet/trunk/ XS-DM-Upload-Allowed: yes Package: python-pyglet Architecture: all Depends: ${shlibs:Depends}, ${python:Depends}, python-ctypes | python (>= 2.5), libgtk2.0-0, libgl1 | libgl1-mesa-swx11, libglu1 | libglu1-mesa, ${misc:Depends} Recommends: libasound2 | libopenal1 Provides: ${python:Provides} Description: cross-platform windowing and multimedia library This library provides an object-oriented programming interface for developing games and other visually-rich applications with Python. pyglet has virtually no external dependencies. For most applications and game requirements, pyglet needs nothing else besides Python, simplifying distribution and installation. It also handles multiple windows and fully aware of multi-monitor setups. . pyglet might be seen as an alternative to PyGame. debian/TODO0000644000000000000000000000137411560100433007654 0ustar A permanent TODO for the maintainer is to track the library dependencies. Pyglet does not link to any library but loads them dynamically. Therefore it is the maintainers duty to track the package dependencies. Dependencies as of 1.0beta3: * libasound2 * libopenal0a * libfreetype (libfontconfig1) * libgtk2.0-0 (libx11-6, libxinerama1) * libgl1 * libglu1 Currently only of the ALSA and OPENAL drivers has to be present to fulfill the package dependencies. Package contains examples which use resources, such as sound or image files, wich are explicitly marked as being non-free, so we need to repackage it and remove those directories. Upstream has been notified about this and is working to get these problems solved by the next upstream release. debian/copyright0000644000000000000000000000714411560100433011120 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: pyglet Maintainer: Alex Holkner Source: http://code.google.com/p/pyglet/downloads/list Files: * Copyright: 2006-2009, Alex Holkner Contributors: Blue Box Devices Anthony Baxter Alan Green Richard Jones Tobias Sargeant License: BSD-3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of pyglet nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: pyglet/window/win32/constants.py Copyright: 1994-2001, Mark Hammond Note: derived from Python for Windows Extensions License: BSD-3 Files: pyglet/image/codecs/pypng.py Contributors: Nicko van Someren Copyright: 2006, Johann C. Rocholl Note: derived from png.py License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2007, Per B. Sederberg 2007-2008, Michael Hanke 2008, Ondrej Certik , 2008, Stephan Peijnik 2010, Yaroslav Halchenko License: GPL On Debian GNU/Linux systems, the complete text of the GPL License can be found in `/usr/share/common-licenses/GPL'. debian/pycompat0000644000000000000000000000000211560100433010726 0ustar 2 debian/source/0000755000000000000000000000000011560100433010457 5ustar debian/source/format0000644000000000000000000000001411560100433011665 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000022111560100433010203 0ustar version=3 opts=dversionmangle=s/\.dfsg$// \ http://code.google.com/p/pyglet/ \ http://pyglet.googlecode.com/files/pyglet-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000011560100433010606 5ustar debian/patches/up_no_standard_config_available0000644000000000000000000000243511560100433017062 0ustar Author: neusepoff Origin: http://code.google.com/p/pyglet/issues/detail?id=456#c8 Bug: http://code.google.com/p/pyglet/issues/detail?id=456 Bug-Debian: http://bugs.debian.org/584548 Subject: use find_library first prior adding libraries by a pattern of the name From original patch comments: okay, this has to do with the nvidia package of debian providing the wrong link for the libGL.so alternative (linking to the diversion instead of the right file), see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597452 it doesn't harm most software as these are linked agains libGL.so.1 anyway. but pyglet is trying to load libGL.so first and then falling back to find_library(). I've attached a patch witch solves this by trying to load the library using find_library() first and then falling back to the hardcoded name. --- a/pyglet/lib.py +++ b/pyglet/lib.py @@ -96,7 +96,9 @@ class LibraryLoader(object): platform_names = list(platform_names) if self.platform == 'linux2': - platform_names.extend(['lib%s.so' % n for n in names]) + for name in names: + libname = ctypes.util.find_library(name) + platform_names.append(libname or 'lib%s.so' % name) platform_names.extend(names) for name in platform_names: debian/patches/series0000644000000000000000000000012411560100433012020 0ustar up_no_string_exceptions up_typo_have_getprocaddress up_no_standard_config_available debian/patches/up_no_string_exceptions0000644000000000000000000000162511560100433015504 0ustar From: Yaroslav Halchenko Subject: No strings exceptions is allowed in Python2.6 Types of exceptions were deduced and might be changed by upstream whenever patch gets adopted. Vendor: Debian --- a/pyglet/window/carbon/__init__.py +++ b/pyglet/window/carbon/__init__.py @@ -655,7 +655,7 @@ class CarbonWindow(BaseWindow): # Can occur when mixing with other toolkits, e.g. Tk. # Fixes issue 180. if result not in (eventLoopTimedOutErr, eventLoopQuitErr): - raise 'Error %d' % result + raise WindowException('Error %d' % result) def dispatch_pending_events(self): while self._event_queue: @@ -1356,7 +1356,7 @@ def _create_cfstring(text): def _oscheck(result): if result != noErr: - raise 'Carbon error %d' % result + raise CarbonException('Carbon error %d' % result) return result def _aglcheck(): debian/patches/up_typo_have_getprocaddress0000644000000000000000000000073111560100433016325 0ustar Author: neusepoff Origin: http://code.google.com/p/pyglet/issues/detail?id=456#c8 Subject: minor typo for _have_getprocaddress --- a/pyglet/gl/lib_glx.py +++ b/pyglet/gl/lib_glx.py @@ -56,7 +56,7 @@ try: glXGetProcAddressARB.argtypes = [POINTER(c_ubyte)] _have_getprocaddress = True except AttributeError: - _have_get_procaddress = False + _have_getprocaddress = False def link_GL(name, restype, argtypes, requires=None, suggestions=None): try: debian/compat0000644000000000000000000000000211560100433010355 0ustar 5 debian/docs0000644000000000000000000000002311560100433010025 0ustar README doc/* tools