--- html-xml-utils-5.7.orig/debian/watch
+++ html-xml-utils-5.7/debian/watch
@@ -0,0 +1,4 @@
+# See uscan(1) for format
+
+version=3
+http://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-([\d\.]+).tar.gz
--- html-xml-utils-5.7.orig/debian/README.source
+++ html-xml-utils-5.7/debian/README.source
@@ -0,0 +1,7 @@
+html-xml-utils source for Debian
+--------------------------------
+
+This package uses the `quilt' patch management solution. See
+/usr/share/doc/quilt/README.source.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>, Jun 2010
--- html-xml-utils-5.7.orig/debian/rules
+++ html-xml-utils-5.7/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+LDFLAGS = -Wl,-z,defs
+
+%:
+	dh --with quilt --parallel $@
--- html-xml-utils-5.7.orig/debian/copyright
+++ html-xml-utils-5.7/debian/copyright
@@ -0,0 +1,63 @@
+This package was debianized by Daniel Leidert <daniel.leidert@wgdd.de> on
+Sun, 10 Feb 2008 02:14:14 +0100.
+
+It was downloaded from:
+
+    http://www.w3.org/Tools/HTML-XML-utils/
+
+Upstream Author:
+
+    Bert Bos <bert@w3.org>
+
+Copyright: 
+
+    Copyright (C) 1994-2008 World Wide Web Consortium
+    All Rights Reserved.
+
+License: W3C(R) Software License (v20021231)
+
+    This work (and included software, documentation such as READMEs, or other
+    related items) is being provided by the copyright holders under the
+    following license. By obtaining, using and/or copying this work, you (the
+    licensee) agree that you have read, understood, and will comply with the
+    following terms and conditions.
+    
+    Permission to copy, modify, and distribute this software and its
+    documentation, with or without modification, for any purpose and without fee
+    or royalty is hereby granted, provided that you include the following on ALL
+    copies of the software and documentation or portions thereof, including
+    modifications:
+    
+      1. The full text of this NOTICE in a location viewable to users of the
+      redistributed or derivative work.
+    
+      2. Any pre-existing intellectual property disclaimers, notices, or terms
+      and conditions. If none exist, the [1]W3C Software Short Notice should
+      be included (hypertext is preferred, text is permitted) within the body
+      of any redistributed or derivative code.
+    
+      3. Notice of any changes or modifications to the files, including the date
+      changes were made. (We recommend you provide URIs to the location from
+      which the code is derived.)
+    
+    THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
+    MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+    LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
+    PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE
+    ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+    
+    COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
+    CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
+    DOCUMENTATION.
+    
+    The name and trademarks of copyright holders may NOT be used in advertising
+    or publicity pertaining to the software without specific, written prior
+    permission. Title to copyright in this software and any associated
+    documentation will at all times remain with copyright holders.
+
+    [1] http://www.w3.org/Consortium/Legal/copyright-software
+
+The Debian packaging is Copyright (C) 2008,
+Daniel Leidert <daniel.leidert@wgdd.de> and is licensed under the GPL,
+either version 2 of the License, or (at your option) any later version.
+In Debian the license can be found at `/usr/share/common-licenses/GPL'.
--- html-xml-utils-5.7.orig/debian/compat
+++ html-xml-utils-5.7/debian/compat
@@ -0,0 +1 @@
+7
--- html-xml-utils-5.7.orig/debian/html-xml-utils.docs
+++ html-xml-utils-5.7/debian/html-xml-utils.docs
@@ -0,0 +1 @@
+TODO
--- html-xml-utils-5.7.orig/debian/control
+++ html-xml-utils-5.7/debian/control
@@ -0,0 +1,49 @@
+Source: html-xml-utils
+Section: text
+Priority: extra
+Maintainer: Debian XML/SGML Group <debian-xml-sgml-pkgs@lists.alioth.debian.org>
+Uploaders: Daniel Leidert (dale) <daniel.leidert@wgdd.de>
+Build-Depends: debhelper (>> 7), quilt (>= 0.46-7~), bison, flex, gperf, man2html
+Standards-Version: 3.8.4
+Homepage: http://www.w3.org/Tools/HTML-XML-utils/
+Vcs-Browser: http://svn.debian.org/wsvn/debian-xml-sgml/packages/html-xml-utils/
+Vcs-Svn: svn://svn.debian.org/svn/debian-xml-sgml/packages/html-xml-utils/trunk/
+DM-Upload-Allowed: yes
+
+Package: html-xml-utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
+Description: HTML and XML manipulation utilities
+ HTML-XML-utils provides a number of simple utilities for manipulating and
+ converting HTML and XML files in various ways. The suite consists of the
+ following tools:
+ .
+  asc2xml      -  convert from UTF-8 to &#nnn; entities
+  xml2asc      -  convert from &#nnn; entities to UTF-8
+  hxaddid      -  add IDs to selected elements
+  hxcite       -  replace bibliographic references by hyperlinks
+  hxcite-mkbib -  expand references and create bibliography
+  hxclean      -  apply heuristics to correct an HTML file
+  hxcopy       -  copy an HTML file while preserving relative links
+  hxcount      -  count elements and attributes in HTML or XML files
+  hxextract    -  extract selected elements
+  hxincl       -  expand included HTML or XML files
+  hxindex      -  create an alphabetically sorted index
+  hxmkbib      -  create bibliography from a template
+  hxmultitoc   -  create a table of contents for a set of HTML files
+  hxname2id    -  move some ID= or NAME= from A elements to their parents
+  hxnormalize  -  pretty-print an HTML file
+  hxnum        -  number section headings in an HTML file
+  hxpipe       -  convert XML to a format easier to parse with Perl or AWK
+  hxprintlinks -  number links & add table of URLs at end of an HTML file
+  hxprune      -  remove marked elements from an HTML file
+  hxselect     -  extract elements that match a (CSS) selector
+  hxref        -  generate cross-references
+  hxtoc        -  insert a table of contents in an HTML file
+  hxuncdata    -  replace CDATA sections by character entities
+  hxunent      -  replace HTML predefined character entities to UTF-8
+  hxunpipe     -  convert output of pipe back to XML format
+  hxunxmlns    -  replace "global names" by XML Namespace prefixes
+  hxwls        -  list links in an HTML file
+  hxxmlns      -  replace XML Namespace prefixes by "global names"
+
--- html-xml-utils-5.7.orig/debian/changelog
+++ html-xml-utils-5.7/debian/changelog
@@ -0,0 +1,92 @@
+html-xml-utils (5.7-2) unstable; urgency=low
+
+  * debian/control (Build-Depends): Added quilt.
+  * debian/rules: Ditto. Enable parallel builds.
+  * debian/README.source: Added because of quilt usage.
+  * debian/patches/585451_fix_ftbfs.patch: Added with thanks to Sebastian
+    Andrzej Siewior.
+    - hxindex.c (main): Fix an FTBFS on arches, where char is an unsigned char
+      (closes: #585451).
+  * debian/patches/series: Adjusted accordingly.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Mon, 14 Jun 2010 23:08:33 +0200
+
+html-xml-utils (5.7-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/compat: Increased compatibility level to 7.
+  * debian/control (Build-Depends): Bumped dh version to >>7.
+    (Standards-Version): Bumped to 3.8.4.
+    (Depends): Fixed debhelper-but-no-misc-depends.
+  * debian/rules: Easier rules file with dh 7.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Wed, 12 May 2010 22:34:52 +0200
+
+html-xml-utils (5.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Wed, 19 Aug 2009 23:53:13 +0200
+
+html-xml-utils (5.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control (Standards-Version): Bumped to 3.8.2.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Wed, 15 Jul 2009 22:43:17 +0200
+
+html-xml-utils (5.3-3) unstable; urgency=low
+
+  * debian/control (Standards-Version): Bumped to 3.8.1 (no other changes).
+    (Vcs-Browser): Minor fix.
+    (Description): Improved slightly (closes: #517367).
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Sun, 26 Apr 2009 14:52:32 +0200
+
+html-xml-utils (5.3-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+  * debian/copyright: Updated copyright information. Clarified Debian
+    packaging licensing.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Sun, 15 Feb 2009 20:15:46 +0100
+
+html-xml-utils (5.3-1) experimental; urgency=low
+
+  * New upstream release 5.3.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Fri, 30 Jan 2009 23:02:19 +0100
+
+html-xml-utils (5.2-1) experimental; urgency=low
+
+  * New upstream release 5.2.
+
+  * debian/control (Build-Depends), debian/rules, debian/README.source,
+    debian/patches/: Removed dpatch related stuff.
+  * debian/control (Description): A small formatting change. Added hxcopy.
+  * debian/patches/508913_fix_segfault_in_hxclean.dpatch: Removed (applied
+    upstream).
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Sun, 11 Jan 2009 12:51:35 +0100
+
+html-xml-utils (5.1-3) experimental; urgency=low
+
+  * dpatch environment added (including README.source).
+  * debian/patches/508913_fix_segfault_in_hxclean.dpatch: Added.
+    - Fix a segmentation fault (closes: #508913).
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Thu, 18 Dec 2008 02:09:02 +0100
+
+html-xml-utils (5.1-2) experimental; urgency=low
+
+  * debian/control (Description): Fixed list formatting (closes: #508784).
+    Thanks to Michal Politowski.
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Mon, 15 Dec 2008 13:53:13 +0100
+
+html-xml-utils (5.1-1) experimental; urgency=low
+
+  * Initial release (Closes: #464957).
+
+ -- Daniel Leidert (dale) <daniel.leidert@wgdd.de>  Fri, 21 Nov 2008 15:10:00 +0100
--- html-xml-utils-5.7.orig/debian/patches/series
+++ html-xml-utils-5.7/debian/patches/series
@@ -0,0 +1 @@
+585451_fix_ftbfs.patch
--- html-xml-utils-5.7.orig/debian/patches/585451_fix_ftbfs.patch
+++ html-xml-utils-5.7/debian/patches/585451_fix_ftbfs.patch
@@ -0,0 +1,30 @@
+From 1070038659a2bc8cdef8b3c847287e5281060ef5 Mon Sep 17 00:00:00 2001
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Date: Thu, 10 Jun 2010 18:37:49 +0200
+Subject: [PATCH] hxindex: option is int not char
+
+the return value of getopt is int not char. The difference here is that
+char is signed char on x86 but unsigned char on powerpc for instance.
+This leads to the following compile error if compiled with -Wextra:
+
+| hxindex.c:777: warning: comparison is always true due to limited range  of data type
+
+because c can never get -1, it can however grow to 255 and the options
+will never be parsed properly.
+
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ hxindex.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+--- a/hxindex.c
++++ b/hxindex.c
+@@ -758,7 +758,7 @@
+   Boolean write = True;
+   Indexterm termtree = NULL;	/* Sorted tree of terms */
+   string secno;
+-  char c;
++  int c;
+ 
+   /* Bind the parser callback routines to our handlers */
+   set_error_handler(handle_error);
