--- dblatex-0.2.6.orig/debian/patches/10_dblatex_version.dpatch +++ dblatex-0.2.6/debian/patches/10_dblatex_version.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_dblatex_version.dpatch by Andreas Hoenen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Adapt version string that gets dumped out when running dblatex to +## DP: debian version. + +@DPATCH@ +diff -urNad dblatex-0.2.6~/xsl/version.xsl dblatex-0.2.6/xsl/version.xsl +--- dblatex-0.2.6~/xsl/version.xsl 2007-06-25 22:54:28.000000000 +0200 ++++ dblatex-0.2.6/xsl/version.xsl 2007-06-30 10:01:46.000000000 +0200 +@@ -5,6 +5,6 @@ + XSLT Stylesheet DocBook -> LaTeX + ############################################################################ --> + +-0.2.6 ++0.2.6-1 + + --- dblatex-0.2.6.orig/debian/patches/00list +++ dblatex-0.2.6/debian/patches/00list @@ -0,0 +1,4 @@ +10_dblatex_version +15_dblatex_wrapper_script +20_italian_localization.bug432671 +20_texlive_total_pages --- dblatex-0.2.6.orig/debian/patches/15_dblatex_wrapper_script.dpatch +++ dblatex-0.2.6/debian/patches/15_dblatex_wrapper_script.dpatch @@ -0,0 +1,22 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 15_dblatex_wrapper_script.dpatch by Andreas Hoenen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Simple wrapper script for calling dblatex. Will be installed into +## DP: /usr/bin. (In the upstream package this script does not exist as a file, +## DP: but gets created during install.) + +@DPATCH@ +diff -urNad dblatex-0.2.6~/dblatex dblatex-0.2.6/dblatex +--- dblatex-0.2.6~/dblatex 1970-01-01 01:00:00.000000000 +0100 ++++ dblatex-0.2.6/dblatex 2007-06-30 10:04:02.000000000 +0200 +@@ -0,0 +1,9 @@ ++#!/usr/bin/python ++import sys ++import os ++ ++package_base = r"/usr/share/dblatex" ++sys.path.append(r"/usr/share/dblatex/lib") ++ ++from dbtexmf.dblatex import dblatex ++dblatex.main(base=package_base) --- dblatex-0.2.6.orig/debian/patches/20_texlive_total_pages.dpatch +++ dblatex-0.2.6/debian/patches/20_texlive_total_pages.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_texlive_total_pages.dpatch by Andreas Hoenen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: The texlive.2007 packages have changed their total pages behaviour +## DP: compared with the texlive.2005 packages: Without this patch the pages are +## DP: numbered e.g. 1/0, 2/0, 3/0 instead of 1/3, 2/3, 3/3. + +@DPATCH@ +diff -urNad dblatex-0.2.6~/xsl/preamble.xsl dblatex-0.2.6/xsl/preamble.xsl +--- dblatex-0.2.6~/xsl/preamble.xsl 2007-06-25 21:23:57.000000000 +0200 ++++ dblatex-0.2.6/xsl/preamble.xsl 2007-07-29 14:43:19.000000000 +0200 +@@ -22,6 +22,7 @@ + + + ++ \label{LastPage} + \end{document} + + --- dblatex-0.2.6.orig/debian/patches/20_italian_localization.bug432671.dpatch +++ dblatex-0.2.6/debian/patches/20_italian_localization.bug432671.dpatch @@ -0,0 +1,52 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_italian_localization.bug432671.dpatch by Andreas Hoenen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch for Bug#432671: string "example" not localized +## DP: Provide italian localization. +## DP: Thanks to Giuseppe Sacco and the Italian translation project. + +@DPATCH@ +diff -urNad dblatex-0.2.6~/latex/style/dbk_locale.sty dblatex-0.2.6/latex/style/dbk_locale.sty +--- dblatex-0.2.6~/latex/style/dbk_locale.sty 2007-04-26 21:09:02.000000000 +0200 ++++ dblatex-0.2.6/latex/style/dbk_locale.sty 2007-07-28 09:55:10.000000000 +0200 +@@ -139,6 +139,39 @@ + \def\DBKcontrib{ACCIÓN} + \def\DBKsignature{FIRMA} + } ++% Last-Translator: Giuseppe Sacco ++% Translation-Team: Italian translation project ++% Translation-Date: 2007-07-25 ++\langsetupdbk{it}{ ++ \def\refname{Nome}% ++ \def\abstractname{Introduzione}% ++ \def\bibname{Bibliografia}% ++ \def\prefacename{Prefazione}% ++ \def\chaptername{Capitolo}% ++ \def\appendixname{Appendice}% ++ \def\contentsname{Sommario}% ++ \def\listfigurename{Indice delle figure}% ++ \def\listtablename{Indice delle tavole}% ++ \def\indexname{Indice}% ++ \def\figurename{{\scshape Figura }}% ++ \def\tablename{{\scshape Tavola }}% ++ ++ \def\examplename{Esempio} ++ \def\ondate{l\`i} ++ \renewcommand{\DBKreleaseinfo}{Documento di lavoro} ++ \def\writtenby{A CURA DI} ++ \def\projname{PROGETTO} ++ \def\titlename{TITOLO} ++ \def\DBKindname{NOME} ++ \def\DBKindtitle{COLLABORATORI} ++ \def\DBKrevtitle{CRONOLOGIA DELLE REVISIONI} ++ \def\DBKrevdesc{DESCRIZIONE} ++ \def\DBKrevnumber{POSIZIONE} ++ \def\DBKrevname{NOME} ++ \def\DBKrevdate{DATA} ++ \def\DBKcontrib{AZIONE} ++ \def\DBKsignature{FIRMA} ++} + \langsetupdbk{en}{ + \def\examplename{Example} + \def\ondate{on} --- dblatex-0.2.6.orig/debian/copyright +++ dblatex-0.2.6/debian/copyright @@ -0,0 +1,136 @@ +DocBook to LaTeX Publishing +Copyright (C) 2003-2007 Benoit Guillon + +This package was debianized by Andreas Hoenen on +Sun, 12 Feb 2006 14:56:46 +0100 + +It was downloaded from: http://dblatex.sourceforge.net/ + +The Debian packaging is (C) 2006-2007, Andreas Hoenen +and is licensed under the GPL, see below. + +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; either version 2 of the License, or + (at your option) any later version. + + 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'. + +IMPORTANT: + + The stylesheets provided ARE NOT the official DocBook XSL + stylesheets. These stylesheets ARE NOT maintained by Norman Walsh. + Please, DO NOT e-mail Norman about any question regarding these + stylesheets + + +FROM THE OFFICIAL XSL Docbook Stylesheets +-------------------------------------------------------------------------------- + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the ``Software''), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + Except as contained in this notice, the names of individuals + credited with contribution to this software shall not be used in + advertising or otherwise to promote the sale, use or other + dealings in this Software without prior written authorization + from the individuals in question. + + Any stylesheet derived from this Software that is publically + distributed will be identified with a different name and the + version strings in any derived Software will be changed so that + no possibility of confusion between the derived package and this + Software will exist. + +ORIGINAL DOCBOOK XSL STYLESHEETS + * Norman Walsh XSL Stylesheets http://www.nwalsh.com + +DOCBOOK DTD + * Arbortex, Oasis, etc + * See Docbook copyright + +MATHML 2.0 SUPPORT +-------------------------------------------------------------------------------- + xsltml (http://xsltml.sourceforge.net) by Vasil Yaroshevich is integrated as + MathML 2.0 support. See the xsltml README file for copyright. The stylesheets + used here are derived from the original package and are not maintained by the + xsltml author or maintainer. + +NEW TABLE SUPPORT +-------------------------------------------------------------------------------- + The newtbl code (http://www.vistair.com/newtbl) by David Hedley is + included to drive the DocBook tables. This very good implementation is now the + default and unique implementation used, so the newtbl.use parameter is + useless. + +LATEX PACKAGES +-------------------------------------------------------------------------------- + The following latex packages are provided for convenience because they are + missing in some Debian or Fedora Core default LaTeX distributions. Dblatex + does not ensure that the package versions given here are compatible with your + latex distribution. + + * bibtopic.sty + * enumitem.sty + * ragged2e.sty + * attachfile.sty + +PASSIVETEX PACKAGES +-------------------------------------------------------------------------------- + Some of the Passivetex packages are provided to extend the support of Unicode + characters. +% +% Copyright 2002 Sebastian Rahtz/Oxford University +% +% +% Permission is hereby granted, free of charge, to any person obtaining +% a copy of this software and any associated documentation files (the +% ``Software''), to deal in the Software without restriction, including +% without limitation the rights to use, copy, modify, merge, publish, +% distribute, sublicense, and/or sell copies of the Software, and to +% permit persons to whom the Software is furnished to do so, subject to +% the following conditions: +% +% The above copyright notice and this permission notice shall be included +% in all copies or substantial portions of the Software. + +(G)RUBBER SUPPORT +-------------------------------------------------------------------------------- + A customized version of Rubber by Emmanuel Beffara + (http://www.pps.jussieu.fr/~beffara/soft/rubber) is integrated to compile the + LaTeX documents. The code used by dblatex IS NOT the offical rubber package + and is not maintained by the rubber author or maintainer. The dblatex rubber + customization is called grubber. + +MISCELLANEOUS +-------------------------------------------------------------------------------- + The string-replace template by David Carlisle + (http://www.dcarlisle.demon.co.uk/david) is extracted from pmathml.xsl + (http://www.w3.org/Math/XSL/pmathml.xsl), one of the W3C MathML XSL + stylesheets (http://www.w3.org/Math/XSL/Overview.html). + + The code is made available under the following conditions: + "Copyright (C) David Carlisle 2001, 2002. + Use and distribution of this code are permitted under the terms of the + W3C Software Notice and License + (http://www.w3.org/Consortium/Legal/copyright-software-19980720)". --- dblatex-0.2.6.orig/debian/compat +++ dblatex-0.2.6/debian/compat @@ -0,0 +1 @@ +5 --- dblatex-0.2.6.orig/debian/postinst +++ dblatex-0.2.6/debian/postinst @@ -0,0 +1,125 @@ +#!/bin/bash +# postinst script for dblatex +# +# see: dh_installdeb(1) + +set -e + +# Tries to remove files below /etc/dblatex/ that aren't any longer considered as +# conffiles, but have been moved below /usr/. +# Removing will only take place if all former conffiles are known to be +# unmodified. +# Input parameter: previousVersion: dblatex version that has been installed +# before this upgrade +function cleanupFormerConfFiles +{ + previousVersion=$1 + + md5File=`tempfile` # Will be filled with conffiles' original fingerprints. + + # Common part of conffiles' fingerprints + echo ' +d86f4f5e61545a50e995a1afa4d59d5a /etc/dblatex/contrib/db2latex/graphics/caution.eps +483d50b1ed1b738875c3105afedc429e /etc/dblatex/contrib/db2latex/graphics/caution.pdf +d86f4f5e61545a50e995a1afa4d59d5a /etc/dblatex/contrib/db2latex/graphics/important.eps +483d50b1ed1b738875c3105afedc429e /etc/dblatex/contrib/db2latex/graphics/important.pdf +4be6d6bfb336822cba7a67d33198386b /etc/dblatex/contrib/db2latex/graphics/note.eps +6258d6fff717d454c9cc86eab60104de /etc/dblatex/contrib/db2latex/graphics/note.pdf +1530e09fee9164ab7d74275ddee28e4e /etc/dblatex/contrib/db2latex/graphics/tip.eps +3ff749c6a8fd73e60be763d0ac964afe /etc/dblatex/contrib/db2latex/graphics/tip.pdf +d86f4f5e61545a50e995a1afa4d59d5a /etc/dblatex/contrib/db2latex/graphics/warning.eps +483d50b1ed1b738875c3105afedc429e /etc/dblatex/contrib/db2latex/graphics/warning.pdf +75e329ead310665a1120d732915aad67 /etc/dblatex/contrib/db2latex/param.xsl +eb6496905b5fd2ff06c70c5118225cd6 /etc/dblatex/contrib/example/dbsimple.sty +671d7f3ffd82eec65f66dc19ba1b8c96 /etc/dblatex/specs/native.specs +8ad7f76bd4dc662ab947e5f23ea0c246 /etc/dblatex/specs/simple.specs' > $md5File + + # version specific part of conffiles' fingerprints + case "$previousVersion" in + 0.1.8-1|0.1.8-2) + echo ' +840182887de6a6d0808e7bbf0a12ad43 /etc/dblatex/contrib/db2latex/db2latex.sty +d01125a164a0b98870de31cd13ec881b /etc/dblatex/specs/db2latex.specs' >> $md5File + ;; + 0.1.9-1|0.1.9-2|0.1.9-3|0.1.10-1) + echo ' +b3bee6e88493ffa7fe99a1a8a7f89a24 /etc/dblatex/contrib/db2latex/db2latex.sty +d01125a164a0b98870de31cd13ec881b /etc/dblatex/specs/db2latex.specs' >> $md5File + ;; + 0.2~pre-1) + echo ' +0f44c2fdde9fdab3fd1063539a4d35d4 /etc/dblatex/contrib/db2latex/db2latex.sty +aeeda6353bd2493d9ebe3aa9f1a811ed /etc/dblatex/specs/db2latex.specs' >> $md5File + ;; + *) # Version which doesn't have to be cleaned up + rm --force $md5File + return + ;; + esac + + if ! md5sum --check --status $md5File 2>/dev/null + then + # At least one conffile has been changed, + # thus they must not be deleted automatically. + echo "Please consider removing the former conffiles below /etc/dblatex/ manually." + echo "For further information consult README.Debian." + rm --force $md5File + return + fi + + while read dummy confFile # Remove all conffiles. + do + rm --force $confFile + done <$md5File + + # Clean up all empty directories in directory tree /usr/dblatex/. + cd /etc + rmdir --parents --ignore-fail-on-non-empty dblatex/contrib/db2latex/graphics + rmdir --parents --ignore-fail-on-non-empty dblatex/contrib/example + rmdir --parents --ignore-fail-on-non-empty dblatex/specs + + echo "Removed former conffiles below /etc/dblatex/ as they were unchanged." + + rm --force $md5File + return +} + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + + # A call to 'mktexlsr' is needed to register the dblatex TeX files + # in the TeX database '/var/lib/texmf/ls-R-TEXMFMAIN'. + # + # This call won't do any harm even if it might be superfluous in + # special cases. + mktexlsr /usr/share/texmf + + # Take care of former conffiles. + if [ "$1" = configure ] + then + cleanupFormerConfFiles $2 + fi + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- dblatex-0.2.6.orig/debian/postrm +++ dblatex-0.2.6/debian/postrm @@ -0,0 +1,65 @@ +#!/bin/sh +# postrm script for dblatex +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + # A call to 'mktexlsr' is needed to unregister the dblatex TeX files + # in the TeX database '/var/lib/texmf/ls-R-TEXMFMAIN'. + # + # This call won't do any harm even if it might be superfluous in + # special postrm cases, but it may take some time. + # Thus a performance optimization can be applied to the main case + # of successful package upgrade: + # As the new version's postinst script will register the new version's + # dblatex TeX files in the TeX database, the old version's files that + # have vanished in the new version will be unregistered implicitly then. + # Thus in the case of successful upgrade to another dblatex version + # supporting the TeX (de)registration the deregistration call can be + # left out as a superfluous duplicate. + + if test "$1" = upgrade -a -n "$2" && \ + dpkg --compare-versions "$2" ge 0.1.9-3 + then + true # Unregistration will be executed implicitly by + # 'new-postinst configure'. + else + mktexlsr /usr/share/texmf # Unregister dblatex TeX files in TeX. + fi + ;; + purge) + # TeX unregistration has already been executed before. + # (Besides that mktexlsr is not guaranteed to be available at purge + # as it belongs to a non-essential package.) + + # Remove dblatex configuration directory. + rm --recursive --force /etc/dblatex + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- dblatex-0.2.6.orig/debian/changelog +++ dblatex-0.2.6/debian/changelog @@ -0,0 +1,144 @@ +dblatex (0.2.6-1) unstable; urgency=low + + * New upstream release + * Upstream release fixes incorrectly referenced footnotes. Closes: #435528 + Thanks to Roland Stigge for reporting. + * Provide italian localization. Closes: #432671 + Thanks to Giuseppe Sacco and the Italian translation project. + * Remove patch 20_unicode_support.bug425677 as it has been integrated into + upstream. + * debian/rules: + + Move the binary-arch actions to binary-indep, as dblatex is an + architecture independent package. + + Replace hardcoded package version by runtime determination. + + Remove trailing whitespace. + * Add a forgotten space after a version relationship in debian/control. + + -- Andreas Hoenen Wed, 22 Aug 2007 19:35:06 +0200 + +dblatex (0.2.5-1) unstable; urgency=low + + * New upstream release, Closes: #428801 + * Adapt dependencies to TeX migration from teTeX to TeX Live: + + Drop tetex-extra alternative from dependencies. + + Revaluate TeX Live dependencies. + * 20_texlive_total_pages.dpatch: Problem with the texlive.2007 packages that + leads to a wrong total pages count in page numbering. Thanks to Vincent + Bernat for reporting. + * 20_unicode_support.bug425677.dpatch: Support unicode characters EURO SIGN, + CHECK MARK, BALLOT X. Thanks to Josselin Mouette and Phil Nitschke for + reporting. Closes: #425677 + * Adapt watchfile again, as somehow uscan's standard SourceForge handling does + not work any longer for dblatex. + + -- Andreas Hoenen Sun, 3 Jun 2007 12:20:24 +0200 + +dblatex (0.2.4-1) unstable; urgency=low + + * New upstream release + * Add README.Debian-source. + * Add rules target get-orig-source. + * Change installation of dblatex manual to use dh_installdocs. + + -- Andreas Hoenen Tue, 10 Apr 2007 13:07:12 +0200 + +dblatex (0.2.3-1) experimental; urgency=low + + * New upstream release + * Upstream release fixes problematic output for + article/articleinfo/authorgroup/corpauthor/remark/email. Closes: #374210 + * Upstream release fixes disturbing spaces in URLs in french documents. + Closes: #398516 + * Upstream release enables text containing underscores in anchored titles. + Closes: #400045 + * Patch upstream regression which breaks creation of ps documents. + * Adapt to changed dvips behaviour which by default disables use of absolute + paths. + * Migrate package to use dpatch. + * Add python-4suite-xml as alternative dependency to xlstproc. + * Adapt texlive dependencies. + * Remove configuration directory /etc/dblatex/ on package purge. + * Adapt 'debian/watch'. + * Actualize copyright file. + * Integrate installation makefile into 'debian/rules' as it has been + separated until now only due to historical reasons. + * Remove superfluous 'debian/rules' target 'config.status'. + + -- Andreas Hoenen Sat, 3 Feb 2007 11:33:20 +0100 + +dblatex (0.2-2) unstable; urgency=high + + * Do not depend on script mktexlsr belonging to a non-essential package + in postrm purge. (Urgency set to high due to serious severity.) + Closes: #398776 + + -- Andreas Hoenen Sat, 18 Nov 2006 09:52:18 +0100 + +dblatex (0.2-1) unstable; urgency=low + + * New upstream release + * Fix a bug that breaks processing with xsltproc 1.1.18. Closes: #396880 + * Do not install non configuration files below /etc/dblatex/. Closes: #395207 + * Fix dvi production with db2latex style. Closes: #395205 + * Adapt dependencies to major upstream changes: the previous mixture of + makefiles, shell and perl scripts has been replaced by a uniform python based + solution. + * Reorganize dblatex's directory layout as the package supplied + (non) configuration files and the python files need new locations. + * Remove manual page build dependencies as the manual page has been integrated + into the upstream package. + * Fix a regression bug that breaks build of dblatex manual in simple style. + + -- Andreas Hoenen Sat, 4 Nov 2006 10:20:42 +0100 + +dblatex (0.1.10-1) unstable; urgency=low + + * New upstream release + * Adapt the manual page to the current DocBook XSL stylesheet revision + (1.70.1). + * Upgrade to debhelper compatibility level 5. + * Replace suggests package xpdf by pdf-viewer. + + -- Andreas Hoenen Mon, 28 Aug 2006 21:27:19 +0200 + +dblatex (0.1.9-3) unstable; urgency=low + + * Install TeX input files in TEXMFMAIN. Closes: #376388 + * Fix itemizedlist for french documents. Closes: #374215 + * Improve the way font setup uses to access Postscript fonts. Closes: #376418 + * Allow TeX to be provided by texlive as an alternative to tetex. + Closes: #376386 + * Fix the copyright output for multiple copyright holders in db2latex style. + Closes: #374212 + * Add copyright output in native style. + * Dump out the debian version of dblatex instead of the upstream version when + invoking dblatex. (Thanks to Benoit Guillon for this suggestion.) + + -- Andreas Hoenen Sun, 9 Jul 2006 11:49:52 +0200 + +dblatex (0.1.9-2) unstable; urgency=low + + * Enable file names containing white space to be handled. Closes: #366721 + * Standards-Version: 3.7.2 (no changes needed) + + -- Andreas Hoenen Mon, 15 May 2006 19:59:06 +0200 + +dblatex (0.1.9-1) unstable; urgency=low + + * New upstream release + * Add 'docbook-xml' to build dependencies. + * Standards-Version: 3.7.1 (no changes needed) + + -- Andreas Hoenen Thu, 4 May 2006 21:22:26 +0200 + +dblatex (0.1.8-2) unstable; urgency=low + + * Enable — entities in tables. Closes: #359911 + + -- Andreas Hoenen Thu, 30 Mar 2006 20:55:54 +0200 + +dblatex (0.1.8-1) unstable; urgency=low + + * Initial release Closes: #350397 + + -- Andreas Hoenen Sun, 12 Feb 2006 14:56:46 +0100 --- dblatex-0.2.6.orig/debian/control +++ dblatex-0.2.6/debian/control @@ -0,0 +1,20 @@ +Source: dblatex +Section: text +Priority: optional +Maintainer: Andreas Hoenen +Build-Depends: debhelper (>= 5), python-support (>= 0.3), dpatch +Standards-Version: 3.7.2 + +Package: dblatex +Architecture: all +Depends: ${python:Depends}, docbook-xml, xsltproc | python-4suite-xml, gs-gpl | gs-pdfencrypt, transfig, texlive (>= 2007), texlive-latex-extra (>= 2007), texlive-math-extra (>= 2007), texlive-extra-utils (>= 2007), texlive-lang-cyrillic (>= 2007) +Suggests: pdf-viewer +Description: Produces DVI, PostScript, PDF documents from DocBook sources + DocBook to LaTeX Publishing that transforms your SGML/XML DocBook documents to + DVI, PostScript or PDF by translating them in pure LaTeX as a first process. + MathML 2.0 markups are supported, too. It originally started as a clone of + DB2LaTeX, but has been enhanced extensively since then and is actively + maintained by the upstream author. + . + Homepage: http://dblatex.sourceforge.net/ + SourceForge Site: http://sourceforge.net/projects/dblatex --- dblatex-0.2.6.orig/debian/dblatex.doc-base +++ dblatex-0.2.6/debian/dblatex.doc-base @@ -0,0 +1,9 @@ +Document: dblatex +Title: dblatex Manual +Author: Benoit Guillon +Abstract: This manual in-depth describes the functionality and usage of dblatex + to produce DVI, PostScript and PDF documents from DocBook sources. +Section: Apps/Text + +Format: pdf +Files: /usr/share/doc/dblatex/manual.pdf.gz --- dblatex-0.2.6.orig/debian/README.Debian +++ dblatex-0.2.6/debian/README.Debian @@ -0,0 +1,35 @@ +dblatex for Debian +------------------ + +The common place to discuss questions about dblatex is the mailing list +'dblatex-users', to be found at 'http://sourceforge.net/projects/dblatex/'. + +However, if you have questions/problems concerning the package's Debian +packaging, perhaps a better way is to contact the Debian maintainer. + + +Master configuration files - also called specification files - chosen at the +command line are searched for at the following locations, the first found file +wins: + +(1) ./ (Document specific style) +(2) ~/.dblatex/ (User specific styles) +(3) /etc/dblatex/ (Site specific styles) +(4) /usr/share/dblatex/latex/specs/ (Standard styles supplied by upstream) +(5) $DBLATEX_CONFIG_FILES (Optional environment variable) + + +PLEASE NOTE: + +As before version 0.2-1 the package supplied specification and style files +resided below /etc/dblatex/ (violation of Debian Policy), there may have +remained relics: These files have only been removed automatically from +/etc/dblatex/ at package upgrade if all of them were unmodified. + +If you have modified any of these files, you must decide whether to +delete/rename them manually in order to activate the original +specification/style files as provided by upstream, or to leave them modified, in +which case they will override the upstream files (precedence of location (3) +above (4)). + + -- Andreas Hoenen , Sat, 4 Nov 2006 10:20:42 +0100 --- dblatex-0.2.6.orig/debian/watch +++ dblatex-0.2.6/debian/watch @@ -0,0 +1,5 @@ +# Watch control file for uscan +version=3 +http://prdownloads.sourceforge.net/dblatex/ \ + http://downloads.sourceforge.net/dblatex/dblatex-(.*)\.tar\.bz2.* \ + debian uupdate --- dblatex-0.2.6.orig/debian/rules +++ dblatex-0.2.6/debian/rules @@ -0,0 +1,116 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian/rules for package 'dblatex' that uses debhelper. +# The underlying template was originally written by Joey Hess and Craig Small. +# As a special exception, when the template is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Some targets (e.g. get-orig-source) are not required to be started from the +# package's top level directory. +# Nevertheless they need to know the package's version. +# The version gets determined at runtime by dpkg-parsechangelog using the +# package's changefile. +# The changefile is located in this file's directory. +# Thus this file's directory needs to be determined, which will only work +# reliably when the make variable MAKEFILE_LIST contains exactly one value. +ifneq ($(words $(MAKEFILE_LIST)),1) + $(error Unable to determine location of rules.) +endif + +debiandir := $(realpath $(dir $(strip $(MAKEFILE_LIST)))) +prefix := $(debiandir)/dblatex +BIN_DIR := $(prefix)/usr/bin +SHARE_DIR := $(prefix)/usr/share/dblatex +TEX_DIR := $(prefix)/usr/share/texmf/tex/latex/dblatex +XSL_DIR := $(prefix)/usr/share/xml/docbook/stylesheet/dblatex + +PKG_VERS := $(shell dpkg-parsechangelog -l$(debiandir)/changelog \ + | grep ^Version: | cut -d' ' -f2 | cut -d- -f1) +PKG_BZ2 := dblatex-$(PKG_VERS).tar.bz2 +PKG_GZ := dblatex_$(PKG_VERS).orig.tar.gz + +build: build-stamp + +build-stamp: patch + dh_testdir + # As the upstream manual page is not necessarily compressed with + # maximum compression, let compression be done by dh_installman. + gunzip --to-stdout docs/manpage/dblatex.1.gz > dblatex.1 + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm --force build-stamp + rm --force dblatex.1 + dh_clean + +patch: patch-stamp + +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm --recursive --force patch-stamp debian/patched + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir --parents $(BIN_DIR) + install --preserve-timestamps --mode=755 dblatex $(BIN_DIR) + + mkdir --parents $(TEX_DIR) + cp --archive latex/contrib latex/misc latex/style $(TEX_DIR) + rm $(TEX_DIR)/misc/passivetex/LICENSE + + mkdir --parents $(XSL_DIR) + cp --archive xsl $(XSL_DIR) + + mkdir --parents $(SHARE_DIR) + cp --archive scripts tests $(SHARE_DIR) + mkdir --parents $(SHARE_DIR)/lib + cp --archive lib/dbtexmf $(SHARE_DIR)/lib + mkdir --parents $(SHARE_DIR)/latex + cp --archive latex/graphics latex/scripts latex/specs \ + $(SHARE_DIR)/latex + ln --symbolic ../../texmf/tex/latex/dblatex/contrib \ + $(SHARE_DIR)/latex/contrib + ln --symbolic ../xml/docbook/stylesheet/dblatex/xsl $(SHARE_DIR)/xsl + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs docs/manual.pdf debian/README.Debian-source + dh_installman dblatex.1 + dh_pysupport + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch + +get-orig-source: + wget http://prdownloads.sourceforge.net/dblatex/$(PKG_BZ2)?download + bzip2 --decompress --stdout $(PKG_BZ2) \ + | gzip --best --no-name > $(PKG_GZ) + rm --force $(PKG_BZ2) + +.PHONY: build clean patch unpatch install binary-indep binary-arch binary get-orig-source --- dblatex-0.2.6.orig/debian/README.Debian-source +++ dblatex-0.2.6/debian/README.Debian-source @@ -0,0 +1,5 @@ +The pristine upstream source needs to be repackaged because it uses bzip2 +instead of gzip for tarball compression. To obtain the repackaged source, you +can use target get-orig-source of debian/rules. + + -- Andreas Hoenen , Sat, 3 Mar 2007 15:49:14 +0100