--- sgmlspm-1.03ii.orig/Makefile
+++ sgmlspm-1.03ii/Makefile
@@ -14,22 +14,23 @@
 
 # Where is the binary for perl5 located on your system?
 PERL = /usr/bin/perl
+prefix= /usr
 
 # Where do you want the sgmlspl executable script to be installed?
-BINDIR = /usr/local/bin
+BINDIR = $(prefix)/bin
 
 # Where do you put local perl5 libaries?
-PERL5DIR = /usr/local/lib/perl5
+PERL5DIR = $(prefix)/lib/perl5
 MODULEDIR = ${PERL5DIR}/SGMLS
 
 # Where do you want to put sgmlspl specifications?
-SPECDIR = ${PERL5DIR}
+SPECDIR = $(prefix)/doc/sgmlspm/examples
 
 # If you plan to install the HTML version of the documentation, where
 # do you intend to put it?  'make html' will create two
 # subdirectories, ${HTMLDIR}/SGMLSpm and ${HTMLDIR}/sgmlspl, and place
 # its files there.
-HTMLDIR = /usr/local/lib/www/docs
+HTMLDIR = $(prefix)/doc/sgmlspm
 
 
 #
--- sgmlspm-1.03ii.orig/debian/changelog
+++ sgmlspm-1.03ii/debian/changelog
@@ -0,0 +1,24 @@
+sgmlspm (1.03ii-3) frozen unstable; urgency=low
+
+  * Updated Standards-Version to 2.1.3.0.
+  * New maintainer.
+
+ -- Christian Schwarz <schwarz@debian.org>  Thu, 17 Apr 1997 15:53:51 +0200
+
+sgmlspm (1.03ii-2) unstable; urgency=low
+
+  * Split binary target into binary-indep and binary-arch.
+  * Updated Standards-Version.
+  * Released into unstable.
+
+ -- Ian Jackson <ian@chiark.chu.cam.ac.uk>  Fri, 23 Aug 1996 12:11:40 +0100
+
+sgmlspm (1.03ii-1) experimental; urgency=LOW
+
+  * Initial Debian release.
+
+ -- Ian Jackson <ian@chiark.chu.cam.ac.uk>  Sat, 10 Aug 1996 01:47:30 +0100
+
+Local variables:
+mode: debian-changelog
+End:
--- sgmlspm-1.03ii.orig/debian/control
+++ sgmlspm-1.03ii/debian/control
@@ -0,0 +1,19 @@
+Source: sgmlspm
+Section: text
+Priority: optional
+Maintainer: Christian Schwarz <schwarz@debian.org>
+Standards-Version: 2.1.3.0
+
+Package: sgmlspm
+Architecture: all
+Recommends: sp | sgmls
+Description: Perl modules for processing SGML parser output
+ This is a set of Perl5 routines for processing the output
+ from the sgmls and ngsmls SGML parsers.
+ .
+ This package is required for formatting documentation written in SGML
+ whose back-end processing arrangements are based on it.  This
+ includes the dpkg programmers' manual and the Debian policy manual.
+ .
+ To make sensible use of this package you will need to install a
+ suitable SGML parser as well.
--- sgmlspm-1.03ii.orig/debian/copyright
+++ sgmlspm-1.03ii/debian/copyright
@@ -0,0 +1,28 @@
+This is Debian/GNU Linux's prepackaged version of David Megginson's
+sgmlspm-1.03ii Perl modules for processing sgmls and nsgmls output.
+
+This package was put together by me, Ian Jackson
+<ijackson@gnu.ai.mit.edu>, from the sources on src.doc.ic.ac.uk in
+/packages/perl/CPAN/modules/by-module/SGMLS/SGMLSpm-1.03ii.tar.gz.
+The changes were very minimal - merely adding support for the Debian
+package maintenance scheme, by adding various debian/* files.
+
+
+Program Copyright (C)1994,1995 David Megginson.
+Modifications for Debian Copyright (C)1996 Ian Jackson.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License with
+your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with the
+Debian GNU/Linux hello source package as the file COPYING.  If not,
+write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
--- sgmlspm-1.03ii.orig/debian/rules
+++ sgmlspm-1.03ii/debian/rules
@@ -0,0 +1,55 @@
+#!/usr/bin/make -f
+# Sample debian.rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself.  (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+package=sgmlspm
+docdir=debian/tmp/usr/doc/sgmlspm
+
+build:
+	$(checkdir)
+	true
+
+clean:
+	$(checkdir)
+#	-$(MAKE) -i clean
+	-rm -rf *~ debian/tmp debian/*~ debian/files*
+
+binary-arch:	checkroot build
+	$(checkdir)
+
+binary-indep:	checkroot build
+	-rm -rf debian/tmp
+	install -d debian/tmp debian/tmp/DEBIAN $(docdir)/examples
+	install -d debian/tmp/usr/{bin,lib/perl5}
+	dpkg-gencontrol >debian/tmp/DEBIAN/control
+	PATH=`pwd`:$(PATH) $(MAKE) prefix=debian/tmp/usr install install_html
+	cp BUGS TODO ChangeLog debian/copyright $(docdir)
+	cp DOC/ChangeLog $(docdir)/doc-ChangeLog
+	cp DOC/sample.pl test-SGMLS.pl $(docdir)/examples
+	cp -r DOC/Extras $(docdir)/examples/docbook
+	ln -s sgmlspl.html $(docdir)/sgmlspl/index.html
+	ln -s sgmlspm.html $(docdir)/SGMLSpm/index.html
+	find $(docdir) -size +10k | xargs -r gzip -9v
+	chown -R root.root debian/tmp
+	chmod -R go-ws,u+w debian/tmp
+	find debian/tmp -type d | xargs chmod 755
+	dpkg --build debian/tmp ..
+
+define checkdir
+	test -f SGMLS.pm -a -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary:		binary-indep binary-arch
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+.PHONY: binary source diff clean checkroot
