gap (4r4p12-2) debian-dir only changes

Summary

 debian/README.Debian                  |   64 +++++++++++
 debian/README.source                  |   25 ++++
 debian/changelog                      |  184 ++++++++++++++++++++++++++++++++++
 debian/changelog-3.4.Debian           |   41 +++++++
 debian/changelog-4.2.Debian           |   92 +++++++++++++++++
 debian/compat                         |    1 
 debian/control                        |   93 +++++++++++++++++
 debian/copyright                      |   96 +++++++++++++++++
 debian/doc/Makefile                   |   40 +++++++
 debian/doc/gac.1                      |   69 ++++++++++++
 debian/doc/gap-policy.html/ch1.html   |  102 ++++++++++++++++++
 debian/doc/gap-policy.html/ch2.html   |  103 +++++++++++++++++++
 debian/doc/gap-policy.html/ch3.html   |   96 +++++++++++++++++
 debian/doc/gap-policy.html/ch4.html   |   90 ++++++++++++++++
 debian/doc/gap-policy.html/ch5.html   |   92 +++++++++++++++++
 debian/doc/gap-policy.html/ch6.html   |  124 ++++++++++++++++++++++
 debian/doc/gap-policy.html/index.html |   97 +++++++++++++++++
 debian/doc/gap-policy.sgml            |   83 +++++++++++++++
 debian/doc/gap-policy.txt             |  145 ++++++++++++++++++++++++++
 debian/doc/gap.1                      |  124 ++++++++++++++++++++++
 debian/doc/gap2man                    |   46 ++++++++
 debian/doc/gapdoc2man                 |   13 ++
 debian/doc/update-gap-workspace.1     |   48 ++++++++
 debian/gap-core.dirs                  |    4 
 debian/gap-core.install               |    6 +
 debian/gap-core.links                 |    2 
 debian/gap-core.manpages              |    2 
 debian/gap-core.menu                  |    5 
 debian/gap-core.postinst              |   18 +++
 debian/gap-core.triggers              |    2 
 debian/gap-dev.dirs                   |    1 
 debian/gap-dev.install                |    3 
 debian/gap-dev.links                  |    1 
 debian/gap-dev.manpages               |    1 
 debian/gap-doc.README.Debian          |   10 +
 debian/gap-doc.doc-base.ext           |   12 ++
 debian/gap-doc.doc-base.fullindex     |   16 ++
 debian/gap-doc.doc-base.new           |   20 +++
 debian/gap-doc.doc-base.prg           |   23 ++++
 debian/gap-doc.doc-base.ref           |   13 ++
 debian/gap-doc.doc-base.tut           |   11 ++
 debian/gap-doc.links                  |    2 
 debian/gap-libs.dirs                  |    1 
 debian/gap-libs.install               |    1 
 debian/gap-online-help.install        |    8 +
 debian/gap.debian                     |   52 +++++++++
 debian/gap.xpm                        |   43 +++++++
 debian/rules                          |  131 ++++++++++++++++++++++++
 debian/tarball                        |   43 +++++++
 debian/update-gap-workspace           |   35 ++++++
 50 files changed, 2334 insertions(+)

    
download this patch

Patch contents

--- gap-4r4p12.orig/debian/gap-core.menu
+++ gap-4r4p12/debian/gap-core.menu
@@ -0,0 +1,5 @@
+?package(gap-core):needs="text" section="Applications/Science/Mathematics" \
+  title="GAP"\
+  command="/usr/bin/gap"\
+  icon="/usr/share/pixmaps/gap.xpm"\
+  longtitle="GAP - Groups, Algorithms and Programming"
--- gap-4r4p12.orig/debian/gap-doc.doc-base.new
+++ gap-4r4p12/debian/gap-doc.doc-base.new
@@ -0,0 +1,20 @@
+Document: gap-doc-new
+Title: GAP - New Features for Developers
+Author: The GAP Group
+Abstract: This manual describes certain features of GAP, which meet the
+ following conditions: 
+ .
+ * They are new. Usually they were introduced at the last major release of GAP.
+ .
+ * They are likely to be of more interest to GAP programmers and package
+ developers than to interactive users.
+ .
+ * We wish to retain the freedom to make some changes in them at the time of the
+ next release.
+Section: Science/Mathematics
+
+Format: dvi
+Files: /usr/share/doc/gap-doc/doc/new/manual.dvi.gz
+
+Format: pdf
+Files: /usr/share/doc/gap-doc/doc/new/manual.pdf
--- gap-4r4p12.orig/debian/gap-doc.doc-base.ext
+++ gap-4r4p12/debian/gap-doc.doc-base.ext
@@ -0,0 +1,12 @@
+Document: gap-doc-ext
+Title: Extending GAP
+Author: The GAP Group
+Abstract: Extending GAP explains how to create files and functions that will
+ work together with mechanisms built in GAP.
+Section: Science/Mathematics
+
+Format: dvi
+Files: /usr/share/doc/gap-doc/doc/ext/manual.dvi.gz
+
+Format: pdf
+Files: /usr/share/doc/gap-doc/doc/ext/manual.pdf
--- gap-4r4p12.orig/debian/gap-libs.dirs
+++ gap-4r4p12/debian/gap-libs.dirs
@@ -0,0 +1 @@
+usr/share/gap/pkg
--- gap-4r4p12.orig/debian/gap-doc.doc-base.prg
+++ gap-4r4p12/debian/gap-doc.doc-base.prg
@@ -0,0 +1,23 @@
+Document: gap-doc-prg
+Title: Programming in GAP4
+Author: The GAP Group
+Abstract: The chapters 2 and 3 of this manual describe how the knowledge about
+ GAP objects is used by the system, via the so-called method selection
+ mechanism, and how such knowledge resp. objects with such knowledge can be
+ created.
+ .
+ Chapter 4 gives some simple examples of how to add new functionality to the
+ system.
+ .
+ A more involved example for the design of new GAP objects can be found in
+ Chapter 5. In particular, see Sections 5.1 and 5.2 for finding out whether
+ this manual is useful for you at all.
+ .
+ One more example is discussed in Chapter 6.
+Section: Science/Mathematics
+
+Format: dvi
+Files: /usr/share/doc/gap-doc/doc/prg/manual.dvi.gz
+
+Format: pdf
+Files: /usr/share/doc/gap-doc/doc/prg/manual.pdf
--- gap-4r4p12.orig/debian/gap-core.install
+++ gap-4r4p12/debian/gap-core.install
@@ -0,0 +1,6 @@
+etc/gap.vim usr/share/doc/gap-core/etc/
+etc/gap_indent.vim usr/share/doc/gap-core/etc/
+etc/README.vim-utils usr/share/doc/gap-core/etc/
+debian/update-gap-workspace usr/bin
+debian/gap.xpm usr/share/pixmaps/
+sysinfo.gap /usr/lib/gap
--- gap-4r4p12.orig/debian/gap-core.links
+++ gap-4r4p12/debian/gap-core.links
@@ -0,0 +1,2 @@
+usr/share/man/man1/gap.1 usr/share/man/man1/gap.real.1
+usr/lib/gap/sysinfo.gap  usr/share/gap/sysinfo.gap
--- gap-4r4p12.orig/debian/gap-doc.doc-base.fullindex
+++ gap-4r4p12/debian/gap-doc.doc-base.fullindex
@@ -0,0 +1,16 @@
+Document: gap-doc-fullindex
+Title: GAP Manual Index
+Author: The GAP Group
+Abstract: This index covers the five main books of the GAP manual, pages are
+ given with respect to each manual: Ref, Tut, Prg, New, and Ext.
+ .
+ A page number in italics refers to a whole section which is devoted to
+ the indexed subject.  Keywords are sorted with case and spaces ignored,
+ e.g., "PermutationCharacter" comes before "permutation group".
+Section: Science/Mathematics
+
+Format: dvi
+Files: /usr/share/doc/gap-doc/doc/fullindex.dvi.gz
+
+Format: pdf
+Files: /usr/share/doc/gap-doc/doc/fullindex.pdf
--- gap-4r4p12.orig/debian/changelog-4.2.Debian
+++ gap-4r4p12/debian/changelog-4.2.Debian
@@ -0,0 +1,92 @@
+gap4 (4.2.fix8-1.1) unstable; urgency=low
+
+  * Non-maintainer upload by sponsor while Markus is busy; this is just to
+    get gap4 into the archive at long last and close all those RC bugs in
+    other packages.
+  * debian/control: Change section to non-free/math.
+  * debian/rules: Make all documentation writeable by root (lintian).
+  * Remove add-log-mailing-address from this changelog (lintian).
+
+ -- Colin Watson <cjwatson@debian.org>  Tue,  9 Oct 2001 03:41:55 +0100
+
+gap4 (4.2.fix8-1) unstable; urgency=low
+
+  * added bugfix 8
+  
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Fri, 15 Jun 2001 11:25:29 +0200
+
+gap4 (4.2.fix7-5) unstable; urgency=low
+
+  * removed one of the two README.debian-files
+  * removed upstream INSTALL-File
+  * changed strip of gap-bin
+  
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Thu,  3 May 2001 12:03:18 +0200
+
+gap4 (4.2.fix7-4) unstable; urgency=low
+
+  * modified gap shellscript to handle -l and -m correct
+  * removed doc of gac and test from /usr/share/gap4
+  
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Wed, 25 Apr 2001 10:07:03 +0200
+
+gap4 (4.2.fix7-3) unstable; urgency=low
+
+  * *.ex files deleted
+  * changed Standards-Version to 3.0.1 
+  * added Build-Depends debhelper
+
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Tue, 17 Apr 2001 10:54:46 +0200
+
+gap4 (4.2.fix7-2) unstable; urgency=low
+
+  * make /usr/doc symlinks korrekt
+  * replace dpkg-gencontrol to dh_gencontrol (lintian warning)
+  * add #!/bin/sh to doc/manualindex (lintian warning)
+  
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Wed, 11 Apr 2001 11:33:30 +0200
+
+gap4 (4.2.fix7-1) unstable; urgency=low
+
+  * update to gap 4.2 fix7
+  * moved /usr/doc to /usr/share/doc
+  * moved /usr/man to /usr/share/man
+  * permissions for usr/lib/gap4/* change 0444 -> 0644
+    (lintian suggestion)
+  
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Wed, 28 Mar 2001 13:16:21 +0200
+
+gap4 (4.1.fix7-4) unstable; urgency=low
+
+  * added source of the manpages (pod-files) and minor change to 
+    the gap manpage.
+  * suggestion for xgap4 added (X-frontend for GAP4)
+  * changelog renamed to changelog.Debian (lintian suggestion)
+	
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Tue,  4 Jan 2000 09:29:39 +0100
+
+gap4 (4.1.fix7-3) unstable; urgency=low
+
+  * permissions for usr/lib/gap4/doc/* change 0444 -> 0644
+  * stripe for /usr/lib/gap4/bin/gap added
+  * controlfile update Conflicts & Replace gap
+	
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Mon,  3 Jan 2000 15:07:27 +0100
+	
+gap4 (4.1.fix7-2) unstable; urgency=low
+
+  * /usr/gap4 directory deleted
+
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Mon,  3 Jan 2000 11:31:35 +0100
+
+gap4 (4.1.fix7-1) unstable; urgency=low
+
+  * Initial Release.
+  * GAP-fixes up to fix are included
+  * simple manpages for gap and gac written
+	
+ -- Markus Hetzmannseder <hetzi@hetzi.at>  Wed, 29 Dec 1999 14:08:12 +0100
+
+Local variables:
+mode: debian-changelog
+End:
--- gap-4r4p12.orig/debian/gap-doc.doc-base.tut
+++ gap-4r4p12/debian/gap-doc.doc-base.tut
@@ -0,0 +1,11 @@
+Document: gap-doc-tut
+Title: The GAP Tutorial
+Author: The GAP Group
+Abstract: This manual contains a tutorial introduction to GAP.
+Section: Science/Mathematics
+
+Format: dvi
+Files: /usr/share/doc/gap-doc/doc/tut/manual.dvi.gz
+
+Format: pdf
+Files: /usr/share/doc/gap-doc/doc/tut/manual.pdf
--- gap-4r4p12.orig/debian/README.Debian
+++ gap-4r4p12/debian/README.Debian
@@ -0,0 +1,64 @@
+GAP for Debian
+--------------
+
+GAP (http://www.gap-system.org) provide a lot of extra component, most of them
+are not packaged yet. However, care has been taken so that you can locally
+install them either:
+
+* in /usr/local/share/gap or /usr/local/lib/gap.
+
+* in ~/gap.
+
+Note they must usually be put in a sub-directory called pkg.
+For example, the FactInt package provide a factint directory that must be moved
+to ~/gap/pkg/factint.
+
+To compile some of them, you will need to install the gap-dev package.
+
+Since GAP can provide new packages at random time, I cannot garantee it will
+work, but if it is not possible to install a package, I will be glad if you
+told me about the problem.
+
+Saved Workspaces, or How to make GAP start faster
+-------------------------------------------------
+
+GAP start slowly because it needs to parse all the libraries installed at
+start up. To make GAP start faster, it is possible to save the GAP workspace
+and reload it at next start up.
+
+To that effect, Debian provides a script 'update-gap-workspace', see
+the update-gap-workspace(1) manual page. 
+
+Colors in the GAP shell 
+-----------------------
+
+If you would like the GAP shell to use color to display color for prompt,
+input, etc., you can try colorprompt.g by Frank Luebeck.
+Just enter
+ColorPrompt(true);
+at the GAP prompt.
+Read /usr/share/gap/lib/colorprompt.g for more information.
+
+Browsing GAP Documentation 
+--------------------------
+
+If you prefer nicely typeset documentation, you can use xpdf to display the GAP
+online help.  Make sure xpdf is installed and issue the command
+SetHelpViewer("xpdf");
+at the gap prompt.
+
+Large GAP libraries are compressed
+----------------------------------
+
+To save diskspace, the largest GAP libraries are gzip'ed. GAP automatically
+uncompress them while reading them.
+
+Supporting GAP
+--------------
+
+If you use GAP, please send a short note to support@gap-system.org stating you
+use the Debian packages of GAP so the GAP team can keep track of the number of
+GAP users. This helps them obtaining funding for the project.
+
+--
+Bill Allombert <ballombe@debian.org>  Wed, 12 Jan 2005 13:56:53 +0100
--- gap-4r4p12.orig/debian/rules
+++ gap-4r4p12/debian/rules
@@ -0,0 +1,131 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. 
+# GNU copyright 1997 by Joey Hess.
+# Modified for GAP by Bill Allombert 2002-2003
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_CPU    ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+#strip is handled by dh_strip
+CFLAGS = -g -Wall -fno-strict-aliasing
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -O2
+endif
+
+
+config.status: configure
+	dh_testdir
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
+
+
+build-arch:  config.status build-arch-stamp
+build-arch-stamp:
+	dh_testdir
+
+	$(MAKE) "CFLAGS=$(CFLAGS)" compile
+	#Run a basic test.
+	echo 'ReadTest("tst/combinat.tst");'| bin/*/gap -q | tee debian/gap.tst
+	grep -q "^true" debian/gap.tst 
+
+	touch build-arch-stamp
+
+build-indep: config.status  build-indep-stamp
+build-indep-stamp:
+	dh_testdir
+
+	$(MAKE) -C doc
+	$(MAKE) -C debian/doc
+
+
+	touch build-indep-stamp
+
+build: build-arch 
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp 
+
+	if [ -f Makefile ]; then $(MAKE) clean; fi
+	$(MAKE) -C doc clean
+	$(MAKE) -C debian/doc clean
+
+	rm -f sysinfo.gap 
+	rm -rf bin
+	rm -f debian/gap.tst
+
+	dh_clean
+
+install: install-arch install-indep
+install-arch: build-arch
+	dh_testdir -a
+	dh_testroot -a
+	dh_clean -k -a
+	dh_installdirs -a
+	dh_install -a
+	
+	install -m 755 bin/*/gap debian/gap-core/usr/bin/gap.real
+	install -m 755 debian/gap.debian debian/gap-core/usr/bin/gap
+	install -m 755 bin/*/gac debian/gap-dev/usr/bin/gac
+
+	dh_installdocs -a --all debian/changelog-*.Debian description*
+	dh_installexamples -a
+	dh_installmenu -a
+	dh_installman -a
+	dh_installinfo -a
+	dh_installchangelogs  -a
+
+install-indep: build-arch
+	dh_testdir -i
+	dh_testroot -i
+	dh_clean -k -i
+
+	$(MAKE) -C doc install "DESTDIR=../debian/gap-doc"
+	$(MAKE) -C debian/doc install "DESTDIR=../gap-doc"
+	
+	dh_installdirs -i
+	dh_install -i -X.dvi.gz -X.pdf -X.toc.gz
+	dh_installdocs -i --all debian/changelog-*.Debian description*
+	dh_installexamples -i 
+	dh_installinfo -i
+	dh_installchangelogs  -i
+	
+
+# Build architecture-independent files here.
+# Pass -i to all debhelper commands in this target to reduce clutter.
+binary-indep: build-indep install-indep
+	dh_testdir -i
+	dh_testroot -i
+	dh_link -i
+	dh_compress -i 
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build-arch install-arch
+	dh_testdir -a
+	dh_testroot -a
+	dh_strip -a
+	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- gap-4r4p12.orig/debian/gap.debian
+++ gap-4r4p12/debian/gap.debian
@@ -0,0 +1,52 @@
+#!/bin/bash
+#############################################################################
+##
+##  gap.sh                      GAP                          Martin Schoenert
+##
+##  This is a shell script for the  UNIX  operating system  that starts  GAP.
+##  This is the place  where  you  make  all  the  necessary  customizations.
+##  Then copy this file to a  directory in your  search path,  e.g., '~/bin'.
+##  If you later move GAP to another location you must only change this file.
+##
+##  modified for Debian by Bill Allombert <ballombe@debian.org>
+
+GAP_LIB="$HOME/gap;/usr/local/lib/gap;/usr/local/share/gap;/usr/lib/gap;/usr/share/gap;"
+
+
+#############################################################################
+##
+##  GAP_PRG . . . . . . . . . . . . . . . . .  name of the executable program
+##
+##  Set 'GAP_PRG' to the  name of the executable  program of the  GAP kernel.
+##  The  default is  '`hostname'/gap'.    You  can   either change this    to
+##  '<target>/gap' where <target> is the  target you have selected during the
+##  compilation or create  a symbolic link  from <target> to  '`hostname`' in
+##  the 'bin' directory.
+##
+
+if [ "x$GAP_PRG" = "x" ];  then
+GAP_PRG=/usr/bin/gap.real
+fi
+
+#############################################################################
+##
+##  GAP_WORKSPACE . . . . . . . . . . . .  command to load a saved workspace
+##
+##
+
+for dir in $HOME/gap /var/lib/gap; do
+  GAP_WORKSPACE=$dir/workspace
+  if [ -f $GAP_WORKSPACE ];  then
+    exec  $GAP_PRG -l "$GAP_LIB" -L $GAP_WORKSPACE "$@"
+  elif [ -f $GAP_WORKSPACE.gz ];  then
+    exec  $GAP_PRG -l "$GAP_LIB" -L <(zcat $GAP_WORKSPACE.gz) "$@"
+  fi
+done
+
+#############################################################################
+##
+##  GAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . run GAP
+##
+##  You  probably should  not change  this line,  which  finally starts  GAP.
+##
+exec $GAP_PRG -l "$GAP_LIB" "$@"
--- gap-4r4p12.orig/debian/gap.xpm
+++ gap-4r4p12/debian/gap.xpm
@@ -0,0 +1,43 @@
+/* XPM */
+static char *noname[] = {
+/* width height ncolors chars_per_pixel */
+"32 32 4 1",
+/* colors */
+"  c #000000",
+". c #777777",
+"X c #EEEEEE",
+"o c None",
+/* pixels */
+"oooooooooooooooo ooooooooooooooo",
+"ooooooooooooooo X oooooooooooooo",
+"oooooooooooooo XXX ooooooooooooo",
+"ooooooooooooo XXXXX oooooooooooo",
+"oooooooooooo XXXXXXX ooooooooooo",
+"ooooooooooo XXXXXXXXX oooooooooo",
+"oooooooooo XXXXXXXXXXX ooooooooo",
+"ooooooooo XXXXXXXXXXXXX oooooooo",
+"ooooo    XXXXX    XXXXX    ooooo",
+"oooo      XXX      XXX      oooo",
+"ooo   ..   X   ..   X   ..   ooo",
+"ooo  ....  .  ....  .  ....  ooo",
+"ooo  ..XX  .  ..XX  .  .XXX  ooo",
+"ooo  .XXXX..  .XXX  .  .XXX   oo",
+"oo   .XXXXXX  .XXX  .  .XX   . o",
+"o X  .X    X        .       ..X ",
+" XX  .X    X        .      ... o",
+"o X  .XXX  X  ....  .  .....X oo",
+"oo   .XXX  X  ....  .  ....X ooo",
+"ooo   XX   .  .XXX  .  .XXo oooo",
+"oooo      ..  .XXX  .  .XX ooooo",
+"ooooo    ...  .XXX  .  .X oooooo",
+"oooooo ....XX..XXXX..X.. ooooooo",
+"ooooooo ..XXX..  .X..X. oooooooo",
+"oooooooo XXXXX . .XXXX ooooooooo",
+"ooooooooo XXX .X .XXX oooooooooo",
+"oooooooooo X      XX ooooooooooo",
+"ooooooooooo X... .. oooooooooooo",
+"oooooooooooo XXX . ooooooooooooo",
+"ooooooooooooo XXX oooooooooooooo",
+"oooooooooooooo X ooooooooooooooo",
+"ooooooooooooooo oooooooooooooooo"
+};
--- gap-4r4p12.orig/debian/gap-dev.dirs
+++ gap-4r4p12/debian/gap-dev.dirs
@@ -0,0 +1 @@
+usr/bin
--- gap-4r4p12.orig/debian/gap-core.postinst
+++ gap-4r4p12/debian/gap-core.postinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+case "$1" in
+triggered)
+	# This is triggered by any installation of a GAP file
+	if [ -e /var/lib/gap/workspace ]; then
+          update-gap-workspace update || echo "Cannot update GAP workspace"
+        fi
+        exit 0
+;;
+esac
+
+if [ -e /var/lib/gap/workspace ]; then
+  update-gap-workspace update || echo "Cannot update GAP workspace"
+fi
+
+#DEBHELPER#
--- gap-4r4p12.orig/debian/tarball
+++ gap-4r4p12/debian/tarball
@@ -0,0 +1,43 @@
+#! /bin/bash
+set -e
+tarball="$1"
+toolball="$2"
+if [ -z "$tarball" -o -z "$toolball" ];  then
+  echo "tarball <gap.tar.gz> <tool.tar.gz>" 1>&2
+  exit 1
+fi
+mkdir gap
+tar zxf $tarball -C gap
+# We cannot build the html files with free softwares.
+rm -r gap/gap*/doc/htm gap/gap*/pkg/tomlib/htm
+tar zxf $toolball -C gap
+cd gap
+version=$(grep versionsuffix gap*/doc/build/config.install| sed -e 's/^versionsuffix=//')
+test -z $version && echo "GAP version not found" && exit 1
+echo "GAP version: $version"
+tomlib=$(perl -0777 -ne '/MyVersion[ \t\n]*:=[ \t\n]*"([^"]*)"/m && print "$1"'   gap*/pkg/tomlib/PackageInfo.g)
+test -z $tomlib && echo "TOMLIB version not found" && exit 1
+echo "TOMLIB version: $tomlib"
+mv gap* gap-$version
+cd gap-$version
+#Remove prebuilt binaries and documentation.
+rm -r bin pkg/tomlib/doc etc/emacs
+rm doc/*.pdf doc/*.dvi 
+rm doc/*/*.{pdf,dvi,six,ind,lab,toc}
+mkdir ../gap-gdat-$version ../gap-gdat
+mkdir ../gap-tomlib-$tomlib ../gap-tomlib
+mkdir ../gap-gdat/gap
+mv prim small trans ../gap-gdat/gap
+mkdir prim small trans
+cp ../gap-gdat/gap/prim/*.gd prim
+cp ../gap-gdat/gap/small/*.gd small
+cp ../gap-gdat/gap/trans/*.gd trans
+mv pkg/tomlib ../gap-tomlib/
+mkdir -p pkg/tomlib/gap
+cp ../gap-tomlib/tomlib/gap/*.gd pkg/tomlib/gap/
+cd ..
+tar zcf gap-gdat-$version/gap-gdat.tar.gz -C gap-gdat gap
+tar zcf gap-tomlib-$tomlib/tomlib.tar.gz -C gap-tomlib tomlib
+tar zcf gap-gdat_$version.orig.tar.gz gap-gdat-$version
+tar zcf gap-tomlib_$tomlib.orig.tar.gz gap-tomlib-$tomlib
+tar zcf gap_$version.orig.tar.gz gap-$version
--- gap-4r4p12.orig/debian/gap-online-help.install
+++ gap-4r4p12/debian/gap-online-help.install
@@ -0,0 +1,8 @@
+doc/ext usr/share/gap/doc
+doc/new usr/share/gap/doc
+doc/prg usr/share/gap/doc
+doc/ref usr/share/gap/doc
+doc/tut usr/share/gap/doc
+doc/gapmacro.tex usr/share/gap/doc
+doc/manualindex usr/share/gap/doc
+doc/manual.bib usr/share/gap/doc
--- gap-4r4p12.orig/debian/gap-doc.links
+++ gap-4r4p12/debian/gap-doc.links
@@ -0,0 +1,2 @@
+usr/share/gap/doc usr/share/doc/gap-doc/doc
+usr/share/gap/doc usr/share/doc/gap/doc
--- gap-4r4p12.orig/debian/gap-core.triggers
+++ gap-4r4p12/debian/gap-core.triggers
@@ -0,0 +1,2 @@
+interest /usr/share/gap
+interest /usr/lib/gap
--- gap-4r4p12.orig/debian/gap-dev.links
+++ gap-4r4p12/debian/gap-dev.links
@@ -0,0 +1 @@
+usr/include/gap usr/lib/gap/src
--- gap-4r4p12.orig/debian/gap-core.dirs
+++ gap-4r4p12/debian/gap-core.dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/share/man/man1
+usr/share/doc/gap-core/etc
+var/lib/gap
--- gap-4r4p12.orig/debian/compat
+++ gap-4r4p12/debian/compat
@@ -0,0 +1 @@
+4
--- gap-4r4p12.orig/debian/README.source
+++ gap-4r4p12/debian/README.source
@@ -0,0 +1,25 @@
+GAP sources for Debian
+----------------------
+
+To generate the tarballs used by Debian you must do the following:
+
+1) Download gap-4rXpY.tar.gz and tools4rXpY.tar.gz from
+http://www.gap-system.org/Download/index.html
+
+3) Use the script `tarball' (in the debian directory) as follows:
+sh tarball gap-4rXpY.tar.gz tools4rXpY.tar.gz
+This script merge the two tarball, split them in three and
+remove non-DFSG files, binary files and irrelevant files.
+
+4) you end up with a directory gap with the following tarballs:
+gap_4rXpY.orig.tar.gz
+gap-gdat_4rXpY.orig.tar.gz
+gap-tomlib_1rUpV.orig.tar.gz
+
+5) Please check that the GAP release actually includes new content for gap-gdat
+and gap-tomlib before reuploading them to the archive. It is often not the
+case and this source splitting allow to take advantage of that, by avoiding
+a waste of mirror bandwidth.
+
+--
+Bill Allombert <ballombe@debian.org>  Sun, 15 Feb 2009 19:25:16 +0100
--- gap-4r4p12.orig/debian/gap-core.manpages
+++ gap-4r4p12/debian/gap-core.manpages
@@ -0,0 +1,2 @@
+debian/doc/gap.1
+debian/doc/update-gap-workspace.1
--- gap-4r4p12.orig/debian/update-gap-workspace
+++ gap-4r4p12/debian/update-gap-workspace
@@ -0,0 +1,35 @@
+#! /bin/sh
+
+set -e 
+
+GAP="/usr/bin/gap"
+
+if ! test -x "$GAP"; then
+  exit 0;
+fi
+
+if test `id -u` = 0; then
+  WORKSPACE=/var/lib/gap/workspace
+else
+  WORKSPACE=$HOME/gap/workspace
+fi
+
+case $1 in
+delete) echo -n "Deleting GAP workspace $WORKSPACE.gz: "
+    rm -f $WORKSPACE.gz
+    echo "done.";;
+    
+''|update) echo -n "Updating GAP workspace $WORKSPACE.gz: "
+  rm -f $WORKSPACE.gz
+  mkdir -p `dirname $WORKSPACE`
+  echo 'SaveWorkspace("'$WORKSPACE'");' | $GAP -q -r -R >/dev/null 
+  gzip --best $WORKSPACE
+  echo "done.";;
+*)
+  echo "$0 update"
+  echo "  Update GAP workspace in $WORKSPACE.gz"
+  echo
+  echo "$0 delete"
+  echo "  Delete GAP workspace in $WORKSPACE.gz"
+  ;;
+esac;
--- gap-4r4p12.orig/debian/gap-doc.README.Debian
+++ gap-4r4p12/debian/gap-doc.README.Debian
@@ -0,0 +1,10 @@
+GAP Documentation for Debian
+----------------------------
+
+You might want to use xpdf to display the online help.
+Make sure xpdf is installed and issue the command 
+SetHelpViewer("xpdf");
+at the gap prompt.
+
+--
+Bill Allombert <ballombe@debian.org>  Wed,  7 May 2003 18:27:24 +0200
--- gap-4r4p12.orig/debian/copyright
+++ gap-4r4p12/debian/copyright
@@ -0,0 +1,96 @@
+This package was debianized by Bill Allombert <ballombe@debian.org> on
+Thu, 26 Sep 2002 20:53:12 +0200
+
+--Previous GAP packages (not GPL)--
+GAP 4r2 was packaged by Markus Hetzmannseder <hetzi@hetzi.at> on Wed, 29 Dec
+1999 14:08:12 +0100.
+
+GAP 3.4 was packaged by John Lapeyre <lapeyre@physics.arizona.edu> on
+Wed, 21 Jan 1998 20:20:03 -0700.
+-----------------------------------
+
+It was downloaded from <ftp://ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/>
+Website: <http://www.gap-system.org/>
+
+Copyright: GPL
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+Full copyright statement:
+
+     Copyright copyright (1987--2002) by the GAP Group, 
+
+     incorporating  the  Copyright  copyright  1999,  2000  by  School  of
+Mathematical  and  Computational  Sciences, University of St Andrews, North
+Haugh, St Andrews, Fife KY16 9SS, Scotland
+
+     being  the  Copyright  copyright  1992  by Lehrstuhl D für
+Mathematik,  RWTH, 52056 Aachen, Germany, transferred to St Andrews on July
+21st, 1997.
+
+     except for files in the distribution, which have an explicit different 
+copyright  statement.  In particular, the copyright of packages distributed
+with GAP is usually with the package authors or their institutions.
+
+     
+     
+
+     GAP  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. For details, see the file `GPL' in the `etc' directory
+of the GAP distribution or see URL <http://www.gnu.org/licenses/gpl.html>
+
+     If you obtain GAP please send us a short notice to that effect, e.g., 
+an  e-mail  message  to the address <gap@dcs.st-and.ac.uk>, containing
+your  full  name and address. This allows us to keep track of the number of
+GAP users.
+
+     If  you  publish  a mathematical result that was partly obtained using
+GAP,  please cite GAP, just as you would cite another paper that you used
+(see  below  for  sample  citation).  Also we would appreciate if you could
+inform us about such a paper.
+
+     Specifically, please refer to
+
+     [GAP]  The  GAP  Group,  GAP  ---  Groups,  Algorithms,  and
+Programming, Version 4.3; 2002 (http://www.gap-system.org) 
+
+     (Should  the  reference  style  require  full  addresses  please  use:
+``Centre   for   Interdisciplinary   Research   in  Computational  Algebra,
+University of St Andrews, North Haugh, St Andrews, Fife KY16 9SS, Scotland; 
+Lehrstuhl  D  für Mathematik, Rheinisch Westfälische
+Technische Hochschule, Aachen, Germany'')
+
+     GAP  is  distributed  by  us  without  any  warranty,  to  the extent
+permitted  by  applicable  state  law.  We  distribute GAP *as is* without
+warranty  of  any  kind,  either  expressed  or implied, including, but not
+limited  to,  the  implied  warranties of merchantability and fitness for a
+particular purpose.
+
+     The  entire  risk  as to the quality and performance of the program is
+with you. Should GAP prove defective, you assume the cost of all necessary 
+servicing, repair or correction.
+
+     In no case unless required by applicable law will we, and/or any other 
+party who may modify and redistribute GAP as permitted above, be liable to 
+you  for  damages,  including  lost  profits, lost monies or other special,
+incidental  or consequential damages arising out of the use or inability to
+use GAP.
+
+     You  are  permitted  to  modify and redistribute GAP, but you are not
+allowed  to  restrict  further  redistribution.  That is to say proprietary
+modifications  will  not be allowed. We want all versions of GAP to remain
+free.
+
+     If  you modify any part of GAP and redistribute it, you must supply a
+`README' document. This should specify what modifications you made in which 
+files. We do not want to take credit or be blamed for your modifications.
+
+     Of  course  we  are  interested  in  all  of  your  modifications.  In
+particular  we would like to see bug-fixes, improvements and new functions.
+So  again  we  would  appreciate  it  if  you  would  inform  us  about all
+modifications you make.
+
+     
--- gap-4r4p12.orig/debian/changelog-3.4.Debian
+++ gap-4r4p12/debian/changelog-3.4.Debian
@@ -0,0 +1,41 @@
+gap (3.4.4-4) unstable; urgency=low
+
+  * Package is orphaned; set maintainer to Debian QA Group.
+  * Make sure debian/debstd is executable (closes: #94515).
+  * /usr/bin/gap is copied from debian/gap.sh.debian, so force that to be
+    executable too (dpkg-source won't preserve permissions).
+
+ -- Colin Watson <cjwatson@debian.org>  Wed,  4 Jul 2001 00:32:58 +0100
+
+gap (3.4.4-3.1) unstable; urgency=low
+
+  * NMU (Closes: #44338)
+  * Made the FSSTND -> FHS transition. (Closes: #91161, #91468)
+  * Upped Standards-Version to 3.5.2.
+
+ -- Carlos Laviola <claviola@ajato.com.br>  Mon, 16 Apr 2001 00:24:51 -0400
+
+gap (3.4.4-3) unstable; urgency=low
+
+  * Support other archs, (I hope)
+  * Fixed a few linitian bugs
+	
+ -- John Lapeyre <lapeyre@physics.arizona.edu>  Sun, 27 Sep 1998 19:03:08 -0700
+
+
+gap (3.4.4-2) unstable; urgency=low
+
+  * Moved to non-free because of non-commercial restriction
+
+ -- John Lapeyre <lapeyre@physics.arizona.edu>  Sat,  8 Aug 1998 22:24:56 -0700
+
+gap (3.4.4-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- John Lapeyre <lapeyre@physics.arizona.edu>  Wed, 21 Jan 1998 20:20:03 -0700
+
+Local variables:
+mode: debian-changelog
+add-log-mailing-address: "lapeyre@physics.arizona.edu"
+End:
--- gap-4r4p12.orig/debian/gap-libs.install
+++ gap-4r4p12/debian/gap-libs.install
@@ -0,0 +1 @@
+grp lib usr/share/gap
--- gap-4r4p12.orig/debian/gap-dev.manpages
+++ gap-4r4p12/debian/gap-dev.manpages
@@ -0,0 +1 @@
+debian/doc/gac.1
--- gap-4r4p12.orig/debian/changelog
+++ gap-4r4p12/debian/changelog
@@ -0,0 +1,184 @@
+gap (4r4p12-2) unstable; urgency=low
+
+  * debian/rules: 
+    - add -fno-strict-aliasing to CFLAGS to avoid issues with newer gcc.
+  * src/sysfiles.c: 
+    - Prefer termios.h over sgtty.h. This fix a build failure on kfreebsd.
+
+ -- Bill Allombert <ballombe@debian.org>  Thu, 25 Nov 2010 11:07:30 +0100
+
+gap (4r4p12-1) unstable; urgency=low
+
+  * New upstream release. Closes: #510823.
+    - Better support for ia64 architecture.
+  * debian/rules:
+    - No more build with -O0 on ia64.
+  * Move doc-base menu entries to Science/Mathematics. Closes: #458543.
+    Thanks Marco Rodrigues.
+  * debian/README.Debian: remove paragraph about upgrade from Sarge.
+  * debian/gap-core.links:
+    - Add symlink /usr/share/gap/sysinfo.gap -> /usr/lib/gap/sysinfo.gap
+  * debian/control:
+    - Bump Standards-Version to 3.8.0.
+    - Move Homepage field from description to the source section.
+  * debian/tarball:
+    - Extract gap and tomlib versions from files in the tarballs.
+  * debian/README.source: (added)
+    - Document how to generate the Debian tarballs from the upstream ones.
+  * debian/gap-core.triggers, debian/gap-core.postinst
+    - Set up a trigger to rebuild the system GAP workspace if it exists,
+      when Debian GAP packages are updated.
+  * debian/doc/update-gap-workspace.1, debian/doc/gap-policy.sgml
+    - Document that the system GAP workspace is automatically updated.
+
+ -- Bill Allombert <ballombe@debian.org>  Thu, 19 Feb 2009 10:35:52 +0100
+
+gap (4r4p10-2) unstable; urgency=low
+
+  * Change make_doc to use #!/bin/bash to allow building with 
+    /bin/sh->/bin/dash. Closes: #459064.
+  * debian/copyright:
+    - convert to UTF-8
+  * debian/control:
+    - bump Standards-Version to 3.7.3.
+
+ -- Bill Allombert <ballombe@debian.org>  Mon, 21 Jan 2008 11:29:01 +0100
+
+gap (4r4p10-1) unstable; urgency=low
+
+  * New upstream release
+  * Change debian/tarball script to include tools tarball in source.
+  * Update menu entry section to Applications/Science/Mathematics.
+  * debian/control:
+    - Build-Depends on texlive-base instead of tetex-*.
+    - Use ${binary:Version} instead ${Source-Version}
+
+ -- Bill Allombert <ballombe@debian.org>  Thu, 22 Nov 2007 18:37:55 +0100
+
+gap (4r4p9-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Bill Allombert <ballombe@debian.org>  Sun, 12 Nov 2006 15:49:23 +0100
+
+gap (4r4p8-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump Standard-Versions to 3.7.2
+  * debian/control: 
+     - Use ${source:Version} instead ${Source-Version} to allow binNMU.
+     - Build-Depends on dpkg-dev (>= 1.13.19)
+  * Fix whatis entries of gap(1) and update-gap-workspace(1).
+  * Do not hard-code path to mrabbrev, see #359684. Thanks Frank Küster
+
+ -- Bill Allombert <ballombe@debian.org>  Wed, 11 Oct 2006 21:39:57 +0200
+
+gap (4r4p7-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/rules: Change -X\\.pdf to -X.pdf since dh_install was fixed.
+  * regenerate GAP manpage.
+
+ -- Bill Allombert <ballombe@debian.org>  Sat, 25 Mar 2006 13:01:43 +0100
+
+gap (4r4p6-1) unstable; urgency=low
+
+  * New upstream release
+  * sysinfo.gap: moved to gap-core
+  * debian/control: gap-core replaces gap-dev sysinfo.gap file.
+  * debian/README.Debian: document that some GAP packages require 
+    gap-dev to build.
+
+ -- Bill Allombert <ballombe@debian.org>  Tue, 18 Oct 2005 08:41:30 +0200
+
+gap (4r4p5-1) unstable; urgency=low
+
+  * New upstream release
+    - This release includes lib/colorprompt.g by Frank Luebeck.
+  * Update README.Debian to reflect the new instructions to set up 
+    colors in gap.
+  * cnf/gac.in: Remove spurious final rmdir (sigh).
+  * Tighten dependencies to avoid differents parts of GAP getting 
+    out of sync with each others.
+  * Bump Standard-Versions to 3.6.2
+  * Add icon to menu entry.
+
+ -- Bill Allombert <ballombe@debian.org>  Fri,  1 Jul 2005 16:50:34 +0200
+
+gap (4r4p4-1) unstable; urgency=low
+
+  * New upstream release
+  * Remove obsolete watch file.
+  * Fix sections of doc-base files.
+  * GAP packaging policy: Recommends to compress large datasets. 
+  * README.Debian: Add sections "Browsing GAP Documentation", "Large GAP
+    libraries are compressed" and "Supporting GAP".
+  * Fix update-gap-workspace scripts (use gap -R).
+
+ -- Bill Allombert <ballombe@debian.org>  Wed, 12 Jan 2005 12:09:35 +0100
+
+gap (4r4p3-2) unstable; urgency=medium
+
+  * gap-libs:
+    + Add an empty /usr/share/gap/pkg directory. GAP would fail to 
+      start without one (if no gap-pkg-* are installed).
+    + Add lib/colorprompt.g by Frank Luebeck.
+
+ -- Bill Allombert <ballombe@debian.org>  Sat, 31 Jul 2004 09:48:45 +0200
+
+gap (4r4p3-1) unstable; urgency=low
+
+  * New upstream release
+  * Add script update-gap-workspace to build a GAP workspace to start
+    GAP faster. Please read the manpage!
+  * Add debian/tarball script to split upstream tarballs.
+  * gac script patch was merged upstream. Thanks the GAP team.
+  * debian/control:
+    + Use Homepage instead of Web page in long description.
+    + Bump Standard-Version to 3.6.1.0.
+    + gap now Suggests: gap-table-of-marks.
+  * Document update-gap-workspace in README.Debian
+  * Change gap script to automatically load GAP workspace if available.
+  * gap-core.menu: quote fields properly.
+  * Add the gap packaging policy document to gap-doc.
+  * Run a minimal test suite at build time.
+  * debian/rules: call make compile, not make to avoid strip.
+
+ -- Bill Allombert <ballombe@debian.org>  Tue, 18 May 2004 17:50:15 +0200
+
+gap (4r3n5-1) unstable; urgency=low
+
+  * New upstream bugfix
+  * gap-doc, gap-dev: Fix section.
+  * Fix gap-characters-tables --> gap-character-tables typo in Suggests:
+
+ -- Bill Allombert <ballombe@debian.org>  Tue, 24 Jun 2003 16:05:27 +0200
+
+gap (4r3n4-2) unstable; urgency=low
+
+  * gap-doc: Install properly for use with SetHelpViewer and ctbllib.
+  * gap-libs: Add pkg/ALLPKG for autoloading of gap packages.
+  * control: Add Web page to description, remove false readline reference.
+  * Simplify/fix gap script. Thanks Werner Nickel!
+  * Bump Standard-Version to 3.5.10.0.
+  * control: Replaces gap, not gap4.
+  * control: gap Suggests gap-character-tables.
+  * gap.1: Add reference to documentation of options.
+  * gap-libs: Add support for compressed DVI files.
+  * gap-core: Fix problems when writing files.
+
+ -- Bill Allombert <ballombe@debian.org>  Mon, 19 May 2003 00:03:12 +0200
+
+gap (4r3n4-1) unstable; urgency=low
+
+  * Initial Release of GAP first GPL version, 4r3, Bugfix 4.
+  * Changelog for the old non DSFG-free versions are in changelog-3.4.Debian
+    and changelog-4.2.Debian.
+  * New maintainer. Closes: #103406
+  * New upstream version: Closes: #155648, #155652.
+  * Fix typo in description. Closes: #124660. Thanks Matt Zimmerman.
+  * gap-dev contains /usr/lib/gap/src/config.h Closes: #119851
+  * Include files are in /usr/include/gap Closes: #119850
+  * Closes: #121846 which is obsolete due to package renaming.
+
+ -- Bill Allombert <ballombe@debian.org>  Tue, 15 Apr 2003 22:13:35 +0200
--- gap-4r4p12.orig/debian/control
+++ gap-4r4p12/debian/control
@@ -0,0 +1,93 @@
+Source: gap
+Section: math
+Priority: optional
+Maintainer: Bill Allombert <ballombe@debian.org>
+Build-Depends: debhelper (>= 4.0.0), autotools-dev, dpkg-dev (>= 1.13.19)
+Build-Depends-Indep: texlive-base, debiandoc-sgml, help2man
+Standards-Version: 3.8.0
+Homepage: http://www.gap-system.org/
+
+Package: gap
+Architecture: all
+Depends: gap-core, gap-libs, gap-online-help
+Recommends: gap-doc,gap-dev,gap-trans-groups,gap-prim-groups,gap-small-groups
+Suggests: gap-small-groups-extra,gap-character-tables,gap-table-of-marks
+Description: Groups, Algorithms and Programming computer algebra system
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.   In the example text, gap is used to
+ analyse Rubik's Cube using group theory.  A kernel implements a Pascal-like
+ language. 
+ .
+ This is a dummy package that depends on the standard GAP components.
+
+Package: gap-core
+Architecture: any
+Depends: ${shlibs:Depends}, gap-libs (=${source:Version})
+Recommends: gap-online-help
+Suggests: gap-doc,gap-dev,gap-trans-groups,gap-prim-groups,gap-small-groups
+Replaces: gap (<< 4r3n4), gap-dev (<< 4r4p6)
+Description: GAP computer algebra system, core components
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.   In the example text, gap is used to
+ analyse Rubik's Cube using group theory.  A kernel implements a Pascal-like
+ language. 
+ .
+ This package contains the core GAP system.
+
+Package: gap-libs
+Architecture: all
+Description: GAP computer algebra system, essential GAP libraries
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.   In the example text, gap is used to
+ analyse Rubik's Cube using group theory.  A kernel implements a Pascal-like
+ language. 
+ .
+ This package contains the essential GAP libraries (lib and grp).
+
+Package: gap-dev
+Section: devel
+Architecture: any
+Depends: gap-core (=${binary:Version}), gcc
+Description: GAP computer algebra system, compiler and development files
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.   In the example text, gap is used to
+ analyse Rubik's Cube using group theory.  A kernel implements a Pascal-like
+ language. 
+ .
+ This package contains the GAP compiler and the headers files and
+ objects files necessary to build GAP packages.
+ .
+ The GAP compiler (GAC) creates C code from GAP code and then calls
+ the system's C compiler to produce machine code from it. This can
+ result in a speedup.
+
+Package: gap-online-help
+Architecture: all
+Depends: gap-core
+Description: GAP computer algebra system, online help
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.   In the example text, gap is used to
+ analyse Rubik's Cube using group theory.  A kernel implements a Pascal-like
+ language.
+ .
+ This package contains the documentation in TeX format needed for the online
+ help system.
+
+Package: gap-doc
+Section: doc
+Architecture: all
+Suggests: gap
+Description: GAP computer algebra system, documentation
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.   In the example text, gap is used to
+ analyse Rubik's Cube using group theory.  A kernel implements a Pascal-like
+ language.
+ .
+ This package contains the documentation in DVI and PDF formats.
+
--- gap-4r4p12.orig/debian/gap-dev.install
+++ gap-4r4p12/debian/gap-dev.install
@@ -0,0 +1,3 @@
+bin/*/*.o /usr/lib/gap/bin
+src/*.h /usr/include/gap
+bin/*/config.h /usr/include/gap
--- gap-4r4p12.orig/debian/gap-doc.doc-base.ref
+++ gap-4r4p12/debian/gap-doc.doc-base.ref
@@ -0,0 +1,13 @@
+Document: gap-doc-ref
+Title: GAP reference manual
+Author: The GAP Group
+Abstract: This manual contains the official definitions of GAP functions. It
+ should give all information to someone who wants to use GAP as it is. It is not
+ intended to be read cover-to-cover.
+Section: Science/Mathematics
+
+Format: dvi
+Files: /usr/share/doc/gap-doc/doc/ref/manual.dvi.gz
+
+Format: pdf
+Files: /usr/share/doc/gap-doc/doc/ref/manual.pdf
--- gap-4r4p12.orig/debian/doc/gap-policy.txt
+++ gap-4r4p12/debian/doc/gap-policy.txt
@@ -0,0 +1,145 @@
+
+                             Debian GAP Policy
+                             -----------------
+
+                   Bill Allombert <ballombe@debian.org>
+
+                       version 0.1, 18 February 2009
+
+
+-------------------------------------------------------------------------------
+
+
+Abstract
+--------
+
+     This unofficial policy describes the conventions that Debian packages
+     of GAP (http://www.gap-system.org) components must follows to get
+     along nicely with the gap-core package and others.
+
+
+-------------------------------------------------------------------------------
+
+
+Contents
+--------
+
+     1.        Convention used in this policy
+
+     2.        Package name
+
+     3.        Installation
+
+     4.        Global GAP workspace
+
+     5.        Completion files
+
+     6.        Documentation
+
+
+-------------------------------------------------------------------------------
+
+
+1. Convention used in this policy
+---------------------------------
+
+     Since GAP and Debian have a different concept of package, we will use
+     the following conventions:
+
+     1.   <$pkg> denote the name of the GAP package as stated on the GAP
+          website.
+
+     2.   <$package> denote the name of your Debian package.
+
+
+-------------------------------------------------------------------------------
+
+
+2. Package name
+---------------
+
+     Name of GAP packages (<$pkg>) are usually short and cryptic, like
+     `ctbllib'.  You should choose a more verbose name (<$package>) like
+     gap-character-tables.
+
+     1.   <$package> must start by `gap-'.
+
+     2.   Package must provide `gap-pkg-$pkg' so GAP users can do `apt-get
+          gap-pkg-$pkg' without having to guess <$package>.
+
+
+-------------------------------------------------------------------------------
+
+
+3. Installation
+---------------
+
+     GAP packages should be installed in the `/usr/share/gap/pkg/$pkg'
+     directory.  Architecture dependent part of the package should go to
+     `/usr/lib/gap/pkg/$pkg'.  You can provide symlinks if this is
+     necessary.
+
+     If your package include large (say around 10Mb) datasets (library of
+     groups, etc...), you should compress them (after checking GAP is able
+     to automatically uncompress them) with `gzip --best' to save
+     diskspace.  Try to not compress source code files (`.g' files) if
+     possible.
+
+
+-------------------------------------------------------------------------------
+
+
+4. Global GAP workspace
+-----------------------
+
+     To allow GAP to start faster, Debian provides a global workspace file
+     in `/var/lib/gap/workspace.gz'.  This file is managed by
+     `update-gap-workspace'.  If this file exists, it will be automatically
+     updated whenever a Debian GAP package is installed or upgraded,
+     through a gap-core dpkg trigger.
+
+
+-------------------------------------------------------------------------------
+
+
+5. Completion files
+-------------------
+
+     Do not forget to rebuild the completion files if you change a GAP
+     library.  The command below should do:
+
+          echo 'CreateCompletionFiles(".");' | gap -R -N
+
+
+-------------------------------------------------------------------------------
+
+
+6. Documentation
+----------------
+
+     GAP packages come usually with extensive documentation.
+
+     1.   TeX files used by the online help system must be shipped.
+
+     2.   Documentation must be shipped preferably in `dvi.gz' and `pdf'.
+
+     3.   If both `dvi.gz' and `pdf' are provided, `ps' should not be
+          provided.
+
+     4.   Ship the file `manual.toc' compressed.  This enable
+          `SetHelpviewer()' to function properly.
+
+     5.   Ship the documentation in HTML if it is possible to build it with
+          free tools.
+
+
+-------------------------------------------------------------------------------
+
+
+     Debian GAP Policy
+
+     Bill Allombert <ballombe@debian.org>
+
+
+     version 0.1, 18 February 2009
+
--- gap-4r4p12.orig/debian/doc/gac.1
+++ gap-4r4p12/debian/doc/gac.1
@@ -0,0 +1,69 @@
+.TH GAC "1" "March 2003" "The GAP team" "User Commands"
+.SH NAME
+GAC \- The GAP Compiler
+.SH SYNOPSIS
+.PP
+   gac [\fB-c\fR|\fB-d\fR] [\fB-o <output>\fR] {\fB-f<option>\fR} <input>...
+.IP
+.SH DESCRIPTION
+GAC  compiles the input files.   Input files  must be
+GAP  source code (suffix '.g' or '.gap'),  C source code
+(suffix '.c'),  or compiled  code files (suffix '.o').
+.TP
+If  neither \fB-c\fR  nor \fB-d\fR is given,  then 'gac'  produces
+a  new kernel, which contains the compiled code for all
+the input files.
+.TP
+\fB-c\fR
+Compiles the input files to statically loadable object files, which must be
+linked together to a new kernel.
+.TP
+\fB-d\fR
+Compiles the input files to dynamically loadable object files, which can be loaded by a kernel at runtime.
+.TP
+\fB-C\fR
+Only compiles the input files to C code, which 
+will require compilation and linking to be usable.
+.TP
+\fB-r\fR 
+Statically compiled files will be assumed to be given by pathnames relative to
+the GAP root, and will be compiled for automatic loading when files are sought
+relative to the GAP root.
+.TP
+\fB-o <output>\fR
+Name the output file <output>.
+.TP
+\fB-ffast-int-arith\fR 
+Emit  code for  arithmetic operations, which works faster if both operands are
+small integers  and slower otherwise.
+.TP
+\fB-ffast-plain-lists\fR 
+Emit code for list access, which works faster if the list is a plain
+list and slower otherwise.
+.TP
+\fB-ffast-list-funcs\fR 
+Inline  the functions 'Add' and 'Length' the code, which makes it a
+bit faster.
+.TP
+\fB-fno-check-types\fR 
+Emit  no error checks  for list access, which makes it faster but
+may dump core if an error happens.
+.TP
+\fB-p <option>\fR
+Pass the option  <option> to  the C compiler.
+.TP
+\fB-P <option>\fR
+Pass the option  <option> to  the C linker.
+.SH "SEE ALSO"
+.I gap(1)
+.P
+You can read the complete manual in /usr/share/gap/doc or you can use the online help system. Type ?help inside GAP to access it.
+.SH AUTHORS
+       The GAP Group <http://www.gap-system.org>
+.SH COPYRIGHT
+     Copyright (1987--2006) by the GAP Group,
+
+     GAP  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. 
--- gap-4r4p12.orig/debian/doc/gap-policy.sgml
+++ gap-4r4p12/debian/doc/gap-policy.sgml
@@ -0,0 +1,83 @@
+<!doctype debiandoc system>
+
+<!--
+ Debian GAP Policy
+ Copyright (C) 2004-2005 Bill Allombert.
+ released under the terms of the GNU
+ General Public License, version 2 or (at your option) any later.
+ -->
+
+<book>
+
+<title>Debian GAP Policy
+<author>Bill Allombert <email/ballombe@debian.org/
+<version>version 0.1, <date>
+
+<abstract>
+
+This unofficial policy describes the conventions that Debian packages of GAP
+(<httpsite>http://www.gap-system.org</>) components must follows to get along
+nicely with the gap-core package and others.
+</abstract>
+
+<toc sect>
+
+<chapt> Convention used in this policy
+<p>
+Since GAP and Debian have a different concept of package, we will
+use the following conventions:
+<enumlist>
+<item><var/$pkg/ denote the name of the GAP package as stated on the 
+GAP website.
+<item><var/$package/ denote the name of your Debian package.
+</enumlist>
+
+<chapt> Package name
+<p>
+Name of GAP packages (<var/$pkg/) are usually short and cryptic, like
+<tt/ctbllib/.  You should choose a more verbose name (<var/$package/) like
+gap-character-tables.
+<enumlist>
+<item> <var/$package/ must start by <tt/gap-/.
+<item> Package must provide <tt/gap-pkg-$pkg/ so GAP users can do
+<prgn/apt-get gap-pkg-$pkg/ without having to guess <var/$package/.
+</enumlist>
+
+<chapt> Installation
+<p>
+GAP packages should be installed in the <file>/usr/share/gap/pkg/$pkg</file>
+directory.  Architecture dependent part of the package should go to
+<file>/usr/lib/gap/pkg/$pkg</file>. You can provide symlinks if this is
+necessary.
+<p> If your package include large (say around 10Mb) datasets (library of
+groups, etc...), you should compress them (after checking GAP is able to
+automatically uncompress them) with <prgn/gzip --best/ to save diskspace. Try
+to not compress source code files (<tt/.g/ files) if possible.  
+
+<chapt> Global GAP workspace
+<p> To allow GAP to start faster, Debian provides a global workspace file
+in <file>/var/lib/gap/workspace.gz</file>. This file is managed by 
+<prgn/update-gap-workspace/. If this file exists, it will be automatically
+updated whenever a Debian GAP package is installed or upgraded, through
+a gap-core dpkg trigger.
+<chapt> Completion files
+<p>
+Do not forget to rebuild the completion files if you change a GAP
+library. The command below should do:
+<example> 
+echo 'CreateCompletionFiles(".");' | gap -R -N
+</example>
+<chapt> Documentation
+<p>
+GAP packages come usually with extensive documentation.
+<enumlist>
+<item> TeX files used by the online help system must be shipped.
+<item> Documentation must be shipped preferably in <tt/dvi.gz/ and <tt/pdf/.
+<item> If both <tt/dvi.gz/ and <tt/pdf/ are provided, <tt/ps/ should not be 
+provided.
+<item> Ship the file <file/manual.toc/ compressed. This enable
+<tt/SetHelpviewer()/ to function properly.
+<item> Ship the documentation in HTML if it is possible to build it with free
+tools.
+</enumlist>
+</book>
--- gap-4r4p12.orig/debian/doc/Makefile
+++ gap-4r4p12/debian/doc/Makefile
@@ -0,0 +1,40 @@
+pkgdocdir=/usr/share/doc/gap-doc
+INSTALL_DATA = install -o root -g root -m 0644
+INSTALL_DIR = install -o root -g root -m 0644 -d
+
+all: gap-policy.html/index.html gap-policy.txt gap.1
+gap-policy.html/index.html: gap-policy.sgml
+	debiandoc2html $<
+
+gap-policy-one-file.html: gap-policy.sgml
+	debiandoc2html -1 -b gap-policy-1-file $<
+	mv gap-policy-1-file.html/index.html gap-policy-one-file.html
+	rmdir gap-policy-1-file.html
+
+gap-policy-one-file: gap-policy-one-file.html
+
+gap.1: gap2man
+	sh gap2man > gap.1.new && mv gap.1.new gap.1
+
+%.info: %.sgml
+	debiandoc2info $<
+
+%.txt: %.sgml
+	debiandoc2text -O $< > $@
+
+%.gz:   %
+	gzip --best --force --stdout $< > $@
+
+clean:
+	rm -f gap-policy.txt.gz
+
+maintainer-clean:
+	rm -rf gap-policy.html gap-policy.txt gap.1 gac.1
+
+install: gap-policy.txt.gz gap-policy.html/index.html
+	$(INSTALL_DIR)  $(DESTDIR)$(pkgdocdir)/gap-policy.html
+	$(INSTALL_DATA) gap-policy.html/* $(DESTDIR)$(pkgdocdir)/gap-policy.html
+	$(INSTALL_DATA) gap-policy.txt.gz $(DESTDIR)$(pkgdocdir)
+	$(INSTALL_DATA) gap-policy.sgml $(DESTDIR)$(pkgdocdir)
+	
+.PHONY: install maintainer-clean gap-policy-one-file
--- gap-4r4p12.orig/debian/doc/gapdoc2man
+++ gap-4r4p12/debian/doc/gapdoc2man
@@ -0,0 +1,13 @@
+#! /usr/bin/perl -w
+
+while(<>)
+{
+  /^%/ and next;
+  s/\{\\GAP\}/GAP/g;
+  /^\\Section{(.*)}/ and do {print ".SH \"$1\"\n";next;};
+  /^\\/ and next;
+  /^&/ and next;
+  /`-([^ ]+)' &/ and do {print ".TP\n\\fB\\-$1\\fR\n";next;};
+  /`-([^ ]+) (.*)' &/ and do {print ".TP\n\\fB\\-$1\\fR $2\n";next;};
+  print;
+}
--- gap-4r4p12.orig/debian/doc/gap2man
+++ gap-4r4p12/debian/doc/gap2man
@@ -0,0 +1,46 @@
+#! /bin/sh
+set -e
+PROG=`tempfile`
+cat >$PROG <<EOF
+#!/bin/sh
+case \$1 in
+--help) gap -h 2>&1;;
+--version) echo -n "GAP - Groups, Algorithms and Programming "; gap -h 2>&1 | grep Version | sed -e "s/^.*Version/Version/";;
+esac
+EOF
+chmod a+x $PROG
+EXTRA=`tempfile`
+cat >$EXTRA <<"EOF"
+[description]
+GAP is a system for computational discrete algebra with
+particular emphasis on computational group theory, but
+which has already proved useful also in other areas. In
+the example text, gap is used to analyse Rubik's Cube
+using group theory. A kernel implements a pascal-like
+language.
+.SH OPTIONS
+[see also]
+.I gac(1)
+.I update-gap-workspace(1)
+.P
+You can read the complete manual in /usr/share/gap/doc or you can use the online help system. Type ?help inside GAP to access it.
+Type 
+.P
+?Reference: options!under UNIX
+.P
+to access the full documentation of options.
+.P
+[authors]
+The GAP Group <http://www.gap-system.org>
+[copyright]
+     Copyright (1987--2006) by the GAP Group,
+
+     GAP  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. 
+EOF
+
+
+help2man --source="The GAP team" -N $PROG --include=$EXTRA -n "Groups, Algorithms and Programming"
+rm $PROG $EXTRA 
--- gap-4r4p12.orig/debian/doc/update-gap-workspace.1
+++ gap-4r4p12/debian/doc/update-gap-workspace.1
@@ -0,0 +1,48 @@
+.TH UPDATE-GAP-WORKSPACE "1" "July 2003" "Debian" "User Commands"
+.SH NAME
+update-gap-workspace \- manage a GAP workspace.
+.SH SYNOPSIS
+\&update-gap-workspace
+.PP
+\&update-gap-workspace update
+.IP
+Create or update the GAP workspace.
+.PP
+\&update-gap-workspace delete
+.IP
+Delete the GAP workspace.
+.SH DESCRIPTION
+At start up, GAP load all libraries and packages available on the system.
+This take several seconds. To save time, GAP can store the result of
+this initialisation in a `workspace'.
+.I update-gap-workspace 
+help to manage such workspaces.
+.I update-gap-workspace
+can be run as root to manage the system-wide workspace. 
+.I update-gap-workspace
+can be run as a normal user. In this case the workspace is stored in
+$HOME/gap/workspace.gz. 
+.PP
+Note that you need to rebuild the workspace each time GAP packages are
+added, removed or updated. To automate that task, if the system-wide
+workspace exists, it is automatically updated whenever a GAP-related
+Debian package is installed or upgraded.
+.PP 
+The gap script will automatically load such workspace at start up.
+.SH "FILES"
+.I /var/lib/gap/workspace.gz:
+.RS
+The system-wide GAP workspace.
+.RE
+.I $HOME/gap/workspace.gz:
+.RS
+The user-specific GAP workspace.
+.SH "SEE ALSO"
+.I gap(1),
+.I The \`SaveWorkspace' function in the GAP manual.
+.SH "AUTHOR"
+Bill Allombert <ballombe@debian.org>
+.SH "NOTES"
+We are considering enabling the system-wide workspace per default, 
+though this feature could be too confusing for old-time GAP
+users. If you have opinions about it, please mail <gap@packages.debian.org>.
--- gap-4r4p12.orig/debian/doc/gap.1
+++ gap-4r4p12/debian/doc/gap.1
@@ -0,0 +1,124 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH GAP "1" "October 2006" "The GAP team" "User Commands"
+.SH NAME
+GAP \- Groups, Algorithms and Programming
+.SH DESCRIPTION
+GAP is a system for computational discrete algebra with
+particular emphasis on computational group theory, but
+which has already proved useful also in other areas. In
+the example text, gap is used to analyse Rubik's Cube
+using group theory. A kernel implements a pascal-like
+language.
+.SH OPTIONS
+.PP
+usage: gap [OPTIONS] [FILES]
+.IP
+run the Groups, Algorithms and Programming system, Version 4.4.8
+.TP
+\fB\-h\fR
+print this help and exit
+.TP
+\fB\-b\fR
+disable/enable the banner
+.TP
+\fB\-q\fR
+enable/disable quiet mode
+.TP
+\fB\-e\fR
+disable/enable quitting on <ctr>\-D
+.TP
+\fB\-f\fR
+force line editing
+.TP
+\fB\-n\fR
+prevent line editing
+.TP
+\fB\-x\fR <num>
+set line width
+.TP
+\fB\-y\fR <num>
+set number of lines
+.TP
+\fB\-g\fR
+show GASMAN messages (full garbage collections)
+.TP
+\fB\-g\fR \fB\-g\fR
+show GASMAN messages (all garbage collections)
+.TP
+\fB\-m\fR <mem>
+set the initial workspace size
+.TP
+\fB\-o\fR <mem>
+set hint for maximal workspace size (GAP may allocate more)
+.TP
+\fB\-K\fR <mem>
+set maximal workspace size (GAP never allocates more)
+.TP
+\fB\-c\fR <mem>
+set the cache size value
+.TP
+\fB\-a\fR <mem>
+set amount to pre\-malloc\-ate
+postfix 'k' = *1024, 'm' = *1024*1024, 'g' = *1024*1024*1024
+.TP
+\fB\-l\fR <paths>
+set the GAP root paths
+.TP
+\fB\-r\fR
+disable/enable reading of the '.gaprc' file
+.TP
+\fB\-A\fR
+disable/enable autoloading of GAP packages
+.TP
+\fB\-B\fR <name>
+current architecture
+.TP
+\fB\-D\fR
+enable/disable debugging the loading of library files
+.TP
+\fB\-M\fR
+disable/enable loading of compiled modules
+.TP
+\fB\-N\fR
+disable/enable check for completion files
+.TP
+\fB\-T\fR
+disable/enable break loop
+.TP
+\fB\-X\fR
+enable/disable CRC for comp. files while reading
+.TP
+\fB\-Y\fR
+enable/disable CRC for comp. files while completing
+.TP
+\fB\-i\fR <file>
+change the name of the init file
+.TP
+\fB\-L\fR <file>
+restore a saved workspace
+.TP
+\fB\-R\fR
+prevent restoring of workspace (ignoring \fB\-L\fR)
+.IP
+Boolean options (b,q,e,r,A,D,M,N,T,X,Y) toggle the current value
+each time they are called. Default actions are indicated first.
+.SH AUTHORS
+The GAP Group <http://www.gap-system.org>
+.SH COPYRIGHT
+     Copyright (1987--2006) by the GAP Group,
+
+     GAP  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. 
+.SH "SEE ALSO"
+.I gac(1)
+.I update-gap-workspace(1)
+.P
+You can read the complete manual in /usr/share/gap/doc or you can use the online help system. Type ?help inside GAP to access it.
+Type 
+.P
+?Reference: options!under UNIX
+.P
+to access the full documentation of options.
+.P
--- gap-4r4p12.orig/debian/doc/gap-policy.html/index.html
+++ gap-4r4p12/debian/doc/gap-policy.html/index.html
@@ -0,0 +1,97 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy</title>
+
+<link href="index.html" rel="start">
+<link href="ch6.html" rel="prev">
+<link href="ch1.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="index"></a></p>
+<hr>
+
+<p>
+[ <a href="ch6.html">previous</a> ]
+[ <a href="#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch1.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br></h1>
+
+<hr>
+
+<h2><a name="abstract"></a>Abstract</h2>
+
+<p>
+This unofficial policy describes the conventions that Debian packages of GAP
+(<code>http://www.gap-system.org</code>) components must follows to get along
+nicely with the gap-core package and others.
+</p>
+
+<hr>
+
+<h2><a name="contents"></a>Contents</h2>
+
+<ul>
+<li><a href="ch1.html">1 Convention used in this policy</a><li><a href="ch2.html">2 Package name</a><li><a href="ch3.html">3 Installation</a><li><a href="ch4.html">4 Global GAP workspace</a><li><a href="ch5.html">5 Completion files</a><li><a href="ch6.html">6 Documentation</a></li>
+</ul>
+
+<hr>
+
+<p>
+[ <a href="ch6.html">previous</a> ]
+[ <a href="#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch1.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+
--- gap-4r4p12.orig/debian/doc/gap-policy.html/ch1.html
+++ gap-4r4p12/debian/doc/gap-policy.html/ch1.html
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy - Convention used in this policy</title>
+
+<link href="index.html" rel="start">
+<link href="index.html" rel="prev">
+<link href="ch2.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="ch1"></a></p>
+<hr>
+
+<p>
+[ <a href="index.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ 1 ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch2.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br>Chapter 1 - Convention used in this policy
+</h1>
+
+<hr>
+
+<p>
+Since GAP and Debian have a different concept of package, we will use the
+following conventions:
+</p>
+<ol type="1" start="1" >
+<li>
+<p>
+<var>$pkg</var> denote the name of the GAP package as stated on the GAP
+website.
+</p>
+</li>
+</ol>
+<ol type="1" start="2" >
+<li>
+<p>
+<var>$package</var> denote the name of your Debian package.
+</p>
+</li>
+</ol>
+
+<hr>
+
+<p>
+[ <a href="index.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ 1 ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch2.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+
--- gap-4r4p12.orig/debian/doc/gap-policy.html/ch4.html
+++ gap-4r4p12/debian/doc/gap-policy.html/ch4.html
@@ -0,0 +1,90 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy - Global GAP workspace</title>
+
+<link href="index.html" rel="start">
+<link href="ch3.html" rel="prev">
+<link href="ch5.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="ch4"></a></p>
+<hr>
+
+<p>
+[ <a href="ch3.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ 4 ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch5.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br>Chapter 4 - Global GAP workspace
+</h1>
+
+<hr>
+
+<p>
+To allow GAP to start faster, Debian provides a global workspace file in
+<code>/var/lib/gap/workspace.gz</code>.  This file is managed by
+<code>update-gap-workspace</code>.  If this file exists, it will be
+automatically updated whenever a Debian GAP package is installed or upgraded,
+through a gap-core dpkg trigger.
+</p>
+
+<hr>
+
+<p>
+[ <a href="ch3.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ 4 ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch5.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+
--- gap-4r4p12.orig/debian/doc/gap-policy.html/ch5.html
+++ gap-4r4p12/debian/doc/gap-policy.html/ch5.html
@@ -0,0 +1,92 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy - Completion files</title>
+
+<link href="index.html" rel="start">
+<link href="ch4.html" rel="prev">
+<link href="ch6.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="ch5"></a></p>
+<hr>
+
+<p>
+[ <a href="ch4.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ 5 ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch6.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br>Chapter 5 - Completion files
+</h1>
+
+<hr>
+
+<p>
+Do not forget to rebuild the completion files if you change a GAP library.  The
+command below should do:
+</p>
+
+<pre>
+      
+     echo 'CreateCompletionFiles(&quot;.&quot;);' | gap -R -N
+</pre>
+
+<hr>
+
+<p>
+[ <a href="ch4.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ 5 ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch6.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+
--- gap-4r4p12.orig/debian/doc/gap-policy.html/ch3.html
+++ gap-4r4p12/debian/doc/gap-policy.html/ch3.html
@@ -0,0 +1,96 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy - Installation</title>
+
+<link href="index.html" rel="start">
+<link href="ch2.html" rel="prev">
+<link href="ch4.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="ch3"></a></p>
+<hr>
+
+<p>
+[ <a href="ch2.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ 3 ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch4.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br>Chapter 3 - Installation
+</h1>
+
+<hr>
+
+<p>
+GAP packages should be installed in the <code>/usr/share/gap/pkg/$pkg</code>
+directory.  Architecture dependent part of the package should go to
+<code>/usr/lib/gap/pkg/$pkg</code>.  You can provide symlinks if this is
+necessary.
+</p>
+
+<p>
+If your package include large (say around 10Mb) datasets (library of groups,
+etc...), you should compress them (after checking GAP is able to automatically
+uncompress them) with <code>gzip --best</code> to save diskspace.  Try to not
+compress source code files (<samp>.g</samp> files) if possible.
+</p>
+
+<hr>
+
+<p>
+[ <a href="ch2.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ 3 ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch4.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+
--- gap-4r4p12.orig/debian/doc/gap-policy.html/ch2.html
+++ gap-4r4p12/debian/doc/gap-policy.html/ch2.html
@@ -0,0 +1,103 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy - Package name</title>
+
+<link href="index.html" rel="start">
+<link href="ch1.html" rel="prev">
+<link href="ch3.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="ch2"></a></p>
+<hr>
+
+<p>
+[ <a href="ch1.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ 2 ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch3.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br>Chapter 2 - Package name
+</h1>
+
+<hr>
+
+<p>
+Name of GAP packages (<var>$pkg</var>) are usually short and cryptic, like
+<samp>ctbllib</samp>.  You should choose a more verbose name
+(<var>$package</var>) like gap-character-tables.
+</p>
+<ol type="1" start="1" >
+<li>
+<p>
+<var>$package</var> must start by <samp>gap-</samp>.
+</p>
+</li>
+</ol>
+<ol type="1" start="2" >
+<li>
+<p>
+Package must provide <samp>gap-pkg-$pkg</samp> so GAP users can do
+<code>apt-get gap-pkg-$pkg</code> without having to guess <var>$package</var>.
+</p>
+</li>
+</ol>
+
+<hr>
+
+<p>
+[ <a href="ch1.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ 2 ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ <a href="ch6.html">6</a> ]
+[ <a href="ch3.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+
--- gap-4r4p12.orig/debian/doc/gap-policy.html/ch6.html
+++ gap-4r4p12/debian/doc/gap-policy.html/ch6.html
@@ -0,0 +1,124 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+
+<html>
+
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<title>Debian GAP Policy - Documentation</title>
+
+<link href="index.html" rel="start">
+<link href="ch5.html" rel="prev">
+<link href="index.html" rel="next">
+<link href="index.html#contents" rel="contents">
+<link href="index.html#copyright" rel="copyright">
+<link href="ch1.html" rel="chapter" title="1 Convention used in this policy">
+<link href="ch2.html" rel="chapter" title="2 Package name">
+<link href="ch3.html" rel="chapter" title="3 Installation">
+<link href="ch4.html" rel="chapter" title="4 Global GAP workspace">
+<link href="ch5.html" rel="chapter" title="5 Completion files">
+<link href="ch6.html" rel="chapter" title="6 Documentation">
+
+</head>
+
+<body>
+
+<p><a name="ch6"></a></p>
+<hr>
+
+<p>
+[ <a href="ch5.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ 6 ]
+[ <a href="index.html">next</a> ]
+</p>
+
+<hr>
+
+<h1>
+Debian GAP Policy
+<br>Chapter 6 - Documentation
+</h1>
+
+<hr>
+
+<p>
+GAP packages come usually with extensive documentation.
+</p>
+<ol type="1" start="1" >
+<li>
+<p>
+TeX files used by the online help system must be shipped.
+</p>
+</li>
+</ol>
+<ol type="1" start="2" >
+<li>
+<p>
+Documentation must be shipped preferably in <samp>dvi.gz</samp> and
+<samp>pdf</samp>.
+</p>
+</li>
+</ol>
+<ol type="1" start="3" >
+<li>
+<p>
+If both <samp>dvi.gz</samp> and <samp>pdf</samp> are provided, <samp>ps</samp>
+should not be provided.
+</p>
+</li>
+</ol>
+<ol type="1" start="4" >
+<li>
+<p>
+Ship the file <code>manual.toc</code> compressed.  This enable
+<samp>SetHelpviewer()</samp> to function properly.
+</p>
+</li>
+</ol>
+<ol type="1" start="5" >
+<li>
+<p>
+Ship the documentation in HTML if it is possible to build it with free tools.
+</p>
+</li>
+</ol>
+
+<hr>
+
+<p>
+[ <a href="ch5.html">previous</a> ]
+[ <a href="index.html#contents">Contents</a> ]
+[ <a href="ch1.html">1</a> ]
+[ <a href="ch2.html">2</a> ]
+[ <a href="ch3.html">3</a> ]
+[ <a href="ch4.html">4</a> ]
+[ <a href="ch5.html">5</a> ]
+[ 6 ]
+[ <a href="index.html">next</a> ]
+</p>
+
+<hr>
+
+<p>
+Debian GAP Policy
+</p>
+
+<address>
+version 0.1, 18 February 2009<br>
+<br>
+Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
+<br>
+</address>
+<hr>
+
+</body>
+
+</html>
+