gnuchess-book (1.01-2) debian-dir only changes

Summary

 debian/README.Debian |   19 +++++++++++++++++
 debian/changelog     |   30 +++++++++++++++++++++++++++
 debian/compat        |    1 
 debian/control       |   19 +++++++++++++++++
 debian/copyright     |   26 ++++++++++++++++++++++++
 debian/rules         |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/watch         |    2 +
 7 files changed, 152 insertions(+)

    
download this patch

Patch contents

--- gnuchess-book-1.01.orig/debian/rules
+++ gnuchess-book-1.01/debian/rules
@@ -0,0 +1,55 @@
+#! /usr/bin/make -f
+
+SHELL = /bin/bash
+
+PGNBOOK := book_1.01.pgn
+
+build: book.dat
+book.dat:
+	dh_testdir $(PGNBOOK)
+	# Spam only if stdout is a tty
+	@ if /usr/bin/tty -s 0>&1; then ( \
+	   echo "---------------------------------------------------------------"; \
+	   echo "Building book, this may take some time. There will be a counter"; \
+	   echo "running to keep you entertained. The PGN file seems to contain "; \
+	   echo -n "`grep -c '^\[White' $(PGNBOOK) 2> /dev/null` games. "        ; \
+	   echo "The actual count will probably be a little less"                ; \
+	   echo "because gnuchess only accepts games played by some hardcoded"   ; \
+	   echo "list of players."                                               ; \
+	   echo "---------------------------------------------------------------"; \
+	   echo -e "book add $(PGNBOOK)\nquit" | /usr/games/gnuchess ); \
+	else ( \
+	   echo "Building book."; \
+	   echo -e "book add $(PGNBOOK)\nquit" | /usr/games/gnuchess &> /dev/null );\
+	fi
+
+clean:
+	dh_testdir $(PGNBOOK)
+	dh_testroot
+	rm -f book.dat
+	dh_clean
+
+install: build
+	dh_testdir $(PGNBOOK)
+	dh_testroot
+	dh_clean
+	dh_installdirs usr/share/games/gnuchess
+	install -m 644 book.dat `pwd`/debian/`dh_listpackages`/usr/share/games/gnuchess
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install
--- gnuchess-book-1.01.orig/debian/README.Debian
+++ gnuchess-book-1.01/debian/README.Debian
@@ -0,0 +1,19 @@
+gnuchess-book - Opening book for gnuchess
+
+The opening book has been split from the binary gnuchess package. The
+format of the binary book is now entirely architecture independent and
+not bound to change with every new version of gnuchess. If you want to
+build your own books, just create it from PGN [1] by calling gnuchess
+and entering 'book add foobar.pgn'. If you want to use this as the
+default opening book, copy the resulting book.dat file to
+/usr/share/games/gnuchess/book.dat. If you only want to use your own book
+temporarily, put it in the current working directory, this is the first
+default location where gnuchess looks for the book.
+
+Lukas Geyer <lukas@debian.org>  Wed Oct  9 19:02:54 EDT 2002
+
+[1] Actually, you have to use a sort of restricted PGN, as gnuchess does
+not yet have a real PGN parser. This means in particular that the PGN
+should have no comments and variations. Also gnuchess does only add
+games to the opening book if it knows one of the players, i.e. it checks
+the names of the players against a hardcoded list of grandmasters.
--- gnuchess-book-1.01.orig/debian/compat
+++ gnuchess-book-1.01/debian/compat
@@ -0,0 +1 @@
+7
--- gnuchess-book-1.01.orig/debian/copyright
+++ gnuchess-book-1.01/debian/copyright
@@ -0,0 +1,26 @@
+This is the opening book of gnuchess. It used to be distributed
+together with gnuchess up to version 5.02. The Debian package was
+prepared by Lukas Geyer <lukas@debian.org>
+
+Upstream location of the book is
+ftp://ftp.gnu.org/pub/gnu/chess/book_1.01.pgn.gz
+
+This opening book is in the public domain. It was put together and
+cleaned up by Stuart Cracraft <cracraft@earthlink.net> and Simon
+Waters <simon@wretched.demon.co.uk>. Stuart wrote the following in
+email, when asked about copyright.
+
+  I personally built the GNU Chess book from a large set of FREE
+  game collections from the University of Pittsburgh chess server.
+  These are NOT copyrighted and are PUBLIC. I also wrote the code
+  for the GNU Chess book without any reference at all to any other
+  author.
+
+  It is GNU Chess code and PUBLIC book that is non-copyrightable.
+
+  --Stuart
+
+Note that all the code is in gnuchess, so this package itself is
+purely public domain.
+
+Lukas Geyer <lukas@debian.org>
--- gnuchess-book-1.01.orig/debian/changelog
+++ gnuchess-book-1.01/debian/changelog
@@ -0,0 +1,30 @@
+gnuchess-book (1.01-2) unstable; urgency=low
+
+  * Actually add watch file.
+
+ -- Bradley Smith <bradsmith@debian.org>  Mon, 01 Jun 2009 01:50:50 +0100
+
+gnuchess-book (1.01-1) unstable; urgency=low
+
+  * New upstream release.
+  * New maintainer. Closes: #503525.
+  * Update compat version to 7 and upgrade debhelper depenency to (>= 7).
+  * Update Standards-Version to 3.8.0. (No changes).
+  * Add Homepage field.
+  * Add Vcs-* fields.
+  * Add watch file.
+
+ -- Bradley Smith <bradsmith@debian.org>  Sun, 26 Oct 2008 20:17:23 +0000
+
+gnuchess-book (1.00-2) unstable; urgency=low
+
+  * Require bash for debian/rules, because we are using echo -e.
+    (closes: #264430)
+
+ -- Lukas Geyer <lukas@debian.org>  Wed, 11 Aug 2004 22:15:04 -0400
+
+gnuchess-book (1.00-1) unstable; urgency=low
+
+  * Initial release (closes: #163455)
+
+ -- Lukas Geyer <lukas@debian.org>  Wed,  9 Oct 2002 19:53:27 -0400
--- gnuchess-book-1.01.orig/debian/watch
+++ gnuchess-book-1.01/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://ftp.gnu.org/gnu/chess/book_(\d\.\d\d).pgn.gz
--- gnuchess-book-1.01.orig/debian/control
+++ gnuchess-book-1.01/debian/control
@@ -0,0 +1,19 @@
+Source: gnuchess-book
+Section: games
+Priority: optional
+Maintainer: Bradley Smith <bradsmith@debian.org>
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: gnuchess (>= 5.04)
+Standards-Version: 3.8.0
+Homepage: http://www.gnu.org/software/chess/
+Vcs-Git: http://git.brad-smith.co.uk/git/debian/pkg-gnuchess-book.git
+Vcs-Browser: http://git.brad-smith.co.uk/?p=debian/pkg-gnuchess-book.git
+
+Package: gnuchess-book
+Architecture: all
+Depends: gnuchess (>= 5.04)
+Description: Opening book for gnuchess
+ This is the opening book for gnuchess. It was formerly distributed together
+ with gnuchess, now it has been separated due to size and
+ architecture-independence. It is recommended that you install it if you
+ want to use gnuchess.