--- soya-0.14.orig/debian/control +++ soya-0.14/debian/control @@ -0,0 +1,23 @@ +Source: soya +Section: python +Priority: optional +Maintainer: Vincent Bernat +Uploaders: Debian Python Modules Team +Build-Depends: cdbs, debhelper, python-all-dev, python-support, quilt, patchutils (>= 0.2.25), cdbs (>= 0.4.27), libsdl1.2-dev, libcal3d12-dev, libglu1-mesa-dev | libglu-dev, libfreetype6-dev, libpng12-dev, libglew1.5-dev, libode-sp-dev, libopenal-dev (>= 0.2005080600-2), libalut-dev, python-pyrex (>= 0.9.7.2) +Standards-Version: 3.8.3 +Homepage: http://home.gna.org/oomadness/en/soya/ +Vcs-Svn: svn://svn.debian.org/python-modules/packages/soya/trunk +Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/soya/trunk/?op=log + +Package: python-soya +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-imaging-tk, python-editobj (>= 0.5.7-4), python-twisted-core, ttf-freefont, python-elementtree, ${misc:Depends} +Suggests: python-soya-doc +Provides: ${python:Provides} +Description: high level 3D engine for Python + Soya 3D is a high level 3D engine for Python. It relies on OpenGL and + SDL. It is designed with games in mind, and written partly in Python + and partly in C; the goal is to provide a full architecture for making + free (GPL) games of professional quality entirely in Python. + Soya can also render on PyGame surfaces ! + --- soya-0.14.orig/debian/rules +++ soya-0.14/debian/rules @@ -0,0 +1,30 @@ +#!/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 +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +DEB_COMPRESS_EXCLUDE := .py + +# In order to regenerate 'debian/control' : +# DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean +# Then check manually if everything's ok + +install/python-soya:: + # fix unnecessary versionned shebang + sed -i 's/^#! *\/usr\/bin\/python[0-9.]\+/#! \/usr\/bin\/python/' debian/$(cdbs_curpkg)/usr/bin/* + # move data to usr/share + mv debian/$(cdbs_curpkg)/usr/lib/python$(cdbs_python_current_version)/site-packages/soya/data/* \ + debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg) + rm -rf debian/$(cdbs_curpkg)/usr/lib/python*/site-packages/soya/data + # avoid font duplication + rm debian/$(cdbs_curpkg)/usr/share/python-soya/FreeSans.ttf + dh_link -p$(cdbs_curpkg) usr/share/fonts/truetype/freefont/FreeSans.ttf \ + usr/share/python-soya/FreeSans.ttf + # remove unneeded execute bit + find debian/$(cdbs_curpkg)/usr/share/ -type f -exec chmod -R a-x {} \; + +clean:: + rm -f debian/pycompat --- soya-0.14.orig/debian/dirs +++ soya-0.14/debian/dirs @@ -0,0 +1 @@ +usr/share/python-soya --- soya-0.14.orig/debian/compat +++ soya-0.14/debian/compat @@ -0,0 +1 @@ +5 --- soya-0.14.orig/debian/control.in +++ soya-0.14/debian/control.in @@ -0,0 +1,23 @@ +Source: soya +Section: python +Priority: optional +Maintainer: Vincent Bernat +Uploaders: Debian Python Modules Team +Build-Depends: @cdbs@, libsdl1.2-dev, libcal3d12-dev, libglu1-mesa-dev | libglu-dev, libfreetype6-dev, libpng12-dev, libglew1.5-dev, libode-sp-dev, libopenal-dev (>= 0.2005080600-2), libalut-dev, python-pyrex (>= 0.9.7.2) +Standards-Version: 3.8.3 +Homepage: http://home.gna.org/oomadness/en/soya/ +Vcs-Svn: svn://svn.debian.org/python-modules/packages/soya/trunk +Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/soya/trunk/?op=log + +Package: python-soya +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-imaging-tk, python-editobj (>= 0.5.7-4), python-twisted-core, ttf-freefont, python-elementtree, ${misc:Depends} +Suggests: python-soya-doc +Provides: ${python:Provides} +Description: high level 3D engine for Python + Soya 3D is a high level 3D engine for Python. It relies on OpenGL and + SDL. It is designed with games in mind, and written partly in Python + and partly in C; the goal is to provide a full architecture for making + free (GPL) games of professional quality entirely in Python. + Soya can also render on PyGame surfaces ! + --- soya-0.14.orig/debian/copyright +++ soya-0.14/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Marc Dequènes (Duck) on +Wed, 14 May 2003 01:20:19 +0200. + +It was downloaded from http://home.gna.org/oomadness/en/soya/ + +Upstream Author: Jiba (LAMY Jean-Baptiste) , BLam (LAMY + Bertrand) , LunacyMaze (GHISLAIN Mary) + +Copyright: + + Soya3D is copyright (c) 2002-2003 Jean-Baptiste LAMY + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + --- soya-0.14.orig/debian/manpages +++ soya-0.14/debian/manpages @@ -0,0 +1 @@ +manpage/man1/soya_editor.1 --- soya-0.14.orig/debian/watch +++ soya-0.14/debian/watch @@ -0,0 +1,4 @@ +version=2 +http://download.gna.org/soya/ \ + Soya-([\d.]+).tar.bz2 \ + debian uupdate --- soya-0.14.orig/debian/changelog +++ soya-0.14/debian/changelog @@ -0,0 +1,465 @@ +soya (0.14-4build1) lucid; urgency=low + + * Rebuild for libode transition. + + -- Roberto D'Auria Sun, 10 Jan 2010 15:55:13 +0100 + +soya (0.14-4) unstable; urgency=low + + * Use (freetype|ode)-config when compiling and linking to + lib(freetype|ode). Closes: #521754. + * Depends on libode-sp-dev instead of libode-dev since soya only works + with single precision. + * Add a patch from Jakub Wilk to fix compilation with new pyrex. Closes: #533922. + * Bump Standards-Version to 3.8.3. + + -- Vincent Bernat Sat, 17 Oct 2009 11:57:22 +0200 + +soya (0.14-3) unstable; urgency=low + + * Upload to unstable. + * Fix FTBFS with python-support from experimental. Closes: #517310. + * Bump Standards-Version to 3.8.1. + * Some lintian fixes: + + debian/copyright refers to /usr/share/common-licenses/GPL-2 + + add description to each patch + + add ${misc:Depends} + + -- Vincent Bernat Fri, 20 Mar 2009 20:16:29 +0100 + +soya (0.14-2) experimental; urgency=low + + [ Vincent Bernat ] + * Depends on python-elementtree and add a patch to be able to use + elementtree from Python 2.5 (Closes: #500368). + * Do not ship debian/pycompat by removing it in clean target of + debian/rules, thanks to Iain Lane (Closes: #505001). + + [ Sandro Tosi ] + * debian/control + - switch Vcs-Browser field to viewsvn + + -- Vincent Bernat Thu, 20 Nov 2008 19:50:59 +0100 + +soya (0.14-1) experimental; urgency=low + + * New upstream release (Closes: #491194) + * Adopt the package. + * Add VCS fields in debian/control. + * Switch to Standards-Version 3.8.0. No changes required. + * Remove unneeded debian/pycompat. + * Add a patch to enable pyrex compilation even if we don't compile from + SVN. + + -- Vincent Bernat Mon, 01 Sep 2008 20:35:01 +0200 + +soya (0.13.2-5) unstable; urgency=high + + * Applied patch from Peter De Wachter to use openal audio device + autodetection, as the device naming scheme changed, resulting in + application crash when sound is initialized (Closes: #493163). + * Applied patch from Peter De Wachter (thanks a lot) to fix build with + newer pyrex, and reactivated pyrex code build instead of relying + upon precompiled code (which was a way to save buildd resources) + (Closes: #496694). Enforced the pyrex version to avoid a nasty bug + in generated code. + * Replaced Build-Depends on libglu1-xorg-dev with its successor + libglu1-mesa-dev. + + -- Marc Dequènes (Duck) Fri, 29 Aug 2008 04:04:31 +0200 + +soya (0.13.2-4) unstable; urgency=high + + * Rebuilt for unadvertised libglew transition (1.4->1.5), making this + package uninstallable (updated Build-Depends) (priority high). + * Moved homepage information to new control field. + * Increased Standards-Version (no changes). + * Avoided duplicate font 'FreeSans.ttf' by adding a depends on 'ttf- + freefont' and a symlink to replace the upstream file (patch + suggested by Jérôme Guelfucci) (Closes: #459202). + + -- Marc Dequènes (Duck) Sun, 02 Mar 2008 18:46:32 +0100 + +soya (0.13.2-3) unstable; urgency=low + + * Rebuild with updated Build-Depends because of unadvertised cal3d + transition (Closes: #432426). + + -- Marc Dequènes (Duck) Tue, 10 Jul 2007 22:12:01 +0200 + +soya (0.13.2-2) unstable; urgency=high + + * Added missing dependency (python-twisted-core). + + -- Marc Dequènes (Duck) Tue, 10 Jul 2007 10:20:36 +0200 + +soya (0.13.2-1) unstable; urgency=low + + * New upstream release. + + -- Marc Dequènes (Duck) Sun, 01 Jul 2007 12:59:21 +0200 + +soya (0.13.1-1) UNRELEASED; urgency=low + + * New upstream release: + + removed obsolete build_ode_module patch. + + removed obsolete '--dont-build-ode' build option. + + patched to remove useless shebang in 'q3bsp2soya.py'. + + building with needed Ode >= 0.6 in experimental. + * Removed useless Recommends on python-openal (sound support with + OpenAL was integrated in 0.12). + * Removed obsolete Conflicts / Replaces / Provides as Etch is + released. + + -- Marc Dequènes (Duck) Tue, 19 Jun 2007 02:35:24 +0200 + +soya (0.12-2) unstable; urgency=low + + * The "working too late always leads to missed things" release. + * Fixed missing build dependencies needed for newly integrated sound + support with OpenAL (Closes: 380697). + + -- Marc Dequènes (Duck) Tue, 1 Aug 2006 10:49:50 +0200 + +soya (0.12-1) unstable; urgency=low + + * New upstream release: + + fixed crashes on 64 bits architectures (thanks to the nice debug work of + Vincent Fourmond) (Closes: #281348). + + fixed a minor syntax warning (Closes: #325540). + * Conflicts with incompatible versions of slune and balazar. + + -- Marc Dequènes (Duck) Mon, 31 Jul 2006 22:28:50 +0200 + +soya (0.11.2+0.12rc1-1) UNRELEASED; urgency=low + + * New upstream snapshot version. + + -- Marc Dequènes (Duck) Sat, 15 Jul 2006 19:58:10 +0200 + +soya (0.11.2-2) unstable; urgency=low + + * Fixed unnecessary versionned shebang for Soya editor. + + -- Marc Dequènes (Duck) Tue, 27 Jun 2006 03:04:59 +0200 + +soya (0.11.2-1) unstable; urgency=low + + * New upstream release. + * Refreshed build_ode_module.patch. + * Fixing rights for convertion scripts is not necessary any more. + * Comply with new policy (Closes: #373551). + * Switched to debhelper compat 5. + * Fixed watch file to avoid beta-release versions match. + * Now suggest python-tofu (network engine). + * Removed silly build-dependency on python-editobj. + + -- Marc Dequènes (Duck) Mon, 19 Jun 2006 20:09:42 +0200 + +soya (0.10.5-2) unstable; urgency=low + + * Fixed packaging layout: data in '/usr/share/python-soya/' are not + editor-specific but necessary for any Soya usage (the -editor + package is now split to create a -common ; this is necessary to + fulfill editor's needs without creating circular dependencies). + * Increased Standards-Version to 3.7.2.0 (no changes). + + -- Marc Dequènes (Duck) Mon, 15 May 2006 01:04:57 +0200 + +soya (0.10.5-1) unstable; urgency=low + + * New upstream release. + * Entering the Python Modules Packaging Team. + * Updated URL in 'debian/copyright'. + * Added Homepage to package description. + + -- Marc Dequènes (Duck) Thu, 11 May 2006 22:53:13 +0200 + +soya (0.10.4-1) unstable; urgency=low + + * New upstream release. + * Updated build_ode_module.patch (pyrex regeneration not needed + anymore). + * Increased Standards-Version to 3.7.0.0 (no changes). + + -- Marc Dequènes (Duck) Wed, 3 May 2006 01:49:35 +0200 + +soya (0.10.2-2) UNRELEASED; urgency=low + + * Compiled for Python 2.3 & 2.4 and moved editor in a specific + package (2.5 is not possible because python2.5-imaging-tk is + missing). + * Switched patch management to Quilt. + * Added 'no_bytecompilation.patch' to avoid + bytecompilation/optimization (Thanks to Arnau). + * Use Ode again (modified patch to allow correct link with libode, + deactivated build of shipped libode with build option, regenerated + _ode.c with pyrex). + * Removed dependency on python-opengl (which was in fact _never_ + needed, i should stop smoking my curtains...). + * Updated URL in 'debian/copyright'. + * Added Homepage to package description. + + -- Marc Dequènes (Duck) Thu, 6 Apr 2006 00:53:57 +0200 + +soya (0.10.2-1) unstable; urgency=low + + * New upstream release. + * Corrected 'debian/rules' to use $(PYTHON_CURRENT_VER) everywhere as + suggested by Stefan Potyra (Closes: #339692). + * Increased Standards-Version to 3.6.2.2 (no changes). + * Build-depends/Depends on newer python-editobj (new features + required). + * Removed obsolete patch '02_pyrex_regen.patch'. + * Added execution rights to 'label3d.py'. + + -- Marc Dequènes (Duck) Fri, 31 Mar 2006 02:06:35 +0200 + +soya (0.10.1-3) unstable; urgency=low + + * Fixed openGL build dependencies. + + -- Marc Dequènes (Duck) Sat, 15 Oct 2005 12:13:50 +0200 + +soya (0.10.1-2) unstable; urgency=low + + * Updated libcal3d build-dependency (Closes: #328163). + * Deactivated DEB_AUTO_UPDATE_DEBIAN_CONTROL mechanism (follow + instructions in 'debian/rule' to regenerate 'debian/control'). + * Updated FSF postal address in 'debian/copyright'. + + -- Marc Dequènes (Duck) Sat, 15 Oct 2005 00:07:31 +0200 + +soya (0.10.1-1) unstable; urgency=low + + * New upstream release. + * Removed obsolete Conflicts/Replaces. + * Updated Standards-Version (no changes needed). + * Recreated pyrex generated files to build with GCC 4 (in + '02_pyrex_regen.patch') (Closes: #300523). + * Deactivated ODE support (see #297924). + + -- Marc Dequènes (Duck) Sun, 28 Aug 2005 14:46:49 +0200 + +soya (0.9.2-1) unstable; urgency=low + + * New upstream release. + + -- Marc Dequènes (Duck) Sun, 30 Jan 2005 09:55:06 +0100 + +soya (0.9.1-3) unstable; urgency=high + + * Added patch from Kurt Roeckx to use the pic static ode library + (temporary solution before ode provide a stable ABI with a dynamic + library, or some architectures -- where linker is unable to use the + non-pic one -- are rejected) (Closes: #286828). + + -- Marc Dequènes (Duck) Sun, 23 Jan 2005 19:27:33 +0100 + +soya (0.9.1-2) unstable; urgency=high + + * Rebuilt using 'libcal3d10-dev' instead of 'libcal3d-dev' because the + binary pkg name changed and now include dynamic library but + maintainer forgot about transition path (see #286251)(FTBFS, thus + high urgency)(Closes: #286197). + + -- Marc Dequènes (Duck) Tue, 21 Dec 2004 23:00:46 +0100 + +soya (0.9.1-1) unstable; urgency=low + + * New Upstream release. + * CDBS tweaks. + * Now build-depending on 'libode-dev'. + * Increased Standards-Version to 3.6.1.1 (no changes needed). + + -- Marc Dequènes (Duck) Wed, 15 Dec 2004 01:33:43 +0100 + +soya (0.8.2-1) unstable; urgency=low + + * New upstream release. + + -- Marc Dequènes (Duck) Sun, 24 Oct 2004 16:08:50 +0200 + +soya (0.8.1-1) experimental; urgency=low + + * New upstream release. + * Removed '01_setup_copy_noarch.patch' now integrated upstream. + * Removed '02_setup_buggy.patch' not necessary anymore. + + -- Marc Dequènes (Duck) Sun, 17 Oct 2004 19:31:48 +0200 + +soya (0.7c-1) unstable; urgency=low + + * New upstream release. + * Added watch file. + * Patched buggy 'setup.py'. + + -- Marc Dequènes (Duck) Sat, 7 Aug 2004 18:42:01 +0200 + +soya (0.7-2) unstable; urgency=low + + * Corrected typo errors in description (Closes: #260570). + * Updated upstream list and URL. + * Avoid clean rule failure using 's/rm/rm -f/'. + + -- Marc Dequènes (Duck) Sat, 7 Aug 2004 14:13:51 +0200 + +soya (0.7-1) unstable; urgency=low + + * New upstream release. + * Documentation is now in soya-doc source package. + * The 'openal4soya.py' script moved from 'pyopenal' pkg, so added + Replaces. + * Removed unuseful patches and regenerated + '01_setup_copy_noarch.patch' (mostly because soya now uses pyrex). + * Note : 'convert_to_new_format' script is no more included, neither + upstream nor in this pkg. + + -- Marc Dequènes (Duck) Mon, 12 Jul 2004 00:02:02 +0200 + +soya (0.6.1b-3) unstable; urgency=low + + * Package rearrangement to comply with python policy (Build-Depends & + Depends changes, removal of 'python2.3-soya, ...) (Closes FTBFS). + + -- Marc Dequènes (Duck) Thu, 8 Jul 2004 01:09:59 +0200 + +soya (0.6.1b-2) unstable; urgency=low + + * Rebuilt with corrected libcal3d to remove non-pic code from soya + (see #245242 for more details). + + -- Marc Dequènes (Duck) Sun, 16 May 2004 04:14:02 +0200 + +soya (0.6.1b-1) unstable; urgency=medium + + * Urgency 'medium' because pkg is broken. + * Tightened build dependency on libcal3d-dev, now only packaging + static library, and rebuild against it as soya was broken (Closes: + #244818). + * Switched to CDBS. + * Renamed top source directory. + * Removed 'debian/docs' as CDBS installs 'README' automagically. + * Split patches out of '.diff.gz'. + * Added patch from Michel Daenzer to correct part of endianness + problem (see #228495). + * Corrected pkg description : s/our goal/the goal/ as it is not + Debian's goal (advice from AM Joerg Jaspert). + * CFLAGS handling was missing, CDBS is now doing it correctly (advice + from AM Joerg Jaspert). + + -- Marc Dequènes (Duck) Wed, 21 Apr 2004 03:06:24 +0200 + +soya (0.6.1-3) unstable; urgency=low + + * Corrected Build-Depends (Closes #228496). + + -- Marc Dequènes (Duck) Mon, 19 Jan 2004 19:21:40 +0100 + +soya (0.6.1-2) unstable; urgency=low + + * Corrected 2 bugs in 'c_src/text.c' causing FTBFS on many + architectures (see buildd complains). + + -- Marc Dequènes (Duck) Tue, 13 Jan 2004 00:15:42 +0100 + +soya (0.6.1-1) unstable; urgency=low + + * New upstream release + + -- Marc Dequènes (Duck) Sat, 20 Dec 2003 17:34:02 +0100 + +soya (0.6-1) unstable; urgency=low + + * New upstream release + * Updated Maintainer field and 'debian/copyright'. + * Added the 'convert_to_new_format' script to convert files from 0.5 + to 0.6 (in '/usr/share/doc/python2.3-soya/scripts/' as an example + because it must be edited before use). + + -- Marc Dequènes (Duck) Thu, 18 Dec 2003 14:28:44 +0100 + +soya (0.5.1-7) unstable; urgency=low + + * Patched 'c_src/text.c' to correcly include Freetype (should correct + build problem on m68k). + + -- Marc Dequènes Tue, 18 Nov 2003 12:48:18 +0100 + +soya (0.5.1-6) unstable; urgency=low + + * Added dummy package which select the the right package for the + default Python version. + + -- Marc Dequènes Mon, 10 Nov 2003 05:04:32 +0100 + +soya (0.5.1-5) unstable; urgency=low + + * 'debian/changelog' and 'debian/control' are now UTF-8 encoded. + * Corrected Standards-Version. + * Improved package Description. + * Updated Build-Depends, Depends and Recommends. + * Improved 'debian/copyright'. + + -- Marc Dequènes Tue, 4 Nov 2003 18:39:58 +0100 + +soya (0.5.1-4) unstable; urgency=low + + * Rebuilded for new libcal3d (as the pkg name contains version but + shouldn't, a bugreport has been filled against it). + * Updated 'Standards-Version'. + + -- Marc Dequènes Fri, 17 Oct 2003 10:32:55 +0200 + +soya (0.5.1-3) unstable; urgency=low + + * Cleanly rebuilded against python 2.3. + * Updated 'Standards-Version'. + * Updated 'Depends' and 'Build-Depends'. + + -- Marc Dequènes Tue, 19 Aug 2003 14:43:02 +0200 + +soya (0.5.1-2) unstable; urgency=low + + * Corrected major bug : missing link with libstdc++. + + -- Marc Dequènes Fri, 8 Aug 2003 03:24:48 +0200 + +soya (0.5.1-1) unstable; urgency=low + + * New upstream release + * Corrected Build-Depends. + * New Build should correct bad Depends. + + -- Marc Dequènes Thu, 7 Aug 2003 01:53:54 +0200 + +soya (0.5-1) unstable; urgency=low + + * New upstream release + * now signing packages with real identity. + * Recompiled for python 2.3. + + -- Marc Dequènes Fri, 1 Aug 2003 23:25:43 +0200 + +soya (0.4.2-2) unstable; urgency=low + + * Recompiled to correct missing symbol with new version of libcal3d + (this lib really sux). + * Updated Build-Depends for libpng-dev. + * Corrected configure to compile SDL with libpthread. + + -- The Duck Wed, 16 Jul 2003 01:20:03 +0200 + +soya (0.4.2-1) unstable; urgency=low + + * New upstream release + + -- The Duck Fri, 16 May 2003 20:52:10 +0200 + +soya (0.4.1-1) unstable; urgency=low + + * Initial Release. + * Applied patch from Mrq (fix compilation problems). + + -- The Duck Wed, 14 May 2003 14:04:57 +0200 + --- soya-0.14.orig/debian/patches/enable_pyrex +++ soya-0.14/debian/patches/enable_pyrex @@ -0,0 +1,15 @@ +Use pyrex to regenerate .c files + +--- Soya-0.14/setup.py~ 2008-08-29 13:17:36.000000000 +0200 ++++ Soya-0.14/setup.py 2008-09-01 20:45:59.000000000 +0200 +@@ -85,10 +85,6 @@ + except: + HAVE_PYREX = 0 + +-# Only enable Pyrex compilation for SVN sources +-if not os.path.exists(os.path.join(os.path.dirname(__file__), ".svn")): +- HAVE_PYREX = 0 +- + if HAVE_PYREX: print "Pyrex compilation enabled!" + else: print "Pyrex compilation disabled." + --- soya-0.14.orig/debian/patches/series +++ soya-0.14/debian/patches/series @@ -0,0 +1,7 @@ +pyrex-compilation-fix +use-ode-config +no_bytecompilation +useless_shebang +openal_sound_autodetect +enable_pyrex +elementtree --- soya-0.14.orig/debian/patches/pyrex-compilation-fix +++ soya-0.14/debian/patches/pyrex-compilation-fix @@ -0,0 +1,22 @@ +Recent version of pyrex get module name from directory +name. Unfortunately, soya is compiled outside of any directory and +therefore the name of the directory is soya-VERSION. This patch +reverts previous behaviour of Pyrex. Thanks to Jakub Wilk. + +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -80,6 +80,13 @@ + + MACOSX_DEPLOYMENT_TARGET = os.getenv('MACOSX_DEPLOYMENT_TARGET') + try: ++ from Pyrex.Compiler.Main import Context ++ def extract_module_name(self, path): ++ dir, filename = os.path.split(path) ++ module_name, _ = os.path.splitext(filename) ++ return module_name ++ Context.extract_module_name = extract_module_name ++ del Context + from Pyrex.Distutils import build_ext + HAVE_PYREX = 1 + except: --- soya-0.14.orig/debian/patches/useless_shebang +++ soya-0.14/debian/patches/useless_shebang @@ -0,0 +1,12 @@ +Remove unneeded sheebang + +Index: soya-0.13.1/q3bsp2soya.py +=================================================================== +--- soya-0.13.1.orig/q3bsp2soya.py 2007-06-19 02:57:12.344219143 +0200 ++++ soya-0.13.1/q3bsp2soya.py 2007-06-19 02:57:20.844205245 +0200 +@@ -1,4 +1,4 @@ +-#! /usr/bin/python ++# + # -*- indent-tabs-mode: t -*- + # -*- coding: utf-8 -*- + --- soya-0.14.orig/debian/patches/elementtree +++ soya-0.14/debian/patches/elementtree @@ -0,0 +1,16 @@ +Use elementtree from python 2.5 if available + +--- a/pudding/ext/svgelements.py~ 2006-07-02 10:40:41.000000000 +0200 ++++ b/pudding/ext/svgelements.py 2008-09-27 16:02:03.000000000 +0200 +@@ -22,7 +22,10 @@ + try: + from elementtree import ElementTree + except ImportError: +- raise "You need elementtree from http://effbot.org/zone/element-index.htm" ++ try: ++ from xml.etree import ElementTree ++ except ImportError: ++ raise "You need elementtree from http://effbot.org/zone/element-index.htm" + + try: + import cairo --- soya-0.14.orig/debian/patches/openal_sound_autodetect +++ soya-0.14/debian/patches/openal_sound_autodetect @@ -0,0 +1,13 @@ +Let OpenAL autodetect sound device. + +--- a/sound/sound.pyx ++++ b/sound/sound.pyx +@@ -70,7 +70,7 @@ + cdef int attrs[6] + if _SOUND_INITED == 0: + +- _device = alcOpenDevice(PyString_AS_STRING(device_names)) ++ _device = alcOpenDevice(NULL) + + if _device == NULL: + raise RuntimeError("Cannot create an OpenAL device!") --- soya-0.14.orig/debian/patches/use-ode-config +++ soya-0.14/debian/patches/use-ode-config @@ -0,0 +1,39 @@ +Use *-config for CFLAGS and LDFLAGS + +--- a/setup.py~ 2008-08-29 13:17:36.000000000 +0200 ++++ a/setup.py 2009-03-30 21:51:53.000000000 +0200 +@@ -203,6 +203,12 @@ + + + ++import commands ++COMPILE_ARGS.extend(commands.getoutput("ode-config --cflags").split(" ")) ++COMPILE_ARGS.extend(commands.getoutput("freetype-config --cflags").split(" ")) ++LINK_ARGS = [] ++LINK_ARGS.extend(commands.getoutput("ode-config --libs").split(" ")) ++LINK_ARGS.extend(commands.getoutput("freetype-config --libs").split(" ")) + if HAVE_PYREX: + # make pyrex recompile the soya module if any of the .pyx files have changed + # should probably recurse directories +@@ -215,17 +218,18 @@ + KARGS = { + "ext_modules" : [ + Extension("soya._soya", SOYA_PYREX_SOURCES, +- include_dirs=INCDIR, library_dirs=LIBDIR, ++# include_dirs=INCDIR, library_dirs=LIBDIR, + libraries=LIBS, define_macros=DEFINES, + extra_compile_args = COMPILE_ARGS, ++ extra_link_args = LINK_ARGS, + ), + Extension("soya.opengl", ["opengl.pyx"], +- include_dirs=INCDIR, library_dirs=LIBDIR, ++# include_dirs=INCDIR, library_dirs=LIBDIR, + libraries=LIBS, define_macros=DEFINES, + extra_compile_args = COMPILE_ARGS, + ), + Extension("soya.sdlconst", ["sdlconst.pyx"], +- include_dirs=INCDIR, library_dirs=LIBDIR, ++# include_dirs=INCDIR, library_dirs=LIBDIR, + libraries=LIBS, define_macros=DEFINES, + extra_compile_args = COMPILE_ARGS, + ), --- soya-0.14.orig/debian/patches/no_bytecompilation +++ soya-0.14/debian/patches/no_bytecompilation @@ -0,0 +1,15 @@ +Don't bytecompile, python-support will do it. + +Index: soya-0.13.1/setup.cfg +=================================================================== +--- soya-0.13.1.orig/setup.cfg 2006-08-01 14:54:43.627322248 +0200 ++++ soya-0.13.1/setup.cfg 2007-06-19 01:45:52.851216147 +0200 +@@ -1,6 +1,6 @@ + [install_lib] +-compile = 1 +-optimize = 1 ++compile = 0 ++optimize = 0 + + [sdist] + force-manifest = 1