debian/0000755000000000000000000000000012162370460007167 5ustar debian/changelog0000644000000000000000000001103312162367637011053 0ustar xsol (0.31-11) unstable; urgency=low * debian/rules: specify the libs after the object files (Closes: #712783) * debian/control: replace lesstif lib with motif lib. * debian/patches/20-fix-spelling-mistake.patch: correct a spelling mistake in the main window title. Thanks to Graham Inggs ! * debian/patches/30-fix-paint-glitches.patch: fix paint glitches when moving cards. Thanks to Graham Inggs ! (Closes: #269046) * debian/patches/40-fix-undo.patch: fix undo issue. Thanks to Graham Inggs ! (Closes: #599242) -- Mònica Ramírez Arceda Tue, 25 Jun 2013 21:29:13 +0200 xsol (0.31-10) unstable; urgency=low * debian/control: - Add libxt-dev to Build-Depends. (Closes: #707929) - Use the canonical URI in VCS-* fields. - Bump to Standards-Version 3.9.4. No changes required. * debian/xsol.desktop: - Exec key: remove wrong single quotes. Quotes are not needed since the command has no arguments. - Add Keywords key. -- Mònica Ramírez Arceda Wed, 19 Jun 2013 09:06:22 +0200 xsol (0.31-9) unstable; urgency=low * Update maintainer's email. * Update debian/copyright. * Update compatibility level to 9. * Enable security hardening build flags. * Bump to Standards-Version 3.9.3. No changes required. * Remove unused and empty debian/docs file. -- Mònica Ramírez Arceda Thu, 26 Apr 2012 13:43:37 +0200 xsol (0.31-8) unstable; urgency=low * Add Vcs-Git, Vcs-Browser fields in debian/control. * debian/control: Remove initial article in the short description. * debian/copyright: Switch to DEP-5 format and add icon copyright. * 10-remove-alignment-option.patch: Remove XmNchildVerticalAlignment option to avoid the text "Settings" overlaps the text "Timed Game". (Closes: #641534) * debian/rules: Don't search headers or libraries in /usr/X11R6/. This directory is not present any more. * debian/icons: Add icons for menus. xsol.svg is the icon's source. Thanks to Simó Albert i Beltran ! * debian/xsol.desktop: Add a menu entry in desktop menus. (Closes: #641716) * debian/menu: add an icon to Debian menu. * Bump to Standards-Version 3.9.2. No changes required. -- Mònica Ramírez Arceda Mon, 11 Nov 2011 00:58:11 +0100 xsol (0.31-7) unstable; urgency=low * Adopt the package. (Closes: #554721) * Correct typo in package description. (Closes: #601136) -- Mònica Ramírez Arceda Tue, 01 Feb 2011 11:11:43 +0100 xsol (0.31-6) unstable; urgency=low * QA upload. * Changed control file - Changed short description (Closes: #493447). - Changed long description - Changed mantainer to Debian QA Group. - Added Homepage. * Changed copyright file. * Added dirs file. * Changed rules file to use dh command (Closes: #438348). * Added xsol.manpages. * Added install file. * Changed menu file syntax. -- Mònica Ramírez Arceda Tue, 12 Oct 2010 19:45:12 +0200 xsol (0.31-5) unstable; urgency=low * Upped lesstif build-dependency to v2, closes: #347048. -- Josip Rodin Sun, 18 Jun 2006 13:09:02 +0200 xsol (0.31-4.1) unstable; urgency=high * Non-maintainer upload. * Removed xlibs-dev build-dep (Closes: #347048). -- Luk Claes Fri, 20 Jan 2006 18:30:49 +0100 xsol (0.31-4) unstable; urgency=low * Ackgnowledging the NMU (thanks JHM!). * Random packaging updates. * Added build dependencies, closes: #101634. * No longer depends on xlib6g, closes: #170208. -- Josip Rodin Thu, 23 Jan 2003 15:36:48 +0100 xsol (0.31-3.1) unstable; urgency=low * NMU to fix LessTif dependency. (Closes: #48182). * Added -lICE -lSM to link line. -- J.H.M. Dassen (Ray) Sat, 30 Oct 1999 12:26:06 +0200 xsol (0.31-3) unstable; urgency=low * Updated for Policy 3.x. Moved binary to /usr/games, and manpage to /usr/share/man/man6, to comply with Policy section 5.10. -- Josip Rodin Sun, 19 Sep 1999 19:59:45 +0200 xsol (0.31-2) unstable; urgency=low * Fixed a few errors in menu file and the manpage. * Leave Makefile untouched, instead do everything from debian/rules. -- Josip Rodin Thu, 11 Mar 1999 20:02:17 +0100 xsol (0.31-1) unstable; urgency=low * Initial Release. -- Josip Rodin Sun, 8 Nov 1998 18:00:00 +0100 Local variables: mode: debian-changelog End: debian/install0000644000000000000000000000021211656732045010563 0ustar xsol usr/games debian/icons/xsol.xpm usr/share/pixmaps debian/icons/xsol.png usr/share/pixmaps debian/xsol.desktop usr/share/applications debian/dirs0000644000000000000000000000001211521755165010053 0ustar usr/games debian/xsol.60000644000000000000000000000412011521755165010247 0ustar .TH XSOL 6 "March 1999" "Debian Project" .SH NAME xsol \- X Solitaire .SH SYNOPSIS .B xsol .br .SH "DESCRIPTION" This manual page briefly documents .BR xsol , a simple Motif/ Lesstif version of the classic solitaire game. It was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .br .SH "HOW TO PLAY" Solitaire is a card game. At the start you are presented with seven columns of cards. First has only one card, second one has two, third three and so on (28 in total), but only the first card in every column is shown ('opened'). Also there is the deck (24 cards at the start), and four emtpy places for suit stacks. .sp Cards in the deck and in the columns are unsorted, and the object of Solitaire is to use all the cards in the deck to build up the four suit stacks in ascending order, beginning with the aces. You can accomplish that by dragging and dropping the red onto the black (and black onto the red) cards between the columns, and between the deck and the columns (but not the other way around). When you see a whole turned card, click on it to see it ('open' it) and to be able to move it somewhere. Deck is opened by clicking on it; once you reach the end of the deck, just click once more and you'll reopen it. .sp If you reach a point when you can't move any more cards to the stacks, and rearranging cards in columns and the deck gets you nowhere, the game is over. Start it again. .SH OPTIONS You can access all options within the program, through the 'Game' menu. There you have four options: .br .B New game - start a new game, .br .B Undo - undo last move, .br .B Options - configure these options: .br Timed game - should we count the seconds? .br Keep score - should we count the score? .br Show number of cards in deck - should we show it? .br Draw one - card from the deck, .br Draw three - cards from the deck. .br .B About - shows information about the author. .br .B Exit - quits the game. .SH AUTHOR .B xsol was written by Brian Masney , and this manual page was written by Josip Rodin . debian/xsol.desktop0000644000000000000000000000027712160005360011545 0ustar [Desktop Entry] Exec=/usr/games/xsol GenericName=Klondike Solitaire Icon=xsol Name=X Solitaire Terminal=false Type=Application Categories=Game;CardGame; Keywords=game;card;cardgame;solitaire debian/source/0000755000000000000000000000000011656732230010473 5ustar debian/source/include-binaries0000644000000000000000000000002611656732230013631 0ustar debian/icons/xsol.png debian/source/format0000644000000000000000000000001411521755165011704 0ustar 3.0 (quilt) debian/icons/0000755000000000000000000000000011656731722010313 5ustar debian/icons/xsol.xpm0000644000000000000000000000467211654232156012032 0ustar /* XPM */ static char *xsol[] = { /* columns rows colors chars-per-pixel */ "32 32 59 1 ", " c #334633463346", ". c #3B4C3B4C3B4C", "X c #439343934393", "o c #4C714C714C71", "O c #542154215421", "+ c #5B8E5B8E5B8E", "@ c gray39", "# c #69D069D069D0", "$ c #72E072E072E0", "% c #7AFA7AFA7AFA", "& c #ABAE33643364", "* c #AE7A3A203A20", "= c #B0AF3EBF3EBF", "- c #B2C7449A449A", "; c #B5424A674A67", ": c #B93854545454", "> c #BBEE5BC25BC2", ", c #BEBE62E362E3", "< c #C0C067676767", "1 c #C3C36E436E43", "2 c #C66874BA74BA", "3 c #C7C779797979", "4 c #C9FC7D167D16", "5 c #851085108510", "6 c #8BB88BB88BB8", "7 c #935393539353", "8 c #9A759A759A75", "9 c #A4EDA4EDA4ED", "0 c #ACACACACACAC", "q c #B269B269B269", "w c #BAFABAFABAFA", "e c #CCE284798479", "r c #CF2489898989", "t c #D0D08DF48DF4", "y c #D352947A947A", "u c #D7D79DF39DF3", "i c #D7D7A1A1A1A1", "p c #DC5BAA2AAA2A", "a c #DF5FB130B130", "s c #E136B60BB60B", "d c #E3E3BC66BC66", "f c #C491C491C491", "g c #CD22CD22CD22", "h c #D615D615D615", "j c #DB23DB23DB23", "k c #E726C484C484", "l c #E8E8C7C7C7C7", "z c #EA3FCAF5CAF5", "x c #ED42D227D227", "c c #EFEFD9D9D9D9", "v c #F1F1DDDDDDDD", "b c #E52DE52DE52D", "n c #ED86ED86ED86", "m c #F4F4E5E5E5E5", "M c #F7DDEB6AEB6A", "N c #F8F8EEEEEEEE", "B c #F439F439F439", "V c #FA79F348F348", "C c #FFD5FFBEFFBE", /* pixels */ "CCCCCb9568fCCCCCCCCCCCCCMVCCCCCC", "CCCCj6%oX+$qCCCCCCCCCCVpryNCCCCC", "CCCC7$. .%hCCCCCCCCVp1-eyNCCCC", "CCCb5o OqCCCCCCCCp1&&-4yNCCC", "CCCb5X XqCCCCCCCp1&&&&-eyMCC", "CCCC7+ #hCCCCCVp1&&&&&&-eyNC", "Cnq655X X569jCCCp2&&&&&&&&-eyV", "n75+XXX XXo+5gCs2&&&&&&&&&&;eu", "0%. o5By=&&&&&&&&&&&>e", "6@ #jM4&&&&&&&&&&;ex", "7+ . #hCM4*&&&&&&&;exC", "q$ +Oo 5BCCM3&&&&&&-exCC", "B8#. O5X5o .%hCCCCM3&&&&;exCCC", "CBw8587%.59659bCCCCCCm3&&;elCCCC", "CCCCCC6+ $jCCCCCCCCCCCm3;elCCCCC", "CCCCCCf99qBCCCCCCCCCCCCmpxCCCCCC", "CCMduplVCVkpidNCCCCCCCCCqfCCCCCC", "Cx2:;>eumr:-:2tvCCCCCCCq#%wCCCCC", "M1&&&&;ee=&&&*2tVCCCCCh$ .5jCCCC", "a=&&&&&>,&&&&&=rlCCCCj%. o6bCCC", "y&&&&&&**&&&&&&4pCCCb5X +7nCC", "i&&&&&&&&&&&&&*esCCn6o @8BC", "k-&&&&&&&&&&&&;exCB7o #8B", "N2&&&&&&&&&&&&2yVC9+ $q", "Ck;&&&&&&&&&&>elCb% X5", "CVp-&&&&&&&&-eaCCw# %", "CCVu=&&&&&&-epCCCw@ %", "CCCVe*&&&&=4uVCCCj% o@$. X6", "CCCCM2&&&*2yVCCCCC0$O.O5+$$o.O50", "CCCCCc<&&1rmCCCCCCCf8686X@7878fC", "CCCCCCl>,rcCCCCCCCCCCCn% X6BCCCC", "CCCCCCCdyzCCCCCCCCCCCCB6657BCCCC" }; debian/icons/xsol.svg0000644000000000000000000001473511654234562012031 0ustar image/svg+xml debian/icons/xsol.png0000644000000000000000000000451311656731722012011 0ustar PNG  IHDR00WsBIT|d pHYspMBtEXtSoftwarewww.inkscape.org<IDAThsUΕ$ E (JxiKegr_tک*NrUA*J $pBN39޽u23 A `0t&3k) !K0m4; i<0 (F@pH3po&k Jי5 I@5 N8 1]C%_/ZH n0;wo"_OizEX<"iPoƕ*KZ2&ʀ'C8Ń%]#w*`(5XH `\XGFZRIRF ݦ6K, P%xn4k0gBRe',L%'!_g3j \3BoH#竁n *z`fK3 | . 'k1&0 F3Q^ pS59{kd7p8ff n{`nx`qMpVe6Yv*ţO۷ρxrK774,<`+e0[ᆊ6 p^Kxx x4\*G!Vi*~h E1 F8!P'`jyϬ!܉pר3p?$pl8 YG#.@q. N]pzb%4` ^'ecYb4AnDufG rKh@cÝFfits"hP*R`jS"(3h787f7SP#H\):jy*LH41Ex[ oeF]6Y$:_jDap9Az!2Ao Е/8$zRixX?D7hތ=P!=IENDB`debian/compat0000644000000000000000000000000211746224650010373 0ustar 9 debian/watch0000644000000000000000000000020511521755165010224 0ustar # Compulsory line, this is a version 3 file version=3 ftp://sunsite.unc.edu/pub/Linux/X11/games/xsol-(.*).source.tgz debian uupdate debian/rules0000755000000000000000000000043612160776451010262 0ustar #!/usr/bin/make -f # Use hardening options to build the package export DEB_BUILD_MAINT_OPTIONS = hardening=+all LIBS+=-lXm -lXt -lX11 %: dh $@ override_dh_auto_build: $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o xsol xsol.c $(LIBS) override_dh_auto_clean: dh_auto_clean $(RM) xsol debian/control0000644000000000000000000000120512162241100010554 0ustar Source: xsol Section: games Priority: optional Maintainer: Mònica Ramírez Arceda Build-Depends: debhelper (>= 9), libmotif-dev, libxt-dev Standards-Version: 3.9.4 Homepage: ftp://sunsite.unc.edu/pub/Linux/X11/games/ Vcs-Git: git://anonscm.debian.org/collab-maint/xsol.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/xsol.git Package: xsol Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Solitaire game for the X Window system This is a simple Motif/Lesstif version of the classic solitaire game: Klondike Solitaire. . This version of the game runs under X Window System. debian/xsol.manpages0000644000000000000000000000001611521755165011675 0ustar debian/xsol.6 debian/copyright0000644000000000000000000000362311746223603011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: X Solitaire Source: ftp://sunsite.unc.edu/pub/Linux/X11/games/ Files: * Copyright: 1998 Brian Masney License: GPL-2+ Files: debian/* Copyright: 1998-2006 Josip Rodin 2010-2012 Mònica Ramírez Arceda License: GPL-2+ Files: debian/xsol.svg debian/xsol.xpm Copyright: 2011 Simó Albert i Beltran License: CC-BY-SA-3.0 License: GPL-2+ 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: CC-BY-SA-3.0 You are free: to Share (to copy, distribute and transmit the work) and to Remix (to adapt the work) under the following conditions: . Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). . Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. . For more information, see http://creativecommons.org/licenses/by-sa/3.0/ debian/patches/0000755000000000000000000000000012162252261010614 5ustar debian/patches/series0000644000000000000000000000015512162252236012034 0ustar 10-remove-alignment-option.patch 20-fix-spelling-mistake.patch 30-fix-paint-glitches.patch 40-fix-undo.patch debian/patches/40-fix-undo.patch0000644000000000000000000000210512162252261013605 0ustar Description: Fix undo. After undo-ing, the 'prev' pointer of the card that has been exposed by the undo needs to be set to NULL. The code to do this existed, but was being called before the undo. This patch relocates this line of code to after the undo. Author: Graham Inggs Last-Update: 2013-06-23 --- a/xsol.c +++ b/xsol.c @@ -403,7 +403,6 @@ } temp = piles[temp_undo->topile]; for(i=0; inumcards-1; i++) temp = temp->next; - if(piles[temp_undo->topile] != NULL) piles[temp_undo->topile]->prev = NULL; if(piles[temp_undo->frompile] != NULL) piles[temp_undo->frompile]->prev = temp; piles[temp_undo->topile] = temp->next; for(i=0; inumcards; i++) { @@ -419,6 +418,7 @@ if(temp_undo->frompile == 7) numcards++; else if(temp_undo->topile == 7) numcards--; } + if(piles[temp_undo->topile] != NULL) piles[temp_undo->topile]->prev = NULL; if(temp_undo->score != 0) UpScore(temp_undo->score * -1); undo = undo->next; free(temp_undo); debian/patches/20-fix-spelling-mistake.patch0000644000000000000000000000073612162246311016115 0ustar Description: Correct a spelling mistake in the main window title. Author: Graham Inggs Last-Update: 2013-06-23 --- a/xsol.c +++ b/xsol.c @@ -152,7 +152,7 @@ } } n = 0; - XtSetArg(args[n], XmNtitle, "X Solitare"); n++; + XtSetArg(args[n], XmNtitle, "X Solitaire"); n++; XtSetArg(args[n], XmNwidth, 690); n++; XtSetArg(args[n], XmNheight, 460); n++; parent = XtAppInitialize(&app_context, NULL, (XrmOptionDescList) NULL, 0, debian/patches/30-fix-paint-glitches.patch0000644000000000000000000000217512162246360015564 0ustar Description: Fix paint glitches when moving cards. Delay calling init_cards until score_widget has been managed. We also specify a name when creating score_widget (for some reason this causes it to be drawn with the correct height). Author: Graham Inggs Last-Update: 2013-06-23 --- a/xsol.c +++ b/xsol.c @@ -186,19 +186,20 @@ n = 0; XtSetArg(args[n], XmNalignment, XmALIGNMENT_END); n++; - score_widget = XmCreateLabel(mainwindow, "", args, n); + score_widget = XmCreateLabel(mainwindow, "score_widget", args, n); XtAppAddTimeOut(app_context, 1000, (XtTimerCallbackProc) timerCB, (XtPointer) app_context); XtManageChild(mainwindow); XtRealizeWidget(parent); display = XtDisplay(drawa); gc = XCreateGC(display , XtWindow(drawa), 0, (XGCValues *) NULL); - init_cards(); XmMainWindowSetAreas(mainwindow, menubar, (Widget) NULL, (Widget) NULL, (Widget) NULL, drawa); XtVaSetValues(mainwindow, XmNmessageWindow, score_widget, NULL); XtManageChild(score_widget); + init_cards(); + XtAppMainLoop(app_context); return 0; } debian/patches/10-remove-alignment-option.patch0000644000000000000000000000151111644066570016642 0ustar Description: Remove XmNchildVerticalAlignment option to avoid the text "Settings" overlaps the text "Timed Game". Furthermore, this option was generating the warning: "XmFrameConfigureChildren doesn't implementXmALIGNMENT_BASELINE_BOTTOM yet". With this patch, this warning is not shown any more. Author: Mònica Ramírez Arceda Last-Update: 2011-10-08 --- a/xsol.c +++ b/xsol.c @@ -296,7 +296,7 @@ title = XtVaCreateManagedWidget("Settings", xmLabelWidgetClass, frame, XmNchildType, XmFRAME_TITLE_CHILD, XmNchildHorizontalAlignment, XmALIGNMENT_BEGINNING, - XmNchildVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM, NULL); + NULL); rowcol = XtVaCreateManagedWidget("rowcol", xmRowColumnWidgetClass, frame, NULL); debian/menu0000644000000000000000000000023311645364752010070 0ustar ?package(xsol): \ needs="X11" \ section="Games/Card" \ title="X Solitaire" \ command="/usr/games/xsol" \ icon="/usr/share/pixmaps/xsol.xpm"