tex-guy (1.3.2-5) debian-dir only changes

Summary

 debian/changelog                         |  303 +++++++++++++++++++++++++++++++
 debian/compat                            |    1 
 debian/control                           |  116 +++++++++++
 debian/copyright                         |   45 ++++
 debian/dvilib2-dev.files                 |    4 
 debian/dvilib2-dev.manpages              |    2 
 debian/libdvilib2-16.docs                |    2 
 debian/libdvilib2-16.files               |    2 
 debian/patches/00list                    |    2 
 debian/patches/01_manpage_build.dpatch   |   24 ++
 debian/patches/01_manpage_section.dpatch |   34 +++
 debian/rules                             |  106 ++++++++++
 debian/spawg.docs                        |    2 
 debian/spawg.files                       |    2 
 debian/spawg.manpages                    |    2 
 debian/spawx11.docs                      |    2 
 debian/spawx11.files                     |    3 
 debian/spawx11.manpages                  |    3 
 debian/tex-guy-dev.dirs                  |    2 
 debian/tex-guy.desktop                   |   10 +
 debian/tex-guy.dirs                      |    1 
 debian/tex-guy.docs                      |    2 
 debian/tex-guy.files                     |    1 
 debian/tex-guy.install                   |    1 
 debian/tex-guy.manpages                  |   17 +
 debian/watch                             |    6 
 debian/xgdvi.docs                        |    2 
 debian/xgdvi.files                       |    3 
 debian/xgdvi.manpages                    |    1 
 debian/xgdvi.menu                        |    2 
 30 files changed, 703 insertions(+)

    
download this patch

Patch contents

