--- spooles-2.2.orig/debian/patch-html-doc
+++ spooles-2.2/debian/patch-html-doc
@@ -0,0 +1,113 @@
+--- spooles-2.2/spooles.2.2.html.bak	2008-02-26 04:11:31.000000000 +0000
++++ spooles-2.2/spooles.2.2.html	2008-02-26 04:17:32.000000000 +0000
+@@ -80,18 +80,9 @@
+ <p>
+ The library is available as a gzip'd, tar'd file that contains the
+ entire source, drivers and LaTeX documentation. 
+-There are seven Postscript files that contain documentation.
+-</p><p>
+-<ol>
+-<li> 
+-<a href="install.ps.gz">
+-install.ps.gz 
+-</a>
+---- "SPOOLES 2.2 Installation Manual",
+-7 pages,
+-describes the library's structure and installation procedures.
++There are four Postscript files that contain much of the documentation.
+ </p>
+-
++<ol>
+ <li> 
+ <a href="ReferenceManual.ps.gz">
+ ReferenceManual.ps.gz 
+@@ -104,8 +95,8 @@
+ </p>
+ 
+ <li> 
+-<a href="fronttrees.ps.gz">
+-fronttrees.ps.gz 
++<a href="FrontTrees.ps.gz">
++FrontTrees.ps.gz 
+ </a>
+ --- "Ordering Sparse Matrices and Transforming Front Trees",
+ 20, pages,
+@@ -150,23 +141,69 @@
+ </p>
+ 
+ <li> 
+-<a href="PP99.ps.gz">
+-PP99.ps.gz 
++<a href="ASHCRAFC.ps.gz">
++ASHCRAFC.ps.gz
+ </a>
+ "SPOOLES: An Object-Oriented Sparse Matrix Library",
+ a paper to be included in the Proceedings of the 
+ 1999 SIAM Conference on Parallel Processing for Scientific Computing,
+ March 22-27, 1999.
+ </p>
+-
+-<li> 
+-<a href="spooles.2.2.tar.gz">
+-spooles.2.2.tar.gz 
+-</a>
+---- gzip'd, tar'd file of library
+ </ol>
+-</p><p>
++<p>
+ <!-- *************************************************************** -->
++In addition, the following PostScript files document the SPOOLES
++modules:
++</p>
++<table><tr>
++<td><a href="A2.ps.gz">A2.ps.gz</a></td>
++<td><a href="DV.ps.gz">DV.ps.gz</a></td>
++<td><a href="I2Ohash.ps.gz">I2Ohash.ps.gz</a></td>
++<td><a href="MSMD.ps.gz">MSMD.ps.gz</a></td>
++<td><a href="SubMtx.ps.gz">SubMtx.ps.gz</a></td>
++</tr><tr>
++<td><a href="BKL.ps.gz">BKL.ps.gz</a></td>
++<td><a href="DenseMtx.ps.gz">DenseMtx.ps.gz</a></td>
++<td><a href="IIheap.ps.gz">IIheap.ps.gz</a></td>
++<td><a href="MT.ps.gz">MT.ps.gz</a></td>
++<td><a href="SubMtxList.ps.gz">SubMtxList.ps.gz</a></td>
++</tr><tr>
++<td><a href="BPG.ps.gz">BPG.ps.gz</a></td>
++<td><a href="Drand.ps.gz">Drand.ps.gz</a></td>
++<td><a href="IV.ps.gz">IV.ps.gz</a></td>
++<td><a href="Network.ps.gz">Network.ps.gz</a></td>
++<td><a href="SubMtxManager.ps.gz">SubMtxManager.ps.gz</a></td>
++</tr><tr>
++<td><a href="Chv.ps.gz">Chv.ps.gz</a></td>
++<td><a href="EGraph.ps.gz">EGraph.ps.gz</a></td>
++<td><a href="IVL.ps.gz">IVL.ps.gz</a></td>
++<td><a href="PatchAndGoInfo.ps.gz">PatchAndGoInfo.ps.gz</a></td>
++<td><a href="SymbFac.ps.gz">SymbFac.ps.gz</a></td>
++</tr><tr>
++<td><a href="ChvList.ps.gz">ChvList.ps.gz</a></td>
++<td><a href="ETree.ps.gz">ETree.ps.gz</a></td>
++<td><a href="Ideq.ps.gz">Ideq.ps.gz</a></td>
++<td><a href="Pencil.ps.gz">Pencil.ps.gz</a></td>
++<td><a href="Tree.ps.gz">Tree.ps.gz</a></td>
++</tr><tr>
++<td><a href="ChvManager.ps.gz">ChvManager.ps.gz</a></td>
++<td><a href="FrontMtx.ps.gz">FrontMtx.ps.gz</a></td>
++<td><a href="InpMtx.ps.gz">InpMtx.ps.gz</a></td>
++<td><a href="Perm.ps.gz">Perm.ps.gz</a></td>
++<td><a href="Utilities.ps.gz">Utilities.ps.gz</a></td>
++</tr><tr>
++<td><a href="Coords.ps.gz">Coords.ps.gz</a></td>
++<td><a href="GPart.ps.gz">GPart.ps.gz</a></td>
++<td><a href="Lock.ps.gz">Lock.ps.gz</a></td>
++<td><a href="SemiImplMtx.ps.gz">SemiImplMtx.ps.gz</a></td>
++<td><a href="ZV.ps.gz">ZV.ps.gz</a></td>
++</tr><tr>
++<td><a href="DSTree.ps.gz">DSTree.ps.gz</a></td>
++<td><a href="Graph.ps.gz">Graph.ps.gz</a></td>
++<td><a href="MPI.ps.gz">MPI.ps.gz</a></td>
++<td><a href="SolveMap.ps.gz">SolveMap.ps.gz</a></td>
++<td><a href="misc.ps.gz">misc.ps.gz</a></td>
++</tr></table>
+ <hr>
+ <p>
+ Changes since the 2.0 release.
--- spooles-2.2.orig/debian/patch-tex-fixes
+++ spooles-2.2/debian/patch-tex-fixes
@@ -0,0 +1,230 @@
+--- spooles-2.2/BPG/doc/main.tex~	1999-01-13 16:21:03.000000000 -0500
++++ spooles-2.2/BPG/doc/main.tex	2008-02-25 19:51:36.000000000 -0500
+@@ -3,6 +3,7 @@
+ %
+ % \documentstyle[leqno,11pt,twoside]{report}
+ \documentclass[leqno,10pt,twoside]{report}
++\usepackage{amsmath}
+ 
+ \textwidth      6.5 in
+ \textheight     8.5 in
+--- spooles-2.2/Chv/doc/main.tex~	1999-01-18 11:08:24.000000000 -0500
++++ spooles-2.2/Chv/doc/main.tex	2008-02-25 19:52:22.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/ChvList/doc/main.tex~	1999-01-18 11:08:28.000000000 -0500
++++ spooles-2.2/ChvList/doc/main.tex	2008-02-25 19:53:58.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/ChvManager/doc/main.tex~	1999-01-18 11:08:30.000000000 -0500
++++ spooles-2.2/ChvManager/doc/main.tex	2008-02-25 19:54:58.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/DenseMtx/doc/main.tex~	1998-11-11 10:45:57.000000000 -0500
++++ spooles-2.2/DenseMtx/doc/main.tex	2008-02-25 19:56:16.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/Eigen/doc/main.tex~	1998-12-19 13:28:39.000000000 -0500
++++ spooles-2.2/Eigen/doc/main.tex	2008-02-25 19:57:35.000000000 -0500
+@@ -9,7 +9,7 @@
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+ \makeindex
+-\input psfig
++\usepackage{psfig}
+  
+ \pagestyle{myheadings}
+ \markboth
+--- spooles-2.2/ETree/doc/main.tex~	1999-01-18 11:08:49.000000000 -0500
++++ spooles-2.2/ETree/doc/main.tex	2008-02-25 19:58:11.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \makeindex
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \begin{document}
+ 
+--- spooles-2.2/FrontMtx/doc/main.tex~	1999-01-18 11:08:54.000000000 -0500
++++ spooles-2.2/FrontMtx/doc/main.tex	2008-02-25 19:58:48.000000000 -0500
+@@ -13,7 +13,7 @@
+ \baselineskip   20 pt
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/Graph/doc/main.tex~	1999-01-18 11:08:58.000000000 -0500
++++ spooles-2.2/Graph/doc/main.tex	2008-02-25 19:59:30.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \makeindex
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \begin{document}
+ 
+--- spooles-2.2/ILUMtx/doc/main.tex~	1999-01-18 11:09:04.000000000 -0500
++++ spooles-2.2/ILUMtx/doc/main.tex	2008-02-25 20:00:37.000000000 -0500
+@@ -11,7 +11,7 @@
+ \baselineskip   20 pt
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/InpMtx/doc/main.tex~	1999-01-18 11:09:16.000000000 -0500
++++ spooles-2.2/InpMtx/doc/main.tex	2008-02-25 20:00:51.000000000 -0500
+@@ -12,7 +12,7 @@
+ \baselineskip   20 pt
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/Iter/doc/main.tex~	1999-01-18 11:09:18.000000000 -0500
++++ spooles-2.2/Iter/doc/main.tex	2008-02-25 20:01:27.000000000 -0500
+@@ -14,7 +14,7 @@
+ \baselineskip   20 pt
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/LinSol/doc/main.tex~	1999-01-02 14:25:58.000000000 -0500
++++ spooles-2.2/LinSol/doc/main.tex	2008-02-25 20:05:18.000000000 -0500
+@@ -9,7 +9,7 @@
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+ \makeindex
+-\input psfig
++\usepackage{psfig}
+  
+ \pagestyle{myheadings}
+ \markboth
+--- spooles-2.2/Lock/doc/main.tex~	1999-01-18 11:09:22.000000000 -0500
++++ spooles-2.2/Lock/doc/main.tex	2008-02-25 20:06:03.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \makeindex
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \begin{document}
+ 
+--- spooles-2.2/Pencil/doc/main.tex~	1999-01-18 11:09:38.000000000 -0500
++++ spooles-2.2/Pencil/doc/main.tex	2008-02-25 20:06:27.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/SemiImplMtx/doc/main.tex~	1999-01-18 11:09:43.000000000 -0500
++++ spooles-2.2/SemiImplMtx/doc/main.tex	2008-02-25 20:06:42.000000000 -0500
+@@ -13,7 +13,7 @@
+ \baselineskip   20 pt
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/SubMtx/doc/main.tex~	1999-01-18 11:09:46.000000000 -0500
++++ spooles-2.2/SubMtx/doc/main.tex	2008-02-25 20:06:59.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/SubMtxList/doc/main.tex~	1999-01-18 11:09:48.000000000 -0500
++++ spooles-2.2/SubMtxList/doc/main.tex	2008-02-25 20:07:20.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/SubMtxManager/doc/main.tex~	1999-01-18 11:09:51.000000000 -0500
++++ spooles-2.2/SubMtxManager/doc/main.tex	2008-02-25 20:07:35.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \newcommand{\bnd}{{\partial}}
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/Tree/doc/main.tex~	1999-01-18 11:09:56.000000000 -0500
++++ spooles-2.2/Tree/doc/main.tex	2008-02-25 20:07:49.000000000 -0500
+@@ -11,7 +11,7 @@
+ \baselineskip   20 pt
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \makeindex
+ 
+--- spooles-2.2/misc/doc/main.tex~	1999-01-18 11:10:06.000000000 -0500
++++ spooles-2.2/misc/doc/main.tex	2008-02-25 20:08:10.000000000 -0500
+@@ -13,7 +13,7 @@
+ 
+ \makeindex
+ 
+-\input psfig
++\usepackage{psfig}
+ 
+ \begin{document}
+ 
--- spooles-2.2.orig/debian/spooles-doc.docs
+++ spooles-2.2/debian/spooles-doc.docs
@@ -0,0 +1,47 @@
+documentation/AllInOne/AllInOne.ps
+documentation/FrontTrees/FrontTrees.ps
+documentation/ReferenceManual/ReferenceManual.ps
+documentation/PP99/ASHCRAFC.ps.gz
+A2/doc/A2.ps
+BKL/doc/BKL.ps
+BPG/doc/BPG.ps
+Chv/doc/Chv.ps
+ChvList/doc/ChvList.ps
+ChvManager/doc/ChvManager.ps
+Coords/doc/Coords.ps
+DSTree/doc/DSTree.ps
+DV/doc/DV.ps
+DenseMtx/doc/DenseMtx.ps
+Drand/doc/Drand.ps
+EGraph/doc/EGraph.ps
+ETree/doc/ETree.ps
+FrontMtx/doc/FrontMtx.ps
+GPart/doc/GPart.ps
+Graph/doc/Graph.ps
+I2Ohash/doc/I2Ohash.ps
+IIheap/doc/IIheap.ps
+IV/doc/IV.ps
+IVL/doc/IVL.ps
+Ideq/doc/Ideq.ps
+InpMtx/doc/InpMtx.ps
+Lock/doc/Lock.ps
+MSMD/doc/MSMD.ps
+Network/doc/Network.ps
+PatchAndGoInfo/doc/PatchAndGoInfo.ps
+Pencil/doc/Pencil.ps
+Perm/doc/Perm.ps
+SemiImplMtx/doc/SemiImplMtx.ps
+SolveMap/doc/SolveMap.ps
+SubMtx/doc/SubMtx.ps
+SubMtxList/doc/SubMtxList.ps
+SubMtxManager/doc/SubMtxManager.ps
+SymbFac/doc/SymbFac.ps
+Tree/doc/Tree.ps
+Utilities/doc/Utilities.ps
+ZV/doc/ZV.ps
+misc/doc/misc.ps
+MPI/doc/MPI.ps
+MT/doc/MT.ps
+Eigen/doc/Eigen.ps
+LinSol/doc/LinSol.ps
+spooles.2.2.html
--- spooles-2.2.orig/debian/patch-shared-libs
+++ spooles-2.2/debian/patch-shared-libs
@@ -0,0 +1,41 @@
+--- spooles-2.2/makeLib~	1998-12-16 12:47:58.000000000 -0500
++++ spooles-2.2/makeLib	2008-01-27 14:31:13.000000000 -0500
+@@ -64,14 +64,19 @@
+    $srcname = " \\\n     " . $src ;
+    print $srcname ;
+ }
++print "\n\n.SUFFIXES: .c .o .lo .a .so" ;
+ print "\n\nOBJ_FILES = \$\{SRC:.c=.o\}" ;
++print "\n\nLOBJ_FILES = \$\{SRC:.c=.lo\}" ;
+ print "\n\n" ;
+ print <<'EOF' ;
+ .c.o :
+-	$(PURIFY) $(CC) -c $(CFLAGS) $*.c -o $(OBJ)_$*.o
++	$(PURIFY) $(CC) -c $(CFLAGS) $*.c -o $(OBJ)_$*.o $(MPI_INCLUDE_DIR)
+ 
+-../../spooles.a : ${OBJ_FILES}
+-	$(AR) $(ARFLAGS) ../../spooles.a $(OBJ)_*.o
++.c.lo :
++	$(PURIFY) $(CC) -c $(CFLAGS) $*.c -fPIC -DPIC -o $(OBJ)_$*.lo $(MPI_INCLUDE_DIR)
++
++../../libspooles.a : ${OBJ_FILES} ${LOBJ_FILES}
++	$(AR) $(ARFLAGS) ../../libspooles.a $(OBJ)_*.o
+ 	rm -f $(OBJ)_*.o
+-	$(RANLIB) ../../spooles.a
++	$(RANLIB) ../../libspooles.a
+ EOF
+--- spooles-2.2/makefile~	1999-01-25 15:39:39.000000000 -0500
++++ spooles-2.2/makefile	2008-01-27 14:35:17.000000000 -0500
+@@ -123,8 +123,10 @@
+ 	cd Utilities        ; make lib
+ 	cd ZV               ; make lib
+ 	cd misc             ; make lib
+-#cd MPI              ; make lib
+-#cd MT               ; make lib
++	cd MPI              ; make lib
++	cd MT               ; make lib
++	gcc -shared */*/*.lo -Wl,-soname,libspooles.so.2.2 -o libspooles.so.2.2 -lmpi -lpthread -lm
++	ln -s libspooles.so.2.2 libspooles.so
+ 
+ global :
+ 	cd A2/src             ; make -f makeGlobalLib
--- spooles-2.2.orig/debian/spooles-doc.doc-base
+++ spooles-2.2/debian/spooles-doc.doc-base
@@ -0,0 +1,12 @@
+Document: spooles
+Title: SPOOLES SParse Object Oriented Linear Equations Solver
+Abstract: SPOOLES is a library for solving sparse real and complex linear
+ systems of equations, written in the C language using object oriented design.
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/spooles-doc/spooles.2.2.html
+Files: /usr/share/doc/spooles-doc/*.html
+
+Format: PostScript
+Files: /usr/share/doc/spooles-doc/*.ps.gz
--- spooles-2.2.orig/debian/rules
+++ spooles-2.2/debian/rules
@@ -0,0 +1,114 @@
+#!/usr/bin/make -f
+# Made with the aid of debmake, by Christoph Lameter,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+
+package=spooles
+
+# Support multiple makes at once
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+else
+NJOBS := 1
+endif
+
+unpatch:
+	dh_testdir
+	if [ -e patch-stamp ]; then \
+	  patch -p1 -R < debian/patch-tex-fixes; \
+	  patch -p1 -R < debian/patch-html-doc; \
+	  patch -p1 -R < debian/patch-latex-usepackage; \
+	  patch -p1 -R < debian/patch-shared-libs; \
+	  patch -p1 -R < debian/patch-makefiles; \
+	  rm -f patch-stamp; \
+	fi
+
+clean:
+	dh_testdir
+	dh_clean
+	make clean
+	rm -f */*/*.lo
+	debian/rules unpatch
+	rm -f *-stamp
+
+patch-stamp:
+	dh_testdir
+	if [ ! -e patch-stamp ]; then \
+	  patch -p1 < debian/patch-makefiles; \
+	  patch -p1 < debian/patch-shared-libs; \
+	  patch -p1 < debian/patch-latex-usepackage; \
+	  patch -p1 < debian/patch-html-doc; \
+	  patch -p1 < debian/patch-tex-fixes; \
+	  touch $@; \
+	fi
+
+build: build-stamp
+build-stamp: patch-stamp
+	make lib
+	touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: patch-stamp
+	for texdocdir in AllInOne FrontTrees ReferenceManual; do \
+	  (cd documentation/$$texdocdir; \
+	   latex main; \
+	   latex main; \
+	   latex main; \
+	   dvips main -o $$texdocdir.ps); \
+	done
+	for module in A2 BKL BPG Chv ChvList ChvManager Coords DSTree DV \
+	    DenseMtx Drand EGraph ETree FrontMtx GPart Graph I2Ohash IIheap \
+	    IV IVL Ideq InpMtx Lock MSMD Network PatchAndGoInfo Pencil Perm \
+	    SemiImplMtx SolveMap SubMtx SubMtxList SubMtxManager SymbFac Tree \
+	    Utilities ZV misc MPI MT Eigen LinSol; do \
+	  (cd $$module/doc; \
+	   latex main; \
+	   latex main; \
+	   latex main; \
+	   dvips main -o $$module.ps); \
+	done
+	touch $@
+
+install-arch: build
+	dh_testdir
+	install -d debian/tmp/usr/lib
+	cp -a libspooles* debian/tmp/usr/lib/
+	for headerfile in `find . -name \*.h -print`; do \
+	  install -D $$headerfile debian/tmp/usr/include/spooles/$$headerfile;\
+	done
+
+install-indep: build-indep
+
+binary-indep: install-indep
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdirs -i
+#	dh_movefiles -i
+	dh_installdocs -i
+	dh_installchangelogs -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: install-arch
+	dh_testdir -a
+	dh_testroot -a
+	dh_installdirs -a
+	dh_movefiles -a
+	dh_installdocs -a
+	dh_installchangelogs -a
+	dh_strip -a
+	dh_makeshlibs -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: binary binary-arch binary-indep clean install-arch install-indep build build-indep
--- spooles-2.2.orig/debian/changelog
+++ spooles-2.2/debian/changelog
@@ -0,0 +1,15 @@
+spooles (2.2-2) unstable; urgency=low
+
+  * Added MPI and MT directories to build (closes: #467315).
+  * Building all */doc docs now (closes: #464722).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Mon, 25 Feb 2008 23:18:48 -0500
+
+spooles (2.2-1) unstable; urgency=low
+
+  * First Debianization of SPOOLES (closes: #462867).
+  * Added shared libraries to original static-only distribution.
+  * Building docs in main documentation directory, not */doc directories yet.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Sun, 27 Jan 2008 20:10:36 -0500
+
--- spooles-2.2.orig/debian/patch-makefiles
+++ spooles-2.2/debian/patch-makefiles
@@ -0,0 +1,71 @@
+--- spooles-2.2/Make.inc~	1999-01-18 16:48:55.000000000 -0500
++++ spooles-2.2/Make.inc	2008-01-27 13:17:26.000000000 -0500
+@@ -12,7 +12,7 @@
+ # for solaris
+ #
+ # CC = gcc
+-  CC = /usr/lang-4.0/bin/cc
++#  CC = /usr/lang-4.0/bin/cc
+ #
+ # for sgi
+ #
+@@ -28,7 +28,7 @@
+ # 
+ # OPTLEVEL = 
+ # OPTLEVEL = -g -v
+-  OPTLEVEL = -O
++  OPTLEVEL = -O2
+ # OPTLEVEL = -xO5 -v
+ # OPTLEVEL = -O3
+ # OPTLEVEL = -O4
+@@ -43,7 +43,7 @@
+ #  set any load flags
+ #
+ #  LDFLAGS = -Wl,+parallel -Wl,+tm,spp2000 # for hp exemplar
+-   LDFLAGS =
++#   LDFLAGS =
+ #
+ #---------------------------------------------------------------------
+ #
+@@ -103,7 +103,7 @@
+ #  MPI install library
+ #
+ # MPI_INSTALL_DIR = 
+-  MPI_INSTALL_DIR = /usr/local/mpich-1.0.13
++  MPI_INSTALL_DIR = /usr/lib/openmpi
+ #
+ #---------------------------------------------------------------------
+ #
+--- spooles-2.2/MPI/makefile~	1998-12-17 15:47:44.000000000 +0000
++++ spooles-2.2/MPI/makefile	2008-02-26 00:10:57.000000000 +0000
+@@ -2,7 +2,7 @@
+ 	cd drivers ; make drivers
+ 
+ lib :
+-	cd src ; make spoolesMPI.a
++	cd src ; make makeLib
+ 
+ clean :
+ 	cd src ; make clean
+--- spooles-2.2/MPI/src/makefile~	1998-12-16 21:54:41.000000000 +0000
++++ spooles-2.2/MPI/src/makefile	2008-02-26 00:08:16.000000000 +0000
+@@ -42,3 +42,8 @@
+ 
+ clean :
+ 	- rm -f *.a *.o
++
++makeLib :
++	perl ../../makeLib > makeG
++	make -f makeG
++	rm -f makeG
+--- spooles-2.2/MT/makefile~	1998-12-17 15:47:48.000000000 +0000
++++ spooles-2.2/MT/makefile	2008-02-26 00:12:43.000000000 +0000
+@@ -2,7 +2,7 @@
+ 	cd drivers ; make drivers
+ 
+ lib :
+-	cd src ; make spoolesMT.a
++	cd src ; make makeLib
+ 
+ clean :
+ 	cd src ; make clean
--- spooles-2.2.orig/debian/copyright
+++ spooles-2.2/debian/copyright
@@ -0,0 +1,14 @@
+This package was debianized by Adam C. Powell, IV <hazelsct@debian.org> on
+January 27, 2008.
+
+It was downloaded from http://www.netlib.org/linalg/spooles/
+
+SPOOLES is public domain, as described in lines 70-76 of spooles.2.2.html:
+
+This release is entirely within the public domain; 
+there are no licensing restrictions,
+and there is no warranty of any sort.
+</b>
+</p><p>
+Contact <tt>cleve.ashcraft@boeing.com</tt> for more information, 
+comments and bug reports.
--- spooles-2.2.orig/debian/control
+++ spooles-2.2/debian/control
@@ -0,0 +1,39 @@
+Source: spooles
+Section: math
+Priority: extra
+Maintainer: Adam C. Powell, IV <hazelsct@debian.org>
+Standards-Version: 3.7.3.0
+Build-Depends: debhelper (>= 3.0), libopenmpi-dev
+Build-Depends-Indep: texlive-latex-base, texlive-generic-extra
+Homepage: http://www.netlib.org/linalg/spooles/
+
+Package: libspooles-dev
+Architecture: any
+Section: libdevel
+Depends: libspooles2.2 (= ${binary:Version})
+Suggests: spooles-doc
+Description: SPOOLES SParse Object Oriented Linear Equations Solver development files
+ SPOOLES is a library for solving sparse real and complex linear systems of
+ equations, written in the C language using object oriented design.
+ .
+ This package contains the SPOOLES development files.
+
+Package: libspooles2.2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Description: SPOOLES SParse Object Oriented Linear Equations Solver shared library
+ SPOOLES is a library for solving sparse real and complex linear systems of
+ equations, written in the C language using object oriented design.
+ .
+ This package contains the SPOOLES shared library.
+
+Package: spooles-doc
+Architecture: all
+Section: doc
+Suggests: libspooles2.2-dev
+Description: SPOOLES numerical simulation pre- and post-processor documentation
+ SPOOLES is a library for solving sparse real and complex linear systems of
+ equations, written in the C language using object oriented design.
+ .
+ This package contains the documentation for SPOOLES.
--- spooles-2.2.orig/debian/compat
+++ spooles-2.2/debian/compat
@@ -0,0 +1 @@
+5
--- spooles-2.2.orig/debian/patch-latex-usepackage
+++ spooles-2.2/debian/patch-latex-usepackage
@@ -0,0 +1,33 @@
+--- spooles-2.2/documentation/AllInOne/main.tex~	1999-01-13 20:33:25.000000000 +0000
++++ spooles-2.2/documentation/AllInOne/main.tex	2008-01-27 21:12:09.000000000 +0000
+@@ -12,7 +12,7 @@
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+ \makeindex
+-\input psfig
++\usepackage{psfig}
+ 
+ \newcommand{\bfi}{{\bf i}}
+ \newcommand{\bfj}{{\bf j}}
+--- spooles-2.2/documentation/FrontTrees/main.tex~	1998-12-05 21:28:54.000000000 +0000
++++ spooles-2.2/documentation/FrontTrees/main.tex	2008-01-27 21:12:56.000000000 +0000
+@@ -12,7 +12,7 @@
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+ \makeindex
+-\input psfig
++\usepackage{psfig}
+ 
+ \newcommand{\bfi}{{\bf i}}
+ \newcommand{\bfj}{{\bf j}}
+--- spooles-2.2/documentation/ReferenceManual/main.tex~	1999-01-16 18:05:40.000000000 +0000
++++ spooles-2.2/documentation/ReferenceManual/main.tex	2008-01-27 21:13:19.000000000 +0000
+@@ -14,7 +14,7 @@
+ \parskip        3 pt plus 1 pt minus 1 pt
+ 
+ \makeindex
+-\input psfig
++\usepackage{psfig}
+ 
+ \newcommand{\bfi}{{\bf i}}
+ \newcommand{\bfj}{{\bf j}}
--- spooles-2.2.orig/debian/libspooles2.2.files
+++ spooles-2.2/debian/libspooles2.2.files
@@ -0,0 +1 @@
+usr/lib/*.so.*
--- spooles-2.2.orig/debian/libspooles-dev.files
+++ spooles-2.2/debian/libspooles-dev.files
@@ -0,0 +1,3 @@
+usr/lib/*.so
+usr/lib/*.a
+usr/include/*
