--- childsplay-0.81.1.orig/debian/control +++ childsplay-0.81.1/debian/control @@ -0,0 +1,18 @@ +Source: childsplay +Section: games +Priority: optional +Maintainer: Sergio Talens-Oliag +Build-Depends-Indep: cdbs, debhelper (>= 4.1), python-dev, gettext +Standards-Version: 3.6.2.1 + +Package: childsplay +Architecture: all +Recommends: childsplay-plugins, python-pyfribidi +Conflicts: childsplay-plugins (<< 0.80.3-1) +Depends: python (>=2.3), python-pygame (>= 1.6), ttf-bitstream-vera, ttf-dustin +Description: Suite of educational games for young children + Childsplay is written in Python and uses the SDL-libraries to make it more + games-like then, for instance, gcompris. + The aim is to be educational and at the same time be fun to play. + Install the python-pyfribidi package to be able to use the program with + Hebrew and/or Arabic languages. --- childsplay-0.81.1.orig/debian/compat +++ childsplay-0.81.1/debian/compat @@ -0,0 +1 @@ +4 --- childsplay-0.81.1.orig/debian/postinst +++ childsplay-0.81.1/debian/postinst @@ -0,0 +1,16 @@ +#! /bin/sh +set -e + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- childsplay-0.81.1.orig/debian/postrm +++ childsplay-0.81.1/debian/postrm @@ -0,0 +1,14 @@ +#! /bin/sh +set -e + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +#DEBHELPER# + +exit 0 --- childsplay-0.81.1.orig/debian/changelog +++ childsplay-0.81.1/debian/changelog @@ -0,0 +1,78 @@ +childsplay (0.81.1-1) unstable; urgency=low + + * New upstream release. + * Fix execute permissions (Closes: Bug#339668). + * Added desktop file (Closes: Bug#340539). + + -- Sergio Talens-Oliag Mon, 5 Dec 2005 11:28:11 +0100 + +childsplay (0.80.3.1-3) unstable; urgency=low + + * Updated the catalan translation. + + -- Sergio Talens-Oliag Wed, 26 Oct 2005 20:33:09 +0200 + +childsplay (0.80.3.1-2) unstable; urgency=low + + * Added a patch to support the use of the LANGUAGE environment variable. + + -- Sergio Talens-Oliag Tue, 18 Oct 2005 22:19:39 +0200 + +childsplay (0.80.3.1-1) unstable; urgency=low + + * New upstream release. + * Move python files to '/usr/lib/site-python'. + * Generate the .mo files at build time. + * Don't install fonts, depend on the packages providing them. + + -- Sergio Talens-Oliag Sun, 16 Oct 2005 02:43:01 +0200 + +childsplay (0.80.2-5) unstable; urgency=low + + * Added german po file corrections (Closes: Bug#313682). + * Added menu icon (Closes: Bug#319184). + * Don't install non-free fonts (Closes: Bug#321882). + * Added conflicts for old version of the plugins package, it has been + updated to avoid using non-free fonts. + * Updated Standards-Version (no changes needed). + + -- Sergio Talens-Oliag Tue, 9 Aug 2005 17:01:31 +0200 + +childsplay (0.80.2-4) unstable; urgency=low + + * Removed setgid bits (don't work for scripts) and system wide highscore + processing (highscores will work for each user). + + -- Sergio Talens-Oliag Fri, 22 Apr 2005 14:19:52 +0200 + +childsplay (0.80.2-3) unstable; urgency=low + + * Fixed the option processing, the wrapper script was not passing them + (Closes: Bug#305378). + + -- Sergio Talens-Oliag Wed, 13 Apr 2005 08:54:41 +0200 + +childsplay (0.80.2-2) unstable; urgency=low + + * Added Build-Depend on python-dev (Closes: Bug#304409). + * Changed program to /usr/games directory, changed it's group to games and + added the setgid bit. + * Put the po subdir in /usr/share/doc/childsplay/po (is it really + interesting to distribute it?) + + -- Sergio Talens-Oliag Wed, 13 Apr 2005 07:13:37 +0200 + +childsplay (0.80.2-1) unstable; urgency=low + + * New upstream version, packaging upgraded from StasZ. + + * First upload to debian (Closes: Bug#278631). + + -- Sergio Talens-Oliag Mon, 11 Apr 2005 17:52:05 +0200 + +childsplay (0.80-1) unstable; urgency=low + + * Initial Release. + + -- Stas Zytkiewicz Tue, 2 Nov 2004 16:42:41 +0100 + --- childsplay-0.81.1.orig/debian/patches/01_font_locations.patch +++ childsplay-0.81.1/debian/patches/01_font_locations.patch @@ -0,0 +1,51 @@ +Index: childsplay.py +=================================================================== +--- childsplay.py (revisión: 486) ++++ childsplay.py (copia de trabajo) +@@ -351,8 +351,10 @@ + It uses a 'scoresheet' which is a dic with lists as values and the game names + as keys and is stored on disk as a 'pickle object' to get a cheap encrytion.""" + def __init__(self): +- self.hsc_ttf = os.path.join(DATADIR,'Domestic_Manners.ttf') +- self.sc_ttf = os.path.join(DATADIR,'VeraSeBd.ttf') ++ #self.hsc_ttf = os.path.join(DATADIR,'Domestic_Manners.ttf') ++ self.hsc_ttf = "/usr/share/fonts/truetype/dustin/Domestic_Manners.ttf" ++ #self.sc_ttf = os.path.join(DATADIR,'VeraSeBd.ttf') ++ self.sc_ttf = "/usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf" + self.sc_fsize = 32 + self.sc_fcol = (7,249,23) + """self.bal_l_img = load_image(os.path.join(BASEDIR,'Data','balloonsl.png'),1) +@@ -589,7 +591,8 @@ + except UnicodeEncodeError,info: + print >> sys.stderr, info + self.backcol = (80,151,244) +- self.ttf = os.path.join(DATADIR,'Domestic_Manners.ttf') ++ #self.ttf = os.path.join(DATADIR,'Domestic_Manners.ttf') ++ self.ttf = "/usr/share/fonts/truetype/dustin/Domestic_Manners.ttf" + self.backgr = pygame.Surface((x,y)) + + files = ('land.png','stop.png','question1.png','hscore.png','tux.png',\ +@@ -813,7 +816,8 @@ + helptitle = obj.helptitle() + oldclip = self.screen.get_clip() + self.screen.set_clip() +- ttf = os.path.join(DATADIR,'VeraSeBd.ttf') ++ #ttf = os.path.join(DATADIR,'VeraSeBd.ttf') ++ ttf = "/usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf" + lines = len(helptxt) + if CPDEBUG: print "get_help lines",lines + for i in range(0, lines, maxlines): +Index: lib/letters.py +=================================================================== +--- lib/letters.py (revisión: 486) ++++ lib/letters.py (copia de trabajo) +@@ -130,7 +130,8 @@ + self._setup() + + def _setup(self): +- self.ttf = os.path.join(DATADIR,'VeraSeBd.ttf') ++ #self.ttf = os.path.join(DATADIR,'VeraSeBd.ttf') ++ self.ttf = "/usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf" + self.score = 0 + self.fontsize = 48 + self.fcol = (226,178,31) --- childsplay-0.81.1.orig/debian/docs +++ childsplay-0.81.1/debian/docs @@ -0,0 +1,5 @@ +README +README.FIRST +README-MEMORY +doc/po +doc/README.rc-files --- childsplay-0.81.1.orig/debian/rules +++ childsplay-0.81.1/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2004, 2005 Sergio Talens-Oliag + +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +# Build locale files +ifdef _cdbs_rules_debhelper +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + for po in `ls doc/po/*/childsplay.po`; do \ + lang=`echo $$po | sed -e 's%doc/po/%%;s%/childsplay.po%%'`; \ + mkdir -p debian/$(cdbs_curpkg)/usr/share/locale/$$lang/LC_MESSAGES/; \ + msgfmt $$po -o debian/$(cdbs_curpkg)/usr/share/locale/$$lang/LC_MESSAGES/childsplay.mo; \ + done +endif +# Recompress the manpage to get max compression +ifdef _cdbs_rules_debhelper +manpage = debian/$(cdbs_curpkg)/usr/share/man/man6/childsplay.6 +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + test -f $(manpage).gz && gunzip $(manpage).gz && gzip -9 $(manpage) +endif +# Use debhelper's "dh_python" command; makefile code taken from +# '/usr/share/cdbs/1/class/python-distutils.mk' +ifdef _cdbs_rules_debhelper +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + dh_python -p$(cdbs_curpkg) +endif +# Fix things after installation +common-binary-post-install-indep:: + # Fix execute permissions for all scripts + chmod ugo+x debian/childsplay/usr/lib/site-python/childsplay/childsplay.py + chmod ugo+x debian/childsplay/usr/lib/site-python/childsplay/letters-trans.py + chmod ugo+x debian/childsplay/usr/lib/site-python/childsplay/pyassetmlcreator.py + # Remove ttf files + find debian/childsplay/ -name '*.ttf' -exec rm {} \; --- childsplay-0.81.1.orig/debian/manpages +++ childsplay-0.81.1/debian/manpages @@ -0,0 +1,2 @@ +man/childsplay.6.gz +man/letters-trans.6.gz --- childsplay-0.81.1.orig/debian/games/letters-trans +++ childsplay-0.81.1/debian/games/letters-trans @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/lib/site-python/childsplay/letters-trans.py $@ --- childsplay-0.81.1.orig/debian/games/childsplay +++ childsplay-0.81.1/debian/games/childsplay @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/lib/site-python/childsplay/childsplay.py $@ --- childsplay-0.81.1.orig/debian/dirs +++ childsplay-0.81.1/debian/dirs @@ -0,0 +1,8 @@ +usr/games +usr/lib/site-python/childsplay/lib +usr/share/doc/childsplay +usr/share/assetml +usr/share/childsplay/ConfigData +usr/share/childsplay/Data/lib +usr/share/locale +var/games --- childsplay-0.81.1.orig/debian/menu +++ childsplay-0.81.1/debian/menu @@ -0,0 +1,3 @@ +?package(childsplay):needs="X11" section="Games/Arcade"\ + icon="/usr/share/childsplay/Data/chpl-icon-32.xpm"\ + title="Childsplay" command="/usr/games/childsplay" --- childsplay-0.81.1.orig/debian/childsplay.desktop +++ childsplay-0.81.1/debian/childsplay.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Type=Application +Name=Childsplay +GenericName=Childsplay +Comment=Suite of educational games for young children +Comment[ca]=Conjunt de jocs educatius per a xiquets +Comment[es]=Conjunto de juegos educativos para niños +Icon=chpl-icon-48.xpm + +FilePattern=childsplay +Exec=childsplay +Terminal=false +StartupNotify=false + +Categories=Application;Game;Education;KidsGame;2DGraphics; --- childsplay-0.81.1.orig/debian/install +++ childsplay-0.81.1/debian/install @@ -0,0 +1,10 @@ +debian/games/* /usr/games/ +debian/BASEPATH.py /usr/lib/site-python/childsplay/ +*.py /usr/lib/site-python/childsplay/ +lib/*.py /usr/lib/site-python/childsplay/lib/ +assetml/* /usr/share/assetml/ +debian/Data/* /usr/share/childsplay/Data/ +Data/* /usr/share/childsplay/Data/ +lib/*Data /usr/share/childsplay/lib/ +debian/childsplay.desktop /usr/share/applications/ +Data/chpl-icon-48.xpm /usr/share/pixmaps/ --- childsplay-0.81.1.orig/debian/copyright +++ childsplay-0.81.1/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Stas Zytkiewicz on +Tue, 2 Nov 2004 16:42:41 +0100. + +It was downloaded from http://childsplay.sf.net + +Copyright: (c) 2002-2004 Stas Zytkiewicz + +Upstream maintainer(s): Stas Zytkiewicz + +License: GPL +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License Version 2, found on Debian systems +in the file /usr/share/common-licenses/GPL . --- childsplay-0.81.1.orig/debian/Data/chpl-icon-32.xpm +++ childsplay-0.81.1/debian/Data/chpl-icon-32.xpm @@ -0,0 +1,295 @@ +/* XPM */ +static char *chpl-icon-32[] = { +/* columns rows colors chars-per-pixel */ +"32 32 257 2", +" c #00690074006C", +". c #0D200CEE06B2", +"X c #0BE009E50A20", +"o c #1723073007B7", +"O c #13A013DF06B0", +"+ c #16A8186B087D", +"@ c #15FA146A1470", +"# c #1B5A1A451A5D", +"$ c #0D7318250CBE", +"% c #0F9A23F70AB9", +"& c #1AF929A512D8", +"* c #159A3D250E55", +"= c #155C2E370E89", +"- c #274A1A161B26", +"; c #264626660926", +": c #269428E21868", +"> c #2844362F1A2F", +", c #37C43AB317DD", +"< c #368A2D5F2E23", +"1 c #351A35922D47", +"2 c #3D6E3C733579", +"3 c #3D363C413A6D", +"4 c #372B351F3353", +"5 c #2AC92E412C9D", +"6 c #1C2043AC1512", +"7 c #1926534A0FD9", +"8 c #1E1D6C3D13D5", +"9 c #1DAC759B12AF", +"0 c #1EFC78D50F31", +"q c #2904486118B5", +"w c #29AB5DCB0EE1", +"e c #2A505A521421", +"r c #3428595218E4", +"t c #3F87465E3B04", +"y c #2A8D6A3814E1", +"u c #2841756C1769", +"i c #38147B2214D8", +"p c #375564FD1996", +"a c #394365C427BC", +"s c #46481DB420DC", +"d c #4E1C363A151A", +"f c #44E92C0D2DB9", +"g c #45933CB73D0F", +"h c #54A3372C395A", +"j c #647F062C0A3B", +"k c #6F48123219A5", +"l c #650B1BD921AF", +"z c #4E1216061A31", +"x c #4FCA3F1A4083", +"c c #45134553152A", +"v c #49E84BCB1719", +"b c #544554071CDD", +"n c #58ED5A541563", +"m c #47EB4FC5108E", +"M c #44F749F82611", +"N c #430643383DE3", +"B c #4AA34B3E391C", +"V c #568659E2267D", +"C c #5B0F5C2E3836", +"Z c #4BEB53F62B4F", +"A c #5652614013E7", +"S c #5C457D631428", +"D c #40D679D323CF", +"F c #4E0C703A3B83", +"G c #78CE5E690FCF", +"H c #67FB5FB225CE", +"J c #662C6B9C0E72", +"K c #6CA26C8614F2", +"L c #68E469C219DC", +"P c #767874B40BE7", +"I c #77037B620A9A", +"U c #7D4A7F0B0607", +"Y c #7E3B7C060968", +"T c #772573BB0A7A", +"R c #786476FA179F", +"E c #702074E20EAB", +"W c #682E6922252F", +"Q c #745D75822921", +"! c #4979485C45B4", +"~ c #4A685B5A4947", +"^ c #572349E94854", +"/ c #56DE56244990", +"( c #55E454B7535A", +") c #5B81587A56C8", +"_ c #537B43E35A7F", +"` c #5B0F669448AE", +"' c #5D83648F568C", +"] c #4A0E7A0040C7", +"[ c #6ABC4E3C5000", +"{ c #74D64E3463C9", +"} c #64E666865C57", +"| c #6B2C69A366C1", +" . c #737B73176E06", +".. c #7586791A6B22", +"X. c #7AED79FF75E0", +"o. c #73DD711C6442", +"O. c #50CE48A67073", +"+. c #263821285F16", +"@. c #2A898A4F1273", +"#. c #299A953D174F", +"$. c #2942A78915D6", +"%. c #2987BA2F183B", +"&. c #3E24B80D0F48", +"*. c #37D3B96C134D", +"=. c #2BE5BD7E0AC8", +"-. c #4023AD653934", +";. c #1E9BE7380921", +":. c #161BF329069F", +">. c #29F3D72D0D89", +",. c #39A8C7DD0DC9", +"<. c #36FAC9BF13EB", +"1. c #2D30CE9310DE", +"2. c #23CAE3860A71", +"3. c #3EC3FD5D418F", +"4. c #5E189A0B0929", +"5. c #5C8992DF160D", +"6. c #4863B7AD0BBA", +"7. c #54DCAB220BB5", +"8. c #6DCC8C1D094F", +"9. c #6E5888030A39", +"0. c #656E97390A25", +"q. c #7C18835B0600", +"w. c #764186D80819", +"e. c #773C8885106B", +"r. c #56EAB4605109", +"t. c #6BC08BC2517A", +"y. c #6E9A919C6809", +"u. c #6ABBC0B25395", +"i. c #4277C1850C60", +"p. c #4397E80C3A87", +"a. c #4A90C725463A", +"s. c #51FAD5454DAB", +"d. c #4BBDE783417E", +"f. c #426EFC3B4425", +"g. c #5A08FC815843", +"h. c #626AD4205D04", +"j. c #6B52FE216C22", +"k. c #76B1F5417566", +"l. c #7329C7476CA4", +"z. c #B33F27DA2E28", +"x. c #A4C61D600FAF", +"c. c #81F37EC4065F", +"v. c #81827BC20C2C", +"b. c #87D65AEA0BBB", +"n. c #92FA4B7C5170", +"m. c #86415DDD6E25", +"M. c #849C64F56966", +"N. c #8DB36EB57237", +"B. c #8F017DAC78BD", +"V. c #95196B3A7496", +"C. c #9DFC7B337F92", +"Z. c #947276C17ADA", +"A. c #B0CB4CD156F7", +"S. c #A3F45F16655B", +"D. c #A46267116C8C", +"F. c #A7E5774B7DD2", +"G. c #8C537B6C59F2", +"H. c #CD4212AA1B1D", +"J. c #DFA8256E342F", +"K. c #EAD6082E1AA4", +"L. c #FD63084A1C35", +"P. c #FF3519A32CB2", +"I. c #FFFF11E6255E", +"U. c #F2E710B22340", +"Y. c #DE9123D93305", +"T. c #EFBD36384552", +"R. c #D53551215BFF", +"E. c #D31C63685F2A", +"W. c #D0466DDE71B0", +"Q. c #F24F477755BF", +"!. c #E54D60446AF4", +"~. c #E5B560A66C2D", +"^. c #E6726A96754C", +"/. c #B2647DBB89A6", +"(. c #B0347E9F8946", +"). c #C0E77CE38668", +"_. c #8B2C8ADB12FA", +"`. c #8B728CB9281C", +"'. c #901791A12A62", +"]. c #9AFD9B33284E", +"[. c #97459B423958", +"{. c #8E2C90B838E7", +"}. c #B660B6522612", +"|. c #AF37AF3723C7", +" X c #928D96364CF4", +".X c #8AAB84D67BD6", +"XX c #99DA83907E05", +"oX c #8F4E8E7576DE", +"OX c #A27A9B646BB8", +"+X c #AE6CAEC96A10", +"@X c #B8E5AF126366", +"#X c #A685A62853A7", +"$X c #843FC5F57DFC", +"%X c #B094CF4F5434", +"&X c #D9B0DA0F2E19", +"*X c #DD9FDCE834B9", +"=X c #C967C96728D5", +"-X c #E833E8272F07", +";X c #ED6AED843434", +":X c #E96EE96B3595", +">X c #F4F4F4EF3383", +",X c #FF0DFF1433B7", +" m I L H K K n b C ! X YX", +"( JXNXxXbXiXd.f.s.y.) _ ! F r.` b L n v K q.q.c.c.c._.e.K b 1 ", +" qXSXNXSXoXa.p.3.3.p.s.r.a.` V Y T c S 7.6.4.9.I U I R Y L C 5 ", +"YXg BXSXBXXX-.f.3.3.3.g.j.k.M J U T r =.2.1.*.7.0.w.K A 9.b M | ", +"YX@ VXSXvXuXr.k.k.k.hXkXkXiXL U q.7.$.#.%.%.7 0 $.*.6.i.<.*.] ! ", +"YXX / G.@X3X%X%Xt.$X0X~ 4 | Q q.8.&.<.y 9 %.7 % * #.<.>.<.<.a # ", +"YX. `.&X>X,X,X>X=X[.& YXYX .W v.8.,.,.w % 9 =.9 % ; b.b.p a 2 YX", +". Q ;X,X,X,X,X>X,X1XK O YX .Z K q.6.2.0 $ = $.%.@.8 x.x.j + X YX", +"].1X,X&X`.}.-X].].;X1X'.. ! t d I 8.,.>.@.q & 6 8 #.6.w.x.z.M.YX", +";X,X,X}.O n &Xc , &XX+X{.>X,X,XQ YXN } : d I 8.7.1.$.D > 5 t t ^ z.E.x ", +",X,X-X>X,X,XX'. N X.1 ; J U q.7.1.>.i q ( X.B.A.vX! ", +",X-X; |..i ..@ YXYXYX", +"`.;X,X=XR O + R #X` @.F > v E 8.8.w.0.4.9.0.4.6.;.>.@.| X YXYXYX", +"O K >X,X>X:X:X>X w y u a X.# YXYXYXYX" +}; --- childsplay-0.81.1.orig/debian/BASEPATH.py +++ childsplay-0.81.1/debian/BASEPATH.py @@ -0,0 +1,28 @@ +## PATHS for the DEBIAN package; only set the ones used + +#../CPConstants.py:BASEDIR = BASEPATH.CPDIR +CPDIR="/usr/lib/site-python/childsplay" +#../CPConstants.py:DATADIR = BASEPATH.SHAREDATADIR +SHAREDATADIR="/usr/share/childsplay/Data" +#../CPConstants.py:MODULESDATADIR = BASEPATH.SHARELIBDATADIR +SHARELIBDATADIR="/usr/share/childsplay/lib" +#../CPConstants.py:LOCALEDIR = BASEPATH.LOCALEDIR +LOCALEDIR="/usr/share/locale" +#../CPConstants.py:ASSETMLROOT = BASEPATH.ASSETMLDIR +ASSETMLDIR="/usr/share/assetml" +#../CPConstants.py:SCOREFILE = BASEPATH.SCOREFILE +import os +if os.environ.has_key('HOME'): + SCOREFILE=os.environ['HOME'] + "/.childsplay.score" +else: + SCOREFILE=None +#../CPConstants.py:CHILDSPLAYRC = BASEPATH.CHILDSPLAYRC +CHILDSPLAYRC="childsplayrc" +#../CPConstants.py:LIBDIR = BASEPATH.LIBDIR +LIBDIR="/usr/lib/site-python/childsplay/lib" +#../CPConstants.py:MODULES = BASEPATH.MODULESDIR +MODULESDIR="/usr/lib/site-python/childsplay/lib" +#../CPConstants.py:RCDIR = BASEPATH.RCDIR +RCDIR="/usr/share/childsplay/lib/ConfigData" +#../CPConstants.py:HOME_DIR_NAME = BASEPATH.HOME_DIR_NAME +HOME_DIR_NAME=".childsplay"