--- glotski-0.2.orig/canvas.c +++ glotski-0.2/canvas.c @@ -735,8 +735,8 @@ }; dialog = gnome_about_new (_("Glotski"), GLOTVER, "(C) 1999-2000 Martin Hock", - authors, _("Drag the blocks around to reach a goal."), + authors, NULL, NULL, NULL); gtk_signal_connect(GTK_OBJECT(dialog), "destroy", @@ -1049,7 +1049,7 @@ gnome_init_with_popt_table(GLOTNAME, GLOTVER, argc, argv, options, 0, &pctx); gdk_rgb_init(); - args = poptGetArgs(pctx); + args = (char**)poptGetArgs(pctx); if (filemode) { if (args) { --- glotski-0.2.orig/Makefile +++ glotski-0.2/Makefile @@ -1,9 +1,9 @@ CC = gcc -g -Wall -O5 -LIBS = `gnome-config gnomeui --libs` +LIBS = `pkg-config libgnomeui-2.0 --libs` OBJS = glotski.o equiv.o parse.o canvas.o -INCLUDE = `gnome-config gnomeui --cflags` +INCLUDE = `pkg-config libgnomeui-2.0 --cflags` all: ${OBJS} - ${CC} ${OBJS} ${LIBS} -o glotski + ${CC} ${OBJS} -Wl,--as-needed ${LIBS} -o glotski glotski.o: glotski.c glotski.h ${CC} ${INCLUDE} -c glotski.c --- glotski-0.2.orig/d23.lev +++ glotski-0.2/d23.lev @@ -1,7 +1,7 @@ ; D23 from _Sliding Piece Puzzles_ ; Move big red block to lower right size 6 5 -step 223 +step 199 ; initial .11233 --- glotski-0.2.orig/d18.lev +++ glotski-0.2/d18.lev @@ -1,7 +1,7 @@ ; D18 from _Sliding Piece Puzzles_ ; Move big red block to lower right size 6 5 -step 75 +step 74 ; initial AA89a. --- glotski-0.2.orig/d19.lev +++ glotski-0.2/d19.lev @@ -1,7 +1,7 @@ ; D19 from _Sliding Piece Puzzles_ ; Move big red block to lower right size 6 5 -step 99 +step 92 ; initial AA1189 --- glotski-0.2.orig/debian/menu +++ glotski-0.2/debian/menu @@ -0,0 +1,3 @@ +?package(glotski):needs="X11" section="Games/Puzzles"\ + title="Glotski" command="/usr/games/glotski"\ + icon="/usr/share/pixmaps/glotski.xpm" --- glotski-0.2.orig/debian/docs +++ glotski-0.2/debian/docs @@ -0,0 +1,2 @@ +AUTHORS +README --- glotski-0.2.orig/debian/postrm.debhelper +++ glotski-0.2/debian/postrm.debhelper @@ -0,0 +1,3 @@ +# Automatically added by dh_installmenu +if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi +# End automatically added section --- glotski-0.2.orig/debian/dirs +++ glotski-0.2/debian/dirs @@ -0,0 +1,3 @@ +usr/games +usr/share/games/glotski +usr/share/pixmaps --- glotski-0.2.orig/debian/control +++ glotski-0.2/debian/control @@ -0,0 +1,16 @@ +Source: glotski +Build-Depends: debhelper, libgnomeui-dev, libgnome32 +Section: games +Priority: optional +Maintainer: Hwei Sheng Teoh +Standards-Version: 3.7.3 + +Package: glotski +Architecture: any +Depends: ${shlibs:Depends} +Description: Slide blocks to reach a goal + Sliding block puzzle game, similar to Klotski. + . + Slide blocks around the puzzle until a certain goal condition is reached. + . + Screenshot available here: http://gfpoken.bigw.org/glotski/ --- glotski-0.2.orig/debian/rules +++ glotski-0.2/debian/rules @@ -0,0 +1,75 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +#export DH_COMPAT=5 + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) CC='gcc -O2 -Wall -g -DLEVELPATH=\"/usr/share/games/glotski/\"' + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cp glotski `pwd`/debian/glotski/usr/games/ + cp icon.xpm `pwd`/debian/glotski/usr/share/pixmaps/glotski.xpm + cp *.lev `pwd`/debian/glotski/usr/share/games/glotski/ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron + dh_installman debian/glotski.6 +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + # This package will appear to build properly with some older versions + # of libgnome32 and related packages, but 1.0.53 is required for + # proper operation. Please upgrade (or install) libgnome32 and related + # packages if package building stops here. + # Checking libgnome32 version: + dpkg --compare-versions `dpkg -s libgnome32|grep "Version:"|cut -c10-` ge 1.0.53-0 || exit 1 + # Looks like libgnome32 is new enough. + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- glotski-0.2.orig/debian/postinst.debhelper +++ glotski-0.2/debian/postinst.debhelper @@ -0,0 +1,5 @@ +# Automatically added by dh_installmenu +if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then + update-menus +fi +# End automatically added section --- glotski-0.2.orig/debian/changelog +++ glotski-0.2/debian/changelog @@ -0,0 +1,70 @@ +glotski (0.2-6) unstable; urgency=low + + * Migrate to gnome2. Thanks to Paul Liu for the + migration patch! (Closes: #460768) + * Add --as-needed to linker flags, to avoid creating dependencies on + libraries that we don't actually need. + * Update to Standards-Version: 3.7.3. + + -- Hwei Sheng Teoh Tue, 15 Jan 2008 07:44:38 -0800 + +glotski (0.2-5) unstable; urgency=low + + * Fix high scores (Closes: #419936) + * Fix compiler warning (poptGetArgs returns const pointer, need cast) + * Update to Standards-Version: 3.7.2 + * Update to DH_COMPAT=5 + * Don't ignore Make errors in debian/rules clean rule. + * Update FSF address in debian/copyright. + + -- Hwei Sheng Teoh Sat, 15 Sep 2007 08:28:32 -0700 + +glotski (0.2-4) unstable; urgency=low + + * New maintainer (Closes: #219062) + * Tidy up debian/menu. + * Move icon to /usr/share/pixmaps (lintian) + * Switch to dh_installman (lintian) + * Exclude upstream NEWS file (contains nothing except a pithy remark) + * Update debian/copyright. + * Improved manpage. + + -- Hwei Sheng Teoh Wed, 25 May 2005 16:12:26 -0700 + +glotski (0.2-3) unstable; urgency=low + + * Maintainer field set to QA Group. + * Long description improved. Closes: #209645 + * Upstream install documentation removed from /usr/share/doc/glotski. + * Updated Standards-Version to 3.6.1 + + -- Emanuele Rocca Tue, 27 Jan 2004 16:44:25 +0100 + +glotski (0.2-2.1) unstable; urgency=low + + * NMU + * Recompile to remove obsolete dependency on xlib6g. Closes: #170201. + + -- Daniel Schepler Fri, 14 Mar 2003 01:43:53 -0800 + +glotski (0.2-2) unstable; urgency=low + + * Set Build-Depends in debian/control + + -- William Ono Sun, 19 Mar 2000 19:34:27 -0800 + +glotski (0.2-1) unstable; urgency=low + + * New upstream release. + + -- William Ono Sun, 9 Jan 2000 11:28:30 -0800 + +glotski (0.1-1) unstable; urgency=low + + * Initial Release. + + -- William Ono Fri, 31 Dec 1999 11:02:43 -0800 + +Local variables: +mode: debian-changelog +End: --- glotski-0.2.orig/debian/substvars +++ glotski-0.2/debian/substvars @@ -0,0 +1 @@ +shlibs:Depends=gdk-imlib11, libart2 (>= 1.2.13-5), libaudiofile0 (>= 0.2.3-4), libc6 (>= 2.6.1-1), libdb4.6, libesd0 (>= 0.2.35) | libesd-alsa0 (>= 0.2.35), libglib1.2ldbl (>= 1.2.10-18), libgnome32 (>= 1.2.13-5), libgnomesupport0 (>= 1.2.13-5), libgnomeui32 (>= 1.4.2-3), libgtk1.2 (>= 1.2.10-4), libice6 (>= 1:1.0.0), libsm6, libx11-6, libxext6, libxi6 --- glotski-0.2.orig/debian/glotski.6 +++ glotski-0.2/debian/glotski.6 @@ -0,0 +1,40 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH GLOTSKI 6 "December 31, 1999" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +glotski \- a sliding blocks puzzle +.SH SYNOPSIS +.B glotski +[ -f \fIlevelfile\fR ] +.SH DESCRIPTION +Glotski is a sliding blocks puzzle game. The goal of the game is to slide +the blocks around the board by clicking and dragging them with the mouse, +until the goal position is reached. The goal position is shown in the smaller +window. Usually, the goal position only specifies the location of a subset of +the blocks on the board. +.SH OPTIONS +.TP +\fB-f\fR \fIlevelfile\fR +Start the game with the level specified in \fIlevelfile\fR. If no levelfile +is specified, the game will launch a file selection dialog upon startup. +.SH SEE ALSO +More information about the game is available in the README file, available +as /usr/share/doc/glotski/README.gz on Debian GNU/Linux systems. +.SH AUTHOR +This manual page was written by William Ono +for the Debian GNU/Linux system, but may be used by others. +The original program does not have a manual page. --- glotski-0.2.orig/debian/compat +++ glotski-0.2/debian/compat @@ -0,0 +1 @@ +5 --- glotski-0.2.orig/debian/copyright +++ glotski-0.2/debian/copyright @@ -0,0 +1,40 @@ +The current Debian maintainer is Hwei Sheng Teoh . + +This package was debianized by William Ono on +Fri, 31 Dec 1999 11:02:43 -0800. + +It was downloaded from its temporary home, http://gfpoken.bigw.org/glotski + +Upstream Author: Martin Hock + +Copyright: + + +Glotski 0.2 (Release At Last) January 8, 2000 +All content except for files ending in .lev by Martin Hock +(oxymoron@cmu.edu) +Copyright 1999-2000 Martin Hock. + +All of this software (i.e. everything in this archive) is distributed +under the GNU General Public License, version 2 or higher. It has NO +WARRANTY. Please read COPYING for more info. Stated again in more words: + + 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 2 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. + + +On Debian GNU/Linux systems, the full text of the GNU GPL version 2 can be +found as /usr/share/common-licenses/GPL . +