--- txt2tags-2.5.orig/debian/pyversions
+++ txt2tags-2.5/debian/pyversions
@@ -0,0 +1 @@
+2.4-
--- txt2tags-2.5.orig/debian/txt2tags.debhelper.log
+++ txt2tags-2.5/debian/txt2tags.debhelper.log
@@ -0,0 +1 @@
+dh_quilt_unpatch
--- txt2tags-2.5.orig/debian/manpages
+++ txt2tags-2.5/debian/manpages
@@ -0,0 +1 @@
+doc/*.1
--- txt2tags-2.5.orig/debian/examples
+++ txt2tags-2.5/debian/examples
@@ -0,0 +1 @@
+samples/*
--- txt2tags-2.5.orig/debian/README.Debian
+++ txt2tags-2.5/debian/README.Debian
@@ -0,0 +1,14 @@
+txt2tags for Debian
+-------------------
+
+Look at /usr/share/doc/txt2tags for documentation, extras and examples.
+
+If you need GUI, you need to install the suggested python-tk package.
+
+ -- Christian Surchi <csurchi@debian.org>, Mon, 24 Jul 2006 01:16:08 +0200
+
+
+txt2tags is now maintained under the Debian Python Applications Packaging
+Team.
+
+ -- Jonathan Wiltshire <debian@jwiltshire.org.uk>, Sun, 09 August 2009 00:43:00 +0100
--- txt2tags-2.5.orig/debian/copyright
+++ txt2tags-2.5/debian/copyright
@@ -0,0 +1,37 @@
+This package was debianized by Eder L. Marques <eder@edermarques.net> on
+Tue, 05 Aug 2008 15:20:09 -0300.
+
+It was downloaded from http://txt2tags.sourceforge.net/
+
+Upstream Author: AurĂ©lio Marinho Jargas <verde@aurelio.net>
+
+Copyright:
+
+	Copyright (C) 2000-2008 Aurelio Marinho Jargas
+
+License:
+
+    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.
+
+    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-2'.
+
+Debian packaging:
+
+	Copyright (C) 2008, Eder L. Marques <eder@edermarques.net>
+	Copyright (C) 2009, Jonathan Wiltshire <debian@jwiltshire.org.uk>
+
+and is licensed under the GPL-2 or later.
+
+
--- txt2tags-2.5.orig/debian/compat
+++ txt2tags-2.5/debian/compat
@@ -0,0 +1 @@
+7
--- txt2tags-2.5.orig/debian/watch
+++ txt2tags-2.5/debian/watch
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://code.google.com/p/txt2tags/downloads/list .*/txt2tags-(.*)\.tgz
--- txt2tags-2.5.orig/debian/txt2tags.doc-base.userguide
+++ txt2tags-2.5/debian/txt2tags.doc-base.userguide
@@ -0,0 +1,7 @@
+Document: txt2tags-userguide
+Title: txt2tags User Guide
+Author: Aurelio Jargas
+Section: Text
+
+Format: PDF
+Files: /usr/share/doc/txt2tags/userguide.pdf.gz
--- txt2tags-2.5.orig/debian/changelog
+++ txt2tags-2.5/debian/changelog
@@ -0,0 +1,95 @@
+txt2tags (2.5-2) unstable; urgency=low
+
+  [ Jonathan Wiltshire ]
+  * debian/rules: Add call to dh_clean during clean sequence (closes: #541131)
+  * Install as a public Python module and make /usr/bin/txt2tags
+    import it (closes: #537797)
+  * debian/control:
+     - Remove quote marks from Uploaders field
+     - Standards version 3.8.3
+  * Add README.source
+  * txt2tags.docbase*: Register documentation with doc-base
+
+  [ Ales Zabala Alava (Shagi) ]
+  * debian/watch
+        - Fix watch file to scan in googlecode
+
+ -- Jonathan Wiltshire <debian@jwiltshire.org.uk>  Sun, 04 Oct 2009 15:31:15 +0100
+
+txt2tags (2.5-1) unstable; urgency=low
+
+  [ Eder L. Marques ]
+  * New upstream release. Closes: #434547, #451341, #492668, 
+    #290806, #290928.
+  *  debian/control:
+        - Bump Standards-Version to 3.8.0 (without modifications). 
+        - New short description. Closes: #466632.
+        - Updated long description.
+        - Changed section to misc.
+        - Updated build-depends.
+  *  debian/compat:
+  	- Changed to version 7.
+  *  debian/copyright:
+        - Inserted the new maintainer.
+  * debian/watch:
+        - Updated to version 3.
+  * debian/docs:
+        - Removed obsolete entries.
+  * txt2tags-2.3/po/Makefile:
+        - Added new catalogs.
+
+  [ Jonathan Wiltshire ]
+  * Make debian/watch use the qa.debian.org SourceForge redirector
+  * Bring txt2tags into the Python Applications Packaging Team and set
+    appropriate uploaders
+  * Install manual pages in all supplied languages (using a makefile and
+    dh_installman)
+  * Convert packaging to use debhelper's auto-sequencer
+  * Update information in debian/copyright and debian/README.Debian
+  * Use quilt patch system; convert all current changes to quilt patches
+  * Change menu location from Apps to Applications and quote menu file
+    properly
+  * Standards-Version 3.8.2 (no changes)
+  * Clean up MacOS temporary files in the build tree just before dh_compress
+  * Patch up man errors as flagged by lintian
+  * Add VCS- fields to debian/control
+
+ -- Jonathan Wiltshire <debian@jwiltshire.org.uk>  Sun, 09 Aug 2009 21:32:34 +0100
+
+txt2tags (2.3-1) unstable; urgency=low
+
+  * New upstream release (Closes: #290800)
+  * debian/changelog: Suggests: python-tk (if you need GUI)
+  * debian/control: 
+    - bumped policy version to 3.7.2
+    - build-depends-indep becomes build-depends
+    - new build-depends on gettext to build .mo files
+  * debian/rules: calls to po/Makefile and related clean
+  * debian/Readme.Debian: note about GUI
+  * doc/manpage.man: right options preproc/postproc now (Closes: #364911)
+  * po/Makefile: added, to build .mo files
+
+ -- Christian Surchi <csurchi@debian.org>  Mon, 24 Jul 2006 01:16:08 +0200
+
+txt2tags (2.0-1) unstable; urgency=low
+
+  * New upstream release
+    Fixed failures (Closes: #240080) 
+  * New debian/docs following new organisation for documentation
+  * Fixed debian/watch for uscan
+  * Installed t2tconv in doc directory
+
+ -- Christian Surchi <csurchi@debian.org>  Mon, 16 Aug 2004 01:47:54 +0200
+
+txt2tags (1.7-1) unstable; urgency=low
+
+  * New upstream release
+  * Removed "debian" man page for the new upstream one
+
+ -- Christian Surchi <csurchi@debian.org>  Wed,  2 Jun 2004 23:42:07 +0200
+
+txt2tags (1.6-1) unstable; urgency=low
+
+  * Initial Release. Let's close ITP bug (Closes: #144507).
+
+ -- Christian Surchi <csurchi@debian.org>  Sun, 17 Aug 2003 15:42:25 +0200
--- txt2tags-2.5.orig/debian/rules
+++ txt2tags-2.5/debian/rules
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+-include /usr/share/python/python.mk
+ifeq (,$(py_libdir))
+  py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
+endif
+PYDEF=$(shell pyversions -vd)
+
+override_dh_clean:
+	dh_quilt_patch
+	cd doc && $(MAKE) clean
+	cd po && $(MAKE) clean
+	rm -rf build
+	dh_clean
+	dh_quilt_unpatch
+
+override_dh_auto_build:
+	dh_quilt_patch
+	dh_auto_build
+	cd doc && $(MAKE) build
+
+override_dh_install:
+	dh_install
+	install -D debian/usr-bin-txt2tags debian/txt2tags/usr/bin/txt2tags
+	install -D txt2tags debian/txt2tags$(call py_libdir,$(PYDEF))/txt2tags.py
+	cd po && $(MAKE) install BASEDIR=$(CURDIR)/debian/txt2tags
+
+override_dh_compress:
+	# get rid of macos temporary files in the build tree
+	# dh_compress is just a late, useful place to do this
+	find $(CURDIR)/debian/txt2tags -name '*._*' | xargs rm -f
+	dh_compress
+
+%:
+	dh $@
--- txt2tags-2.5.orig/debian/txt2tags.doc-base.quickref
+++ txt2tags-2.5/debian/txt2tags.doc-base.quickref
@@ -0,0 +1,7 @@
+Document: txt2tags-quickref
+Title: txt2tags Quick Reference
+Author: Aurelio Jargas
+Section: Text
+
+Format: PDF
+Files: /usr/share/doc/txt2tags/txt2tags-quickref.pdf.gz
--- txt2tags-2.5.orig/debian/usr-bin-txt2tags
+++ txt2tags-2.5/debian/usr-bin-txt2tags
@@ -0,0 +1,4 @@
+#!/usr/bin/python
+
+import txt2tags
+txt2tags.exec_command_line()
--- txt2tags-2.5.orig/debian/docs
+++ txt2tags-2.5/debian/docs
@@ -0,0 +1,4 @@
+README
+TODO
+doc/txt2tags-quickref.pdf
+doc/userguide.pdf
--- txt2tags-2.5.orig/debian/README.source
+++ txt2tags-2.5/debian/README.source
@@ -0,0 +1,8 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.  Please see:
+
+    /usr/share/doc/quilt/README.source
+
+for more information on how to apply the patches, modify patches, or
+remove a patch.
--- txt2tags-2.5.orig/debian/control
+++ txt2tags-2.5/debian/control
@@ -0,0 +1,32 @@
+Source: txt2tags
+Section: misc
+Priority: optional
+Maintainer: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>
+Uploaders: Jonathan Wiltshire <debian@jwiltshire.org.uk>, Ales Zabala Alava (Shagi) <shagi@gisa-elkartea.org>, Eder L. Marques <eder@edermarques.net>
+Build-Depends: debhelper (>= 7.2.8), quilt (>= 0.46-7), python-all (>= 2.4)
+Build-Depends-Indep: gettext, python-support (>= 0.5.3)
+Standards-Version: 3.8.3
+Vcs-Svn: svn://svn.debian.org/python-apps/packages/txt2tags/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/txt2tags/trunk/
+Homepage: http://txt2tags.sourceforge.net/
+
+Package: txt2tags
+Architecture: all
+Depends: python, ${python:Depends}, ${misc:Depends}
+Suggests: python-tk
+Provides: python-txt2tags
+Description: conversion tool to generating several file formats
+ txt2tags is a document generator written in Python that
+ generates HTML, XHTML, SGML, LaTeX, Lout, man page, Wikipedia,
+ Google Code Wiki, DokuWiki, MoinMoin, Magic Point and PageMaker 
+ documents from a plain text file with little marks.
+ .
+ Different from other conversion tools, it is generic, and not
+ target-specific (as a txt2html tool). This way, you can keep just
+ one source text file and one tool for all your formatting needs.
+ .
+ Supports header, title, bold/italic/underline/strike, preformatted,
+ quote, link, lists, bar, image and table.
+ .
+ With txt2tags, you focuses your mind on the document CONTENT, and
+ forget about formatting. Just let the program do this dirty job.
--- txt2tags-2.5.orig/debian/menu
+++ txt2tags-2.5/debian/menu
@@ -0,0 +1,2 @@
+?package(txt2tags):needs="text" section="Applications/Text" \
+  title="txt2tags" command="/usr/bin/txt2tags"
--- txt2tags-2.5.orig/debian/patches/manpages.patch
+++ txt2tags-2.5/debian/patches/manpages.patch
@@ -0,0 +1,49 @@
+Fix up various problems in man pages
+--- txt2tags-2.5.orig/doc/manpage-ca.man
++++ txt2tags-2.5/doc/manpage-ca.man
+@@ -254,8 +254,8 @@
+ .RS
+ .IP \(bu 3
+ Les configuracions sols son válides dins de l'Área de Configuració 
+-i serán considerades comentaris si es troben a l'Área del Cos
+-. Una excepció es include, que es válida a l'Area del Cos.
++i serán considerades comentaris si es troben a l'Área del Cos.
++Una excepció es include, que es válida a l'Area del Cos.
+ 
+ .IP \(bu 3
+ Si apareix la mateixa paraula clau més d'una vegada dins d'una mateixa Área de Configuració,
+--- txt2tags-2.5.orig/doc/manpage-es.man
++++ txt2tags-2.5/doc/manpage-es.man
+@@ -252,8 +252,8 @@
+ .RS
+ .IP \(bu 3
+ Las configuraciones son sólo vŕlidas en el Área de Configuración 
+-y serán consideradas comentarios si se encuentran en el Área del Cuerpo
+-. Una excepción es include, que es válida en el Cuerpo.
++y serán consideradas comentarios si se encuentran en el Área del Cuerpo.
++Una excepción es include, que es válida en el Cuerpo.
+ 
+ .IP \(bu 3
+ Si aparece la misma palabra clave más de una vez en una misma Área de Configuración,
+--- txt2tags-2.5.orig/doc/manpage-pt.man
++++ txt2tags-2.5/doc/manpage-pt.man
+@@ -298,7 +298,7 @@
+   Negrito           **palavras**
+   Itálico           //palavras//
+   Sublinhado        __palavras__
+-  Riscado           --palavras--
++  Riscado           \-\-palavras\-\-
+   Monoespaçado      ``palavras``
+ .fi
+ 
+--- txt2tags-2.5.orig/doc/manpage.man
++++ txt2tags-2.5/doc/manpage.man
+@@ -294,7 +294,7 @@
+   Bold              **words**
+   Italic            //words//
+   Underline         __words__
+-  Strike            --words--
++  Strike            \-\-words\-\-
+   Monospaced        ``words``
+ .fi
+ 
--- txt2tags-2.5.orig/debian/patches/series
+++ txt2tags-2.5/debian/patches/series
@@ -0,0 +1,3 @@
+po-makefile.patch
+doc-makefile.patch
+manpages.patch
--- txt2tags-2.5.orig/debian/patches/doc-makefile.patch
+++ txt2tags-2.5/debian/patches/doc-makefile.patch
@@ -0,0 +1,37 @@
+Build manual pages for all languages for txt2tags
+--- /dev/null
++++ txt2tags-2.5/doc/Makefile
+@@ -0,0 +1,33 @@
++#!/usr/bin/make -f
++# -*- makefile -*-
++#
++#    Copyright (C) 2009 Jonathan Wiltshire
++#
++#    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 of the License, 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 along
++#    with this program; if not, write to the Free Software Foundation, Inc.,
++#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
++
++PACKAGE = txt2tags
++SECTION = 1
++
++PAGES = manpage-ca.man manpage-it.man manpage-es.man manpage.man \
++        manpage-zh.man manpage-fr.man manpage-pt.man
++
++clean:
++	rm -f *.$(SECTION)
++
++build:
++	for p in $(PAGES); do \
++            s=`basename $$p .man | sed -e 's/manpage/$(PACKAGE)/;s/-/./'`; \
++            cp "$$p" "$$s.$(SECTION)"; \
++	done
--- txt2tags-2.5.orig/debian/patches/po-makefile.patch
+++ txt2tags-2.5/debian/patches/po-makefile.patch
@@ -0,0 +1,25 @@
+Build and install l10n files for txt2tags
+--- /dev/null
++++ txt2tags-2.5/po/Makefile
+@@ -0,0 +1,21 @@
++INSTALL= /usr/bin/install -c
++INSTALLNLSDIR=$(BASEDIR)/usr/share/locale
++
++PACKAGE = txt2tags
++
++CATALOGS = de.po es.po fi.po fr.po hu.po it.po pt_BR.po zh_CN.po
++%.mo: %.po
++	msgfmt --statistics --check --verbose --output-file=$@ $<
++
++clean:
++	rm -f *.mo
++
++distclean: clean
++
++install: $(CATALOGS)
++	for n in $(CATALOGS); do \
++	    l=`basename $$n .po`; \
++	    $(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l; \
++	    $(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l/LC_MESSAGES; \
++	    $(INSTALL) -m 644 $$n $(INSTALLNLSDIR)/$$l/LC_MESSAGES/$(PACKAGE).mo; \
++	done
