debian/0000755000000000000000000000000011427450413007167 5ustar debian/balazar3.60000644000000000000000000000161211427450413010755 0ustar .\" Hey, EMACS: -*- nroff -*- .TH BALAZAR3 6 "28 sep 2008" .SH NAME balazar3 \- dungeon adventure game with multiplayer support .SH SYNOPSIS .B balazar3 .RI [ \-\-2d | \-\-3d ] .SH DESCRIPTION This manual page documents briefly the .B balazar3 command. .PP \fBBalazar III\fP is a dungeon adventure game featuring multiplayer support. It comes in two flavors: a 3D flavor using OpenGL and Soya engine and a 2D flavor for hand-held devices or slower computers. .SH OPTIONS Without any argument, the last launched flavor will be run. Otherwise, you need to specify one of those switches: .TP .B \-\-3d Launch the 3D version of Balazar III .TP .B \-\-2d Launch the 2D version of Balazar III .SH AUTHOR Balazar III was written by Jean-Baptiste Lamy. .PP This manual page was written by Vincent Bernat , for the Debian project (but may be used by others). debian/control0000644000000000000000000001231411427450413010573 0ustar Source: balazar3 Section: games Priority: optional Maintainer: Vincent Bernat Build-Depends: debhelper (>= 6.0.7~) Build-Depends-Indep: python (>= 2.5), python-support (>= 0.3.2), rsync Standards-Version: 3.9.1 Homepage: http://home.gna.org/oomadness/en/balazar_iii/index.html Vcs-Browser: http://git.debian.org/?p=collab-maint/balazar3.git Vcs-Git: git://git.debian.org/git/collab-maint/balazar3.git XS-Python-Version: >= 2.5 Package: balazar3 Architecture: all Depends: balazar3-3d (= ${binary:Version}) | balazar3-2d (= ${binary:Version}), ${misc:Depends} Description: dungeon adventure game with multiplayer support Balazar III is a dungeon adventure game with multiplayer support. As you explore the dungeon, you'll gain magical objects, experience and powers, but also... curses ! Balazar III is based on the (French) comics "Le guide Balazar du mauvais sorcier" (Balazar's guide to bad sorcerers). . The game comes in two versions (which are network-compatible): - 3D version destined to computer gamers. The 3D version is graphically more beautiful, as it takes avantages of the nice cellshading algorithms of the Soya 3D engine. - 2D version, currently supporting 640x480 and 800x480 resolutions. It has been designed mainly for hand-held devices (Sharp Zaurus, Nokia N810, Openmoko Freerunner, Asus EEE PC, and the like), although it can be used on computer too. This version has been highly optimized so as it can be run in 640x480 on a Zaurus C1000 (416 MHz ARM processor without graphics accelerators). . This package is a metapackage depending on the 3D version. Package: balazar3-3d Architecture: all Depends: balazar3-common, python-soya (>= 0.14), python-ogg, python-pyvorbis, ${misc:Depends} Replaces: balazar3-common (<= 0.1-2) Conflicts: balazar3-common (<= 0.1-2) Description: dungeon adventure game with multiplayer support - 3D version Balazar III is a dungeon adventure game with multiplayer support. As you explore the dungeon, you'll gain magical objects, experience and powers, but also... curses ! Balazar III is based on the (French) comics "Le guide Balazar du mauvais sorcier" (Balazar's guide to bad sorcerers). . The game comes in two versions (which are network-compatible): - 3D version destined to computer gamers. The 3D version is graphically more beautiful, as it takes avantages of the nice cellshading algorithms of the Soya 3D engine. - 2D version, currently supporting 640x480 and 800x480 resolutions. It has been designed mainly for hand-held devices (Sharp Zaurus, Nokia N810, Openmoko Freerunner, Asus EEE PC, and the like), although it can be used on computer too. This version has been highly optimized so as it can be run in 640x480 on a Zaurus C1000 (416 MHz ARM processor without graphics accelerators). . This package provides the 3D version. Package: balazar3-2d Architecture: all Depends: python-pygame, balazar3-common, ${misc:Depends} Replaces: balazar3-common (<= 0.1-2) Conflicts: balazar3-common (<= 0.1-2) Description: dungeon adventure game with multiplayer support - 2D version Balazar III is a dungeon adventure game with multiplayer support. As you explore the dungeon, you'll gain magical objects, experience and powers, but also... curses ! Balazar III is based on the (French) comics "Le guide Balazar du mauvais sorcier" (Balazar's guide to bad sorcerers). . The game comes in two versions (which are network-compatible): - 3D version destined to computer gamers. The 3D version is graphically more beautiful, as it takes avantages of the nice cellshading algorithms of the Soya 3D engine. - 2D version, currently supporting 640x480 and 800x480 resolutions. It has been designed mainly for hand-held devices (Sharp Zaurus, Nokia N810, Openmoko Freerunner, Asus EEE PC, and the like), although it can be used on computer too. This version has been highly optimized so as it can be run in 640x480 on a Zaurus C1000 (416 MHz ARM processor without graphics accelerators). . This package provides the 2D version. Package: balazar3-common Architecture: all Depends: ${python:Depends}, python-cerealizer, ${misc:Depends} Suggests: python-psyco Description: dungeon adventure game with multiplayer support - common files Balazar III is a dungeon adventure game with multiplayer support. As you explore the dungeon, you'll gain magical objects, experience and powers, but also... curses ! Balazar III is based on the (French) comics "Le guide Balazar du mauvais sorcier" (Balazar's guide to bad sorcerers). . The game comes in two versions (which are network-compatible): - 3D version destined to computer gamers. The 3D version is graphically more beautiful, as it takes avantages of the nice cellshading algorithms of the Soya 3D engine. - 2D version, currently supporting 640x480 and 800x480 resolutions. It has been designed mainly for hand-held devices (Sharp Zaurus, Nokia N810, Openmoko Freerunner, Asus EEE PC, and the like), although it can be used on computer too. This version has been highly optimized so as it can be run in 640x480 on a Zaurus C1000 (416 MHz ARM processor without graphics accelerators). . This package provides common files to 2D and 3D versions debian/balazar3-2d.menu0000644000000000000000000000021511427450413012055 0ustar ?package(balazar3-2d): needs="X11" \ section="Games/Adventure" \ title="Balazar III (2D version)" \ command="/usr/games/balazar3 --2d" debian/patches/0000755000000000000000000000000011427450413010616 5ustar debian/patches/series0000644000000000000000000000010211427450413012024 0ustar 01dont-save-to-tmp.patch 02really_check_driver_availability.patch debian/patches/01dont-save-to-tmp.patch0000644000000000000000000000074411427450413015123 0ustar Do not save in /tmp using a predictable name. diff --git a/globdef.py b/globdef.py index cc3eb95..4e1b55f 100644 --- a/globdef.py +++ b/globdef.py @@ -87,8 +87,6 @@ SAVED_GAME_DIR = os.path.expanduser(os.path.join("~", ".balazar3_v%s_saves" % VE if SAVED_GAME_DIR[0] == "~": # Fucking winedaube OS !!! SAVED_GAME_DIR = "C:\\balazar3_v%s_saves" % VERSION -SAVED_GAME_DIR ="/tmp/balazar3_v%s_saves" % VERSION - if os.path.exists(CONFIG_FILE): try: execfile(CONFIG_FILE) debian/patches/02really_check_driver_availability.patch0000644000000000000000000000076611427450413020544 0ustar Check for available drivers which depend on the packages installed. diff --git a/globdef.py b/globdef.py index cc3eb95..c33b1f7 100644 --- a/globdef.py +++ b/globdef.py @@ -143,6 +143,8 @@ CLIENT_PASSWORD = "x" # Find an available driver AVAILABLE_DRIVERS = ["3d", "2d", "2d800x480"] +AVAILABLE_DRIVERS = [ x for x in AVAILABLE_DRIVERS + if os.path.exists("/usr/share/games/balazar3/driver_%s.py" % x )] if not DRIVER in AVAILABLE_DRIVERS: DRIVER = AVAILABLE_DRIVERS[0] debian/watch0000644000000000000000000000010511427450413010214 0ustar version=3 http://download.gna.org/balazar/ Balazar3-([\d.]+).tar.bz2 debian/changelog0000644000000000000000000000575511427450413011055 0ustar balazar3 (0.1-10) unstable; urgency=low * Properly depends on python-support in balazar3-common. Thanks to Jakub Wilk for the patch. Closes: #592072. * Bump Standards-Version. No changes required. -- Vincent Bernat Sun, 08 Aug 2010 08:38:20 +0200 balazar3 (0.1-9) unstable; urgency=low * Turn back all binary packages to arch:all. Move Suggests back to balazar3-common and make it non-arch specific. This also indirectly closes: #581784, #581784. -- Vincent Bernat Sun, 16 May 2010 16:41:12 +0200 balazar3 (0.1-8) unstable; urgency=low * Turn back balazar3-common into an arch:all package and move 'Suggests' in balazar3 package which becomes a arch:any package. Also adds a dependency from balazar3-common to balazar3. * Switch to 3.0 (quilt) format. * Move rsync to Build-Depends instead of Build-Depends-Indep since we now build arch:any package. Closes: #581728. Also fix debian/rules whose binary-arch section was empty. -- Vincent Bernat Sat, 15 May 2010 13:45:41 +0200 balazar3 (0.1-7) unstable; urgency=low * Turn balazar3-common into an arch:any package since 'Suggests' contains an arch-specific dependency which is expanded during the build on the given arch. Closes: #581304. -- Vincent Bernat Wed, 12 May 2010 19:33:06 +0200 balazar3 (0.1-6) unstable; urgency=low * Don't depend on Python 2.5 and use the default Python: Python 2.4 is not in Debian any more so we have at least Python 2.5. Thanks to Steve Langasek. Closes: #562793. * Bump Standards-Version. No changes required. -- Vincent Bernat Sat, 30 Jan 2010 13:33:33 +0100 balazar3 (0.1-5) unstable; urgency=low * Depend on python-ogg instead of python-pyogg which is a transitional package. Closes: #522521. * Bump Standards-Version. No changes required. -- Vincent Bernat Sun, 05 Jul 2009 09:30:53 +0200 balazar3 (0.1-4) unstable; urgency=low * Upload to unstable. * Bump Standards-Version. No changes required. -- Vincent Bernat Fri, 20 Mar 2009 21:21:42 +0100 balazar3 (0.1-3) experimental; urgency=low * Add a patch to not use drivers not available (Closes: #504929). Also, don't ship files specific to a given version in -common package. * Add a lintian override about menu command not being in the package: the command is in balazar3-common. * Remove shlibs:Depends from binary dependencies since these are "Arch: all" packages. -- Vincent Bernat Sat, 08 Nov 2008 10:22:06 +0100 balazar3 (0.1-2) experimental; urgency=low * Add a patch to put the default save game directory into the user home directory. Thanks to Josh Tripplet. Closes: #503750. -- Vincent Bernat Tue, 28 Oct 2008 23:29:49 +0100 balazar3 (0.1-1) experimental; urgency=low * Initial release (Closes: #497443) -- Vincent Bernat Sat, 27 Sep 2008 19:17:44 +0200 debian/rules0000755000000000000000000000561711427450413010260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 VERSIONS:=3d 2d prepare: prepare-stamp prepare-stamp: dh_testdir mkdir build $(foreach version,$(VERSIONS),rsync -r --link-dest=. --exclude=build --exclude=debian . build/$(version) ;) touch $@ build: $(foreach version,$(VERSIONS), build-$(version)) $(foreach version,$(VERSIONS), build-$(version)): build-%: build-stamp-% $(foreach version,$(VERSIONS), build-stamp-$(version)): build-stamp-%: prepare dh_testdir (cd build/$(patsubst build-stamp-%,%,$@) && \ python setup.py build --$(patsubst build-stamp-%,%,$@)) touch $@ install: $(foreach version,$(VERSIONS), install/$(version)) # Put files in common in balazar3-common find debian -name '*.pyo' -print0 | xargs -0 rm find debian/balazar3-2d -type f -name '*_3d.py' -exec rm {} \; find debian/balazar3-3d -type f -name '*_2d.py' -exec rm {} \; find debian/balazar3-3d -type f -name '*_2d800x480.py' -exec rm {} \; (cd debian/balazar3-2d ; find usr/share/games/balazar3 -type f) | sort > debian/2d-files (cd debian/balazar3-3d ; find usr/share/games/balazar3 -type f) | sort > debian/3d-files echo usr/games/balazar3 >> debian/2d-files echo usr/games/balazar3 >> debian/3d-files diff -U 99999999 debian/2d-files debian/3d-files | grep '^ ' | while read file; do \ [ -d debian/balazar3-common/$$(dirname $$file) ] || \ mkdir -p debian/balazar3-common/$$(dirname $$file) ; \ mv debian/balazar3-2d/$$file debian/balazar3-common/$$(dirname $$file) ; \ rm debian/balazar3-3d/$$file ; \ done # Run three times because directories become empty when removing empty subdirectories find debian/balazar3-2d debian/balazar3-3d -type d -empty -print0 | xargs -r0 rm -rf find debian/balazar3-2d debian/balazar3-3d -type d -empty -print0 | xargs -r0 rm -rf find debian/balazar3-2d debian/balazar3-3d -type d -empty -print0 | xargs -r0 rm -rf $(foreach version,$(VERSIONS), install/$(version)): install/%: dh_testdir dh_testroot dh_installdirs (cd build/$(patsubst install/%,%,$@) && \ python setup.py install --$(patsubst install/%,%,$@) \ --install-scripts=/usr/games \ --install-purelib=/usr/share/games --install-data=/usr/share/games \ --root=$(CURDIR)/debian/balazar3-$(patsubst install/%,%,$@)) rm debian/balazar3-$(patsubst install/%,%,$@)/usr/share/games/*.egg-info binary-arch: binary-indep: install dh_testdir dh_testroot dh_lintian dh_installchangelogs dh_installdocs README dh_install dh_installmenu dh_installman dh_strip dh_compress dh_pysupport /usr/share/games/balazar3 dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb clean: dh_testdir dh_testroot rm -f $(foreach version,$(VERSIONS), build-stamp-$(version)) prepare-stamp rm -f debian/2d-files debian/3d-files rm -rf build dh_clean binary: binary-indep .PHONY: build clean binary-indep binary-arch binary install debian/balazar3-3d.lintian-overrides0000644000000000000000000000005111427450413014546 0ustar balazar3-3d: menu-command-not-in-package debian/source/0000755000000000000000000000000011427450413010467 5ustar debian/source/format0000644000000000000000000000001411427450413011675 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211427450413010365 0ustar 5 debian/balazar3-2d.lintian-overrides0000644000000000000000000000005111427450413014545 0ustar balazar3-2d: menu-command-not-in-package debian/balazar3-3d.menu0000644000000000000000000000021511427450413012056 0ustar ?package(balazar3-3d): needs="X11" \ section="Games/Adventure" \ title="Balazar III (3D version)" \ command="/usr/games/balazar3 --3d" debian/copyright0000644000000000000000000000153011427450413011121 0ustar This package was downloaded from http://home.gna.org/oomadness/en/balazar_iii/download/index.html Files: * Copyright: © Copyright 2008 Jean-Baptiste LAMY License: GPL-3+ This program 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, either version 3 of the License, or (at your option) any later version. This program 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. Files: debian/* Copyright: © Copyright 2008 Vincent Bernat License: GPL-3+ On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. debian/balazar3-common.manpages0000644000000000000000000000002211427450413013663 0ustar debian/balazar3.6