--- tex-guy-1.3.2.orig/debian/spawg.files
+++ tex-guy-1.3.2/debian/spawg.files
@@ -0,0 +1,2 @@
+usr/bin/spawg
+usr/bin/spwg
--- tex-guy-1.3.2.orig/debian/control
+++ tex-guy-1.3.2/debian/control
@@ -0,0 +1,116 @@
+Source: tex-guy
+Section: tex
+Priority: optional
+Maintainer: OHURA Makoto <ohura@debian.org>
+Build-Depends: autotools-dev, debhelper (>= 5.0.0), gettext, libgtk1.2-dev, libxt-dev, vflib3-dev (>=3.6.14.dfsg), xutils-dev, dpatch
+Standards-Version: 3.7.2
+
+Package: dvilib2-dev
+Section: libdevel
+Architecture: any
+Depends: libdvilib2-16 (= ${binary:Version}), ${shlibs:Depends}
+Description: a portable DVI interpreter library - development
+ DVIlib2 is a library for handling DeVice Independent(DVI) files which 
+ are usually generated by TeX.  It can be used for the core engine of your 
+ DVIware, and thanks to VFlib3 your product will be able to handle 
+ various fonts.  EPS figures managed by graphicx.sty and Japanese TeX 
+ DVI files are also supported.
+ .
+ Note that DVIlib2 itself is NOT DVIware.  It's just a library.  If you 
+ are looking for a complete DVI previewer etc., why don't you try xgdvi or 
+ spawx11?
+ .
+ This package contains various files needed for development using DVIlib2.
+ .
+ This is a part of the TeX-Guy distribution.
+ .
+  Homepage: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
+
+Package: libdvilib2-16
+Section: libs
+Architecture: any
+Replaces: libdvilib2-13
+Depends: ${shlibs:Depends}, texlive
+Description: a portable DVI interpreter library - runtime
+ DVIlib2 is a library for handling DeVice Independent(DVI) files which 
+ are usually generated by TeX.  It can be used for the core engine of your 
+ DVIware, and thanks to VFlib3 your product will be able to handle
+ various fonts.  EPS figures managed by graphicx.sty and Japanese TeX DVI
+ files are also supported.
+ .
+ Note that DVIlib2 itself is NOT DVIware.  It's just a library.  If you 
+ are looking for a complete DVI previewer etc., why don't you try xgdvi or 
+ spawx11?
+ .
+ This package contains the shared libraries and configuration files 
+ needed to run programs using DVIlib2.
+ .
+ This is a part of the TeX-Guy distribution.
+ .
+  Homepage: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
+
+Package: xgdvi
+Section: tex
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: dviutils
+Description: a TeX DVI previewer for X, with a nice GTK+ UI
+ xgdvi is a TeX DVI(DeVice Independent) file previewer for the X Window 
+ System. xgdvi features a cool GTK+ frontend, and since it uses DVIlib as 
+ its kernel, xgdvi can handle EPS figures and Japanese DVI files.  
+ Anti-aliasing is also supported.
+ .
+ This is a part of the TeX-Guy distribution.
+ .
+  Homepage: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
+ 
+Package: spawx11
+Section: tex
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: a simple TeX DVI previewer for X11
+ spawx11 is a simple TeX DVI(DeVice Independent) file previewer for the X 
+ Window System.  It has no color support, but anti-aliasing is still 
+ supported.  No-anti-aliasing versions (spwx11 and spx11) are also 
+ included, too.
+ .
+ This is a part of the TeX-Guy distribution.
+ .
+  Homepage: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
+
+Package: spawg
+Section: tex
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: a simple TeX DVI previewer with a simple GTK+ UI
+ spawg is a simple TeX DVI(DeVice Independent) file previewer for the X 
+ Window System.  It has no color support, but anti-aliasing is still 
+ supported.  Unlike spawx11, it has a humble but comfortable GTK+ frontend.
+ No-anti-aliasing version (spwg) is also included, too.
+ .
+ This is a part of the TeX-Guy distribution.
+ .
+  Homepage: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
+
+Package: tex-guy
+Section: tex
+Architecture: any
+Depends: ${shlibs:Depends}, imagemagick
+Description: miscellaneous utilities using DVIlib
+ This package contains several utilities useful for dealing with 
+ TeX DVI files.  
+ .
+ dvi2misc generates PostScript, PGM or images for EPSON 
+ ESC/Page and Ricoh RPDL printers from a TeX DVI.  It can be used as an
+ DVI driver for those printers.
+ .
+ dvifontlist displays a list of fonts used in a DVI file, while 
+ dvispecials displays a list of 'special' commands in a DVI file.
+ dvipages shows the number of pages in a DVI file.
+ .
+ xgdvi, spawx11 and spawg has been separated since they depend on X and/or 
+ GTK+ libraries. 
+ .
+ This is a part of the TeX-Guy distribution.
+ .
+  Homepage: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
--- tex-guy-1.3.2.orig/debian/xgdvi.files
+++ tex-guy-1.3.2/debian/xgdvi.files
@@ -0,0 +1,3 @@
+usr/bin/xgdvi
+usr/share/xgdvi
+usr/share/locale/*/LC_MESSAGES/xgdvi*.mo
--- tex-guy-1.3.2.orig/debian/compat
+++ tex-guy-1.3.2/debian/compat
@@ -0,0 +1 @@
+5
--- tex-guy-1.3.2.orig/debian/xgdvi.menu
+++ tex-guy-1.3.2/debian/xgdvi.menu
@@ -0,0 +1,2 @@
+?package(xgdvi):needs="X11" section="Apps/Viewers"\
+  title="Xgdvi" command="/usr/bin/xgdvi"
--- tex-guy-1.3.2.orig/debian/changelog
+++ tex-guy-1.3.2/debian/changelog
@@ -0,0 +1,303 @@
+tex-guy (1.3.2-5) unstable; urgency=low
+
+  * debian/control:
+    - Add xutils-dev to Build-Depends: field.
+    - Add versioned dependency on vflib3-dev (>=3.6.14.dfsg) to make
+    sure that tex-guy is built with FreeType 2.
+    - Remove gs-gpl | gs-esp from Depends: field.
+  * debian/rules:
+    - Don't copy config.sub and config.guess at clean target.
+    - Don't ignore make clean error.
+
+ -- OHURA Makoto <ohura@debian.org>  Fri, 13 Jun 2008 22:03:57 +0900
+
+tex-guy (1.3.2-4) unstable; urgency=low
+
+  * debian/copyright: Rewrote license descriptions.
+  * Switched to dpatch system.
+    - debian/patches/01_manpage_build.dpatch,01_manpage_section.dpatch:
+    Added. 
+  * Used dh_installman to install manpages.
+
+ -- OHURA Makoto <ohura@debian.org>  Sun, 06 Jan 2008 22:03:50 +0900
+
+tex-guy (1.3.2-3) unstable; urgency=low
+
+  * New maintainer.
+  * debian/control: Changed maintainer's name and address.
+
+ -- OHURA Makoto <ohura@debian.org>  Sun, 16 Dec 2007 15:26:43 +0900
+
+tex-guy (1.3.2-2) unstable; urgency=low
+
+  * QA upload.
+  * debian/control:
+    - Use ${binary:Version} to make the package binNMU safe.
+    - Set libdvilib2-16 to replace libdvilib2-13 (Closes: #425866).
+
+ -- Lior Kaplan <kaplan@debian.org>  Sun, 24 Jun 2007 21:59:36 +0300
+
+tex-guy (1.3.2-1) unstable; urgency=low
+
+  * QA upload.
+    - Acknowledge previous QA upload (Closes: #405843).
+  * New upstream release
+    - Doesn't write outside of the build directory (Closes: #415367).
+    - Soname change for libdvilib2.
+    - Merges debian's patches upstream.
+  * debian/control:
+    - Clean build-depends, remove duplicate dependencies.
+    - Use texlive instead of tetex (Closes: #413977).
+    - Add imagemagic to tex-guy dependencies (Closes: #409174).
+    - Rename libdvilib2-13 to libdvilib2-16 to reflect the soname change.
+  * debian/rules:
+    - Add -V options to dh_makeshlibs, to generate versioned dependencies of
+      dvilib2 (Closes: #407505).
+
+ -- Lior Kaplan <kaplan@debian.org>  Thu, 03 May 2007 00:30:12 +0300
+
+tex-guy (1.2.4-7) unstable; urgency=low
+
+  * QA upload.
+  * Rename dvilib2 to libdvilib2-13 so it would be compatible with its soname.
+  * Fix lintian warning:
+    - Old FSF address on debian/copyright.
+    - Missing quotes on xgdvi.menu.
+    - Remove extra license files.
+  * Remove Startup16.css as we don't provide its html files.
+  * Add a .desktop file for tex-guy (taken from Ubuntu).
+
+ -- Lior Kaplan <kaplan@debian.org>  Sat,  6 Jan 2007 19:20:28 +0200
+
+tex-guy (1.2.4-6) unstable; urgency=low
+
+  * QA upload.
+  * Added support for GNU/kFreeBSD (closes: bug#345213).
+  * Remove the build-dependency on awk (closes: bug#340249).
+  * Update upstream URL (closes: bug#378990).
+
+ -- Aurelien Jarno <aurel32@debian.org>  Thu, 30 Nov 2006 23:47:13 +0100
+
+tex-guy (1.2.4-5) unstable; urgency=low
+
+  * Orphaning this package.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Wed, 18 Oct 2006 23:12:56 +0900
+
+tex-guy (1.2.4-4.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Replace build-dependency on xlibs-dev with an explicit build-dependency
+    on each required package. (Closes: #346990)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sat, 21 Jan 2006 13:29:49 +0100
+
+tex-guy (1.2.4-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Binaries were being linked against a lot of spurious libraries, so:
+    - re-libtoolize with the latest libtool
+    - use VFlib3-config --lib-vflib instead of VFlib3-config --libs in the
+      DVIlib Makefile
+    - remove other unnecessary uses of VFlib3-config, since the lib will
+      be pulled in via libtool if needed
+    - set DVILIB to -L../DVILIB2/ -ldvilib2 instead of to
+      ../DVILIB2/libdvilib2.la, to avoid libtool treating this as a
+      convenience lib and failing to prune the indirect dependencies
+      from the linker line; for the moment, this means not listing the
+      .la file as a make dependency of the target binaries, but this is
+      a minor issue packaging-wise
+    - trim use of the redundant $(XLIB) variable, which is always
+      implicit in gtk-config --libs.
+    Some spurious libraries are still being linked in, because gtk-config
+    doesn't have a corresponding option.
+  * Remove the build-dependency on the obsoleted t1lib-dev, as well as
+    on libttf-dev and libkpathsea-dev: nothing in this package uses them
+    directly, they are only indirect build-dependencies via vflib3.
+    Closes: #251181.
+
+ -- Steve Langasek <vorlon@debian.org>  Mon, 11 Jul 2005 02:22:57 -0700
+
+tex-guy (1.2.4-4) unstable; urgency=low
+
+  * [control] changed Maintainer field.
+  * [control] changed Sections appropriately.
+  * Bumped to Standards-Version: 3.6.1.
+  * Updated libtool scripts - closes: #201920
+  * Fixed reload crasher - closes: #185828, #191648
+  * Now recommends dviutils - closes: #191650
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sun, 15 Feb 2004 01:15:04 +0900
+
+tex-guy (1.2.4-3) unstable; urgency=low
+
+  * Bumped to Standards-Version: 3.5.7.
+  * Depends: gs - closes: #163423
+  * Applied patches from Dan Elphick, thankx! - closes: #167138, #162300, #162301
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sun,  3 Nov 2002 11:15:51 +0900
+
+tex-guy (1.2.4-2) unstable; urgency=low
+
+  * Added Build-Depends: autotools-dev.  config.{guess,sub} are now
+    updated from /usr/share/misc at build time.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 15 Apr 2002 16:06:09 +0900
+
+tex-guy (1.2.4-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Masayuki Hatta <mhatta@debian.org>  Wed,  7 Nov 2001 20:11:44 +0900
+
+tex-guy (1.2.3-2) unstable; urgency=low
+
+  * Oops, 1.2.3-1 linked with the older version of vflib3.  Rebuilt...
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sun,  4 Nov 2001 13:05:37 +0900
+
+tex-guy (1.2.3-1) unstable; urgency=low
+
+  * New upstream release
+  * [xgdvi] Improved EPS handling may have fixed this bug.  If not, please
+  reopen and send me DVI - closes: #63328
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sat,  3 Nov 2001 10:36:08 +0900
+
+tex-guy (1.2.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Fixed in the upstream - closes: #112639, #77540
+
+ -- Masayuki Hatta <mhatta@debian.org>  Thu,  4 Oct 2001 11:05:53 +0900
+
+tex-guy (1.2.1-4) unstable; urgency=low
+
+  * Fixed long-standing locale bug (from Wojciech Wisniewski) - closes: #102075
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 17 Sep 2001 13:30:19 +0900
+
+tex-guy (1.2.1-3) unstable; urgency=low
+
+  * Updated config.{sub,guess} - closes: #105228
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 16 Jul 2001 20:17:18 +0900
+
+tex-guy (1.2.1-2) unstable; urgency=low
+
+  * Applied patches for DVIlib2/dvi.c and DVIlib2/util.c from the upstream.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Wed, 11 Jul 2001 23:24:04 +0900
+
+tex-guy (1.2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Re-packaged.
+  * Updated to Standards-Version: 3.5.2.
+  * Now uses debhelper V3.
+  * Added Build-Depends: gettext, awk.
+  * Finally, this bug has been fixed - closes: #77540
+  * Seems this bug has gone, if not please reopen - closes: #102075
+  
+ -- Masayuki Hatta <mhatta@debian.org>  Tue, 10 Jul 2001 00:30:39 +0900
+
+tex-guy (1.1.9-5) frozen unstable; urgency=low
+
+  * Added Build-Depends: xutils - closes: #96432
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sun,  6 May 2001 09:15:50 +0900
+
+tex-guy (1.1.9-4) frozen unstable; urgency=low
+
+  * Rebuilt with libttf2.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sat,  5 May 2001 18:16:44 +0900
+
+tex-guy (1.1.9-3) frozen unstable; urgency=high
+
+  * Rebuild with normal libgtk1.2 & libglib debs. - Closes: #80789
+
+ -- Masayuki Hatta <mhatta@debian.org>  Thu,  4 Jan 2001 12:10:11 +0900
+
+tex-guy (1.1.9-2) frozen unstable; urgency=high
+
+  * Oops, Build-Depends should've been libkpathsea-dev and xlibs-dev.  Fixed.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Wed, 20 Dec 2000 19:05:57 +0900
+
+tex-guy (1.1.9-1) frozen unstable; urgency=high
+
+  * New upstream release
+  * Added Build-Depends: debhelper - Closes: #65866
+  * Seems this mysterious bug fixed.  Please reopen if not - Closes: #67467
+
+ -- Masayuki Hatta <mhatta@debian.org>  Wed, 20 Dec 2000 10:41:36 +0900
+
+tex-guy (1.1.8-3) frozen unstable; urgency=high
+
+  * New Maintainer Upload.  I'd like to thank my AM and ex-sponsor, 
+    Fumitoshi UKAI <ukai@debian.org>.
+  * ja.po is moved to /usr/share/locale/ja.  This is an ugly hack, 
+    I'll really fix it when I have time.
+  * Closes: #66696  (This bug has been already fixed on 1.1.8-2)
+  
+ -- Masayuki Hatta <mhatta@debian.org>  Sat, 28 Oct 2000 22:55:28 +0900
+
+tex-guy (1.1.8-2) frozen unstable; urgency=high
+
+  * [dvilib2] added Depends: tetex-extra (Closes #66696).
+  * It can be a RC bug, since xgdvi is virtually no use without tetex-extra.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Wed,  5 Jul 2000 01:48:28 +0900
+
+tex-guy (1.1.8-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Masayuki Hatta <masayuki-h@geocities.co.jp>  Fri, 23 Jun 2000 17:56:30 +0900
+
+tex-guy (1.1.7-3) unstable; urgency=low
+
+  * Added appropriate Build-Depends: (Closes Bug#JP/1206).
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Mon,  1 May 2000 10:27:10 +0900
+
+tex-guy (1.1.7-2) unstable; urgency=low
+
+  * Modified control.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Thu, 20 Apr 2000 10:17:36 +0900
+
+tex-guy (1.1.7-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Wed, 19 Apr 2000 20:08:11 +0900
+
+tex-guy (1.1.4-4) unstable; urgency=low
+
+  * Now everything depend on dvilib2.
+  & Description: revised again.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Fri, 14 Jan 2000 22:11:16 +0900
+
+tex-guy (1.1.4-3) unstable; urgency=low
+
+  * Recompiled with t1lib1.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Fri,  7 Jan 2000 07:25:02 +0900
+
+tex-guy (1.1.4-2) unstable; urgency=low
+
+  * Description: revised.
+  * xgdvi: Delete /usr/share/locale/ja_JP.EUC.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Mon,  3 Jan 2000 19:09:21 +0900
+
+tex-guy (1.1.4-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Tue, 28 Dec 1999 01:20:37 +0900
+
+
--- tex-guy-1.3.2.orig/debian/tex-guy.manpages
+++ tex-guy-1.3.2/debian/tex-guy.manpages
@@ -0,0 +1,17 @@
+man/dvi2bdps.1
+man/dvi2escpg.1
+man/dvi2escpg-filt.1
+man/dvi2escpg-filt-l.1
+man/dvi2html.1
+man/dvi2img.1
+man/dvi2misc.1
+man/dvi2pgm.1
+man/dvi2ppm.1
+man/dvi2rpdl.1
+man/dvi2rpdl-filt-a4.1
+man/dvi2rpdl-filt-a4-l.1
+man/dvi2rpdl-filt-b4.1
+man/dvi2rpdl-filt-b4-l.1
+man/dvifontlist.1
+man/dvipages.1
+man/dvispecials.1
--- tex-guy-1.3.2.orig/debian/tex-guy.docs
+++ tex-guy-1.3.2/debian/tex-guy.docs
@@ -0,0 +1,2 @@
+00_PRODUCTS
+00_README
--- tex-guy-1.3.2.orig/debian/rules
+++ tex-guy-1.3.2/debian/rules
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# 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_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# Include dpatch stuff.
+include /usr/share/dpatch/dpatch.make
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+        INSTALL_PROGRAM += -s
+endif
+
+# shared library versions, option 1
+#version=2.0.5
+#major=2
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+version=`ls src/.libs/lib*.so.* | \
+ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+major=`ls src/.libs/lib*.so.* | \
+ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess .
+	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
+	--enable-static --with-gettext
+
+	touch configure-stamp
+
+build: patch configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	$(MAKE) -C man mkman
+
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess
+
+	rm -f man/*.1 man/*.3
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp
+	$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
+	rm -f debian/tmp/usr/share/xgdvi/License*.txt # Remove extra license files.
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_movefiles
+
+	dh_install
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installcron
+	dh_installman
+	dh_installinfo
+	dh_installchangelogs CHANGES
+	dh_desktop
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs -V
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- tex-guy-1.3.2.orig/debian/spawx11.docs
+++ tex-guy-1.3.2/debian/spawx11.docs
@@ -0,0 +1,2 @@
+00_PRODUCTS
+00_README
--- tex-guy-1.3.2.orig/debian/libdvilib2-16.docs
+++ tex-guy-1.3.2/debian/libdvilib2-16.docs
@@ -0,0 +1,2 @@
+00_PRODUCTS
+00_README
--- tex-guy-1.3.2.orig/debian/spawx11.manpages
+++ tex-guy-1.3.2/debian/spawx11.manpages
@@ -0,0 +1,3 @@
+man/spawx11.1
+man/spwx11.1
+man/spx11.1
--- tex-guy-1.3.2.orig/debian/dvilib2-dev.manpages
+++ tex-guy-1.3.2/debian/dvilib2-dev.manpages
@@ -0,0 +1,2 @@
+man/DVIlib2-config.1
+man/dvilib.3
--- tex-guy-1.3.2.orig/debian/tex-guy.dirs
+++ tex-guy-1.3.2/debian/tex-guy.dirs
@@ -0,0 +1 @@
+usr/share/applications
--- tex-guy-1.3.2.orig/debian/tex-guy.files
+++ tex-guy-1.3.2/debian/tex-guy.files
@@ -0,0 +1 @@
+usr/bin/dvi*
--- tex-guy-1.3.2.orig/debian/spawx11.files
+++ tex-guy-1.3.2/debian/spawx11.files
@@ -0,0 +1,3 @@
+usr/bin/spawx11
+usr/bin/spwx11
+usr/bin/spx11
--- tex-guy-1.3.2.orig/debian/watch
+++ tex-guy-1.3.2/debian/watch
@@ -0,0 +1,6 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# Site		Directory		Pattern			Version	Script
+version=3
+http://www-masu.ist.osaka-u.ac.jp/~kakugawa/download/TypeHack/TeX-Guy-(.*)\.tar\.gz debian uupdate
--- tex-guy-1.3.2.orig/debian/libdvilib2-16.files
+++ tex-guy-1.3.2/debian/libdvilib2-16.files
@@ -0,0 +1,2 @@
+usr/lib/*.so.*
+usr/share/DVIlib2
--- tex-guy-1.3.2.orig/debian/tex-guy.install
+++ tex-guy-1.3.2/debian/tex-guy.install
@@ -0,0 +1 @@
+debian/tex-guy.desktop usr/share/applications
--- tex-guy-1.3.2.orig/debian/spawg.docs
+++ tex-guy-1.3.2/debian/spawg.docs
@@ -0,0 +1,2 @@
+00_PRODUCTS
+00_README
--- tex-guy-1.3.2.orig/debian/dvilib2-dev.files
+++ tex-guy-1.3.2/debian/dvilib2-dev.files
@@ -0,0 +1,4 @@
+usr/bin/DVIlib2-config
+usr/include/*
+usr/lib/lib*.*a
+usr/lib/lib*.so
--- tex-guy-1.3.2.orig/debian/copyright
+++ tex-guy-1.3.2/debian/copyright
@@ -0,0 +1,45 @@
+This package was debianized by Masayuki Hatta <mhatta@debian.org> on
+Tue, 10 Jul 2001 00:30:39 +0900.
+
+It was downloaded from 
+  http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/
+
+Upstream Author: Hirotsugu Kakugawa <h.kakugawa@computer.org>
+
+Copyright: Hirotsugu Kakugawa <h.kakugawa@computer.org>
+
+License:
+
+This package is licensed by LGPL and GPL.  DVIlib2 is licensed by LGPL
+and the others by GPL.
+
+   This file is part of the DVIlib Library.  This library is free
+   software; you can redistribute it and/or modify it under the terms of
+   the GNU Library General Public License as published by the Free
+   Software Foundation; either version 2 of the License, or (at your
+   option) any later version.  This library 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 Library General Public License for more details.
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+   This package 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; version 2 dated June, 1991.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
--- tex-guy-1.3.2.orig/debian/xgdvi.docs
+++ tex-guy-1.3.2/debian/xgdvi.docs
@@ -0,0 +1,2 @@
+00_PRODUCTS
+00_README
--- tex-guy-1.3.2.orig/debian/tex-guy.desktop
+++ tex-guy-1.3.2/debian/tex-guy.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=DVI Viewer
+GenericName=DVI Viewer
+Comment=Veiw DVIs produced with TeX and LaTeX
+Type=Application
+Exec=xgdviviewer
+Icon=xgdviviewer
+Categories=Graphics; Publishing;
--- tex-guy-1.3.2.orig/debian/xgdvi.manpages
+++ tex-guy-1.3.2/debian/xgdvi.manpages
@@ -0,0 +1 @@
+man/xgdvi.1
--- tex-guy-1.3.2.orig/debian/spawg.manpages
+++ tex-guy-1.3.2/debian/spawg.manpages
@@ -0,0 +1,2 @@
+man/spawg.1
+man/spwg.1
--- tex-guy-1.3.2.orig/debian/tex-guy-dev.dirs
+++ tex-guy-1.3.2/debian/tex-guy-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
--- tex-guy-1.3.2.orig/debian/patches/00list
+++ tex-guy-1.3.2/debian/patches/00list
@@ -0,0 +1,2 @@
+01_manpage_build
+01_manpage_section
--- tex-guy-1.3.2.orig/debian/patches/01_manpage_build.dpatch
+++ tex-guy-1.3.2/debian/patches/01_manpage_build.dpatch
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_manpage_build.dpatch by OHURA Makoto <ohura@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Avoid running gzip in mkman target.
+## DP: Instead, use dh_installman in debian/rules.
+
+@DPATCH@
+diff -urNad tex-guy-1.3.2~/man/Makefile.in tex-guy-1.3.2/man/Makefile.in
+--- tex-guy-1.3.2~/man/Makefile.in	2007-12-16 00:18:57.000000000 +0900
++++ tex-guy-1.3.2/man/Makefile.in	2008-01-02 23:49:30.000000000 +0900
+@@ -58,9 +58,9 @@
+ 	   cat $$f.in \
+            | sed 's/@tex[_]guy[_]version@/@tex_guy_version@/g' \
+            | sed 's/@tex[_]guy[_]version@/1.3.2/g' \
+-           > $$f; \
+-	   rm -f $$f.gz; \
+-	   gzip $$f; \
++           > $$f; #\
++#	   rm -f $$f.gz; \
++#	   gzip $$f; \
+ 	 done
+ 
+ # EOF
--- tex-guy-1.3.2.orig/debian/patches/01_manpage_section.dpatch
+++ tex-guy-1.3.2/debian/patches/01_manpage_section.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_manpage_section.dpatch by OHURA Makoto <ohura@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Modify .TH line in manpages.
+
+@DPATCH@
+diff -urNad tex-guy-1.3.2~/man/dvi2escpg.1.in tex-guy-1.3.2/man/dvi2escpg.1.in
+--- tex-guy-1.3.2~/man/dvi2escpg.1.in	2007-12-16 00:18:57.000000000 +0900
++++ tex-guy-1.3.2/man/dvi2escpg.1.in	2008-01-02 22:24:32.000000000 +0900
+@@ -1,4 +1,4 @@
+-.TH TeX-Guy Version 1.3.2
++.TH TeX-Guy 1 Version @tex_guy_version@
+ .SH NAME
+ dvi2escpg - a TeX DVI file filter for EPSON ESC/PG Page Printers
+ .SH SYNOPSIS
+diff -urNad tex-guy-1.3.2~/man/dvi2rpdl.1.in tex-guy-1.3.2/man/dvi2rpdl.1.in
+--- tex-guy-1.3.2~/man/dvi2rpdl.1.in	2007-12-16 00:18:57.000000000 +0900
++++ tex-guy-1.3.2/man/dvi2rpdl.1.in	2008-01-02 22:24:53.000000000 +0900
+@@ -1,4 +1,4 @@
+-.TH TeX-Guy Version 1.3.2
++.TH TeX-Guy 1 Version @tex_guy_version@
+ .SH NAME
+ dvi2rpdl - a TeX DVI file filter for RICOH RPDL Page Printers
+ .SH SYNOPSIS
+diff -urNad tex-guy-1.3.2~/man/dvilib.3.in tex-guy-1.3.2/man/dvilib.3.in
+--- tex-guy-1.3.2~/man/dvilib.3.in	2007-12-16 00:18:57.000000000 +0900
++++ tex-guy-1.3.2/man/dvilib.3.in	2008-01-02 22:24:52.000000000 +0900
+@@ -1,4 +1,4 @@
+-.TH TeX-Guy 1 Version @tex_guy_version@
++.TH TeX-Guy 3 Version @tex_guy_version@
+ .SH NAME
+ dvilib - a device independent DVI virtual machine library
+ .SH SYNOPSIS