debian/0000755000000000000000000000000012224732530007166 5ustar debian/copyright0000644000000000000000000000615112224732233011124 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Upstream-Maintainer: Jeff Fearn Upstream-Source: http://fedorahosted.org/publican/ Upstream-Name: Publican Files: * Copyright: 2009 Red Hat, Inc. License-Alias: Perl License: Artistic | GPL-1+ # Please improve this section when explicit GFDL licensing is added to source # code Files: datadir/Common_Content/* Copyright: 2007-2009 Red Hat, Inc. License: GFDL Not explicitly stated in source code, so here's the mail excerpt from Jeff Fearn. Full mail can be found at https://www.redhat.com/archives/publican-list/2009-August/msg00055.html . Return-Path: Delivered-To: unknown Message-ID: <4A947E2D.7070306@redhat.com> Date: Wed, 26 Aug 2009 10:13:33 +1000 From: Jeffrey Fearn Organization: Red Hat Inc. MIME-Version: 1.0 To: Publican list Subject: Re: [publican-list] Adjusting copyright information References: <87r5v097yw.fsf@vertex.dottedmag.net> In-Reply-To: <87r5v097yw.fsf@vertex.dottedmag.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit . ... > datadir/Common_Content/*: no copyright/license information hmm that content is all GFDL license, anyone know if I need to specify this per file or can I do it in one place? Files: datadir/fop/* Copyright: 1999-2008 The Apache Software Foundation License: Apache-2.0 Files: datadir/xsl/* Copyright: 2007-2009 Red Hat, Inc. License: Artistic | GPL-2+ Files: datadir/xsl/epub.xsl Copyright: 2009 Red Hat, Inc. License: Artistic | GPL-2+ Files: debian/* Copyright: 2009, Mikhail Gusarov License: Artistic | GPL-2+ License: Apache-2.0 This program is free software; you can redistribute it and/or modify it under the terms of the Apache License version 2.0 as published by Apache Software Foundation. On Debian GNU/Linux systems, the complete text of the Apache License can be found in /usr/share/common-licenses/Apache-2.0 License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. On Debian GNU/Linux systems, the complete text of the Artistic License can be found in /usr/share/common-licenses/Artistic License: GPL-1+ 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 1, or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL' License: GPL-2+ 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. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL' debian/patches/0000755000000000000000000000000012224732233010615 5ustar debian/patches/fix-handling-of-screen0000644000000000000000000000370712224732233014776 0ustar Description: Fix output of with / implies a verbatim environment but this was not respected if you use sub-elements like /. . This patch improves Publican::XmlClean->my_as_XML() to look for the verbatim environmement in all ancestors instead of only the direct parent. . Furthermore within a it's expected that is in bold while is normal. This was overriden by Publican's xsl/pdf.xsl for some reason. To minimize disruption, I add a second override that restores the original behaviour when is part of . . Upstream currently considers this to not be a bug. So this patch might stay as Debian specific for a while. Author: Raphaël Hertzog Bug: https://bugzilla.redhat.com/show_bug.cgi?id=752851 --- a/datadir/xsl/pdf.xsl +++ b/datadir/xsl/pdf.xsl @@ -1541,6 +1541,10 @@ Version:1.72 + + + + --- a/lib/Publican/XmlClean.pm +++ b/lib/Publican/XmlClean.pm @@ -822,10 +822,15 @@ sub my_as_XML { } else { # it's just text my $parent = $_[3]; + my $is_verbatim = 0; + my $ancestor = $parent; + while ($ancestor && !$is_verbatim) { + $is_verbatim = $MAP_OUT{ $ancestor->{'_tag'} }->{'verbatim'}; + $ancestor = $ancestor->parent(); + } # Remove extra space from non-verbatim tags - if ( $parent - && !( $MAP_OUT{ $parent->{'_tag'} }->{verbatim} ) ) + if (!$is_verbatim) { # Don't out put empty tags debian/patches/series0000644000000000000000000000002712224732233012031 0ustar fix-handling-of-screen debian/changelog0000644000000000000000000002125312224732233011043 0ustar publican (3.2.1-2) unstable; urgency=low * Install Publican's .mo files. Closes: #724855 -- Raphaël Hertzog Tue, 08 Oct 2013 09:30:25 +0200 publican (3.2.1-1) unstable; urgency=low * New upstream release. * Refresh patch fix-handling-of-screen. * Bump debhelper compat level to 9. -- Raphaël Hertzog Fri, 06 Sep 2013 22:30:19 +0200 publican (3.2.0-1) unstable; urgency=low * New upstream release. - Generates standard date format in PO files now. Closes: #714739 * Bump dependencies and build dependencies for libxml-treebuilder-perl. -- Raphaël Hertzog Mon, 26 Aug 2013 23:26:54 +0200 publican (3.1.5-3) unstable; urgency=low * Depend on docbook-xsl >= 1.77 and drop debian/patches/revert-footnote-change whose sole purpose was to make publican work with an older docbook-xsl. * Deduplicate files in /usr/share/publican. We use rdfind to create hardlinks between all identical files. Thanks to Helmut Grohne for the tool suggestion and to Aaron M. Ucko for the report. Closes: #708705 * Update Standards-Version to 3.9.4. * Update Vcs related URL from git.debian.org to anonscm.debian.org. -- Raphaël Hertzog Wed, 19 Jun 2013 23:22:59 +0200 publican (3.1.5-2) unstable; urgency=low * Upload to unstable now that wheezy is released. -- Raphaël Hertzog Mon, 06 May 2013 10:33:03 +0200 publican (3.1.5-1) experimental; urgency=low * New upstream release. * Drop patches restore-all-langs & workaround-testsuite-failure, merged upstream. * New patch revert-footnote-change to make publican work with docbook- xsl 1.76.1. -- Raphaël Hertzog Wed, 20 Mar 2013 10:27:21 +0100 publican (3.1.1-1) experimental; urgency=low * New upstream release. * Add libsort-versions-perl to Depends & Build-Depends * Drop fix-spelling-mistakes and fix-testsuite patches, merged upstream. * Refresh patch fix-handling-of-screen. * Add new patch to workaround new failures of the test suite. * Add new patch to re-enable languages that were mistakenly disabled in Build.PL. -- Raphaël Hertzog Thu, 07 Feb 2013 21:28:26 +0100 publican (3.0.0-1) experimental; urgency=low * New upstream release. * Update dependencies and build dependencies with many new Perl modules that are now required. * Drop patches handle-graphic-like-imagedata, fix-testsuite and fix- handling-of-corpauthor. They have been merged upstream. * Update patch fix-handling-of-screen to apply on the new version. * Add patch fix-testsuite to fix new problems in the test suite. * Add patch fix-spelling-mistakes to fix a few typos in POD documentation that were caught by Lintian. -- Raphaël Hertzog Wed, 07 Nov 2012 21:18:37 +0100 publican (2.8-3) unstable; urgency=low * Add debian/patches/fix-handling-of-corpauthor grabbed from the old upstream SVN repository. Requested by Laurent Perez. -- Raphaël Hertzog Mon, 18 Jun 2012 12:19:32 +0200 publican (2.8-2) unstable; urgency=low * No longer ignore test-suite failure. fop 1:1.0.dfsg2-5 should be working again. * Add missing dependency on libfile-which-perl. Closes: #660795 * Update Standards-Version to 3.9.3 (no change needed). -- Raphaël Hertzog Thu, 23 Feb 2012 22:17:00 +0100 publican (2.8-1) unstable; urgency=low * New upstream release. - Includes the bigger bottom-margin required to avoid content overlap. Closes: #648849 * Drop patch fix-test-suite-perl-CA, merged upstream. * New patch fix-testsuite to fix new issues introduced with this version. * New patch fix-handling-of-screen to improve the handling of inline elements within verbatim blocks. * New patch handle-graphic-like-imagedata to recognize in the same way. * Update Build-Depends and Depends to require docbook-xsl (>= 1.76.1) since it's now required for epub support. * Ignore test-suite failure since it triggers a fop bug currently. -- Raphaël Hertzog Sun, 20 Nov 2011 20:25:42 +0100 publican (2.7-1) unstable; urgency=low * New upstream release (never released to Debian). * Drop patch perl-critic-fixes-svn1732, merged upstream. * Bump Standards-Version to 3.9.2. * Add new patch fix-test-suite-perl-CA so that the test suite works again. It's missing the -CA argument that was added to publican's shebang line. -- Raphaël Hertzog Wed, 14 Sep 2011 08:22:26 +0200 publican (2.5-2) unstable; urgency=low * Backport upstream patch to cope with latest Perl::Critic. Closes: #616696 -- Raphaël Hertzog Sat, 19 Mar 2011 15:28:36 +0100 publican (2.5-1) unstable; urgency=low * New upstream release. * Add missing dependency and build-dependency on libio-string-perl. Closes: #607272 -- Raphaël Hertzog Fri, 31 Dec 2010 15:41:43 +0100 publican (2.3-2) unstable; urgency=low * Add missing dependency and build-dependency on libxml-simple-perl. Closes: #603281 -- Raphaël Hertzog Sat, 20 Nov 2010 15:21:51 +0100 publican (2.3-1) unstable; urgency=low * New upstream release. -- Raphaël Hertzog Sun, 31 Oct 2010 12:38:02 +0100 publican (2.2-1) unstable; urgency=low * New upstream release. -- Raphaël Hertzog Wed, 20 Oct 2010 23:25:21 +0200 publican (2.1-2) unstable; urgency=low * Add libtemplate-perl to Depends and Build-Depends. Closes: #590384 * Website creation is now a documented feature, thus move libdbd-sqlite3-perl from Suggests to Depends. * Update Standards-Version to 3.9.1 (no change needed). -- Raphaël Hertzog Mon, 26 Jul 2010 13:45:25 +0200 publican (2.1-1) unstable; urgency=low * New upstream release. * Drop patch indexterm-should-not-split-blocks.patch, merged upstream. * Update Standards-Version to 3.9.0 (no change needed). -- Raphaël Hertzog Fri, 23 Jul 2010 09:46:05 +0200 publican (1.6.3-1) unstable; urgency=low [ Mikhail Gusarov ] * New upstream release. * Change my email address in debian/control. * Added librsvg2-bin dependency to enable SVG processing. * Fixed deleting META.yml file during build. * Removed fix-typo-in-doc patch, applied upstream. [ Raphaël Hertzog ] * Add patch indexterm-should-not-split-blocks.patch to fix https://bugzilla.redhat.com/show_bug.cgi?id=592823 -- Raphaël Hertzog Fri, 21 May 2010 10:33:01 +0200 publican (1.6.2-1) unstable; urgency=low * New upstream release. * Fix watch file to cope with the new upstream download URL. * Update dependencies and build-dependencies to better match the information in Build.PL. * Use dh_lintian to install lintian overrides instead of custom rule * Drop Users_Guide/Makefile from debian/publican.examples, it's no longer provided. * Fix location of Users' Guide in doc-base file. * Switch to source format 3.0 (quilt) * Add patch fix-typo-in-doc to correct a typo in POD documentation. * Remove lintian overrides as they are all unused. * Add myself to Uploaders. * Update Standards-Version to 3.8.4 (no change needed) * Update upstream URL to match the new canonical name * Do not compress examples files. * Ensure clean removes all files left-over by the build. Drop unneeded backup of publican.cfg (it's no longer modified by the build). * Install users guide with override_dh_installdocs instead of override_dh_auto_install. * Ensure the build succeed when running with DEB_BUILD_OPTS=nocheck by creating the files that we copy as examples. -- Raphaël Hertzog Wed, 14 Apr 2010 08:57:30 +0200 publican (1.6-1) unstable; urgency=low * New upstream release: - Data directory renamed to /usr/share/publican (Closes: #545127). - New build-dependencies: Archive::Zip, Test::Pod::Coverage, Devel::Cover -- Mikhail Gusarov Mon, 22 Mar 2010 12:56:07 +0600 publican (1.0~20090927-2.1) unstable; urgency=low * Non-maintainer upload. * Make build and runtime dependency on libfile-copy-recursive-perl versioned (closes: #566271). -- gregor herrmann Tue, 23 Feb 2010 20:21:56 +0100 publican (1.0~20090927-2) unstable; urgency=low * Add libfile-pushd-perl to Depends (Closes: #545126). * Fix URL in watch file (Closes: #545172). -- Mikhail Gusarov Sat, 05 Sep 2009 16:16:05 +0700 publican (1.0~20090927-1) unstable; urgency=low * Initial release (Closes: #542919). -- Mikhail Gusarov Sun, 23 Aug 2009 03:31:23 +0700 debian/rules0000755000000000000000000000352012224732233010246 0ustar #!/usr/bin/make -f GUIDEDIR=$(CURDIR)/Users_Guide DOCDIR=$(CURDIR)/debian/publican/usr/share/doc/publican %: dh $@ override_dh_auto_configure: dh_auto_configure if [ ! -f META.yml.dist ]; then cp -f META.yml META.yml.dist; fi override_dh_auto_build: dh_auto_build cd po && for po in *.po; do \ msgfmt -o $${po%%.po}.mo $$po; \ done cd $(GUIDEDIR) && \ perl -CA -I $(CURDIR)/blib/lib $(CURDIR)/blib/script/publican build \ --formats=html-desktop --publish --langs=all \ --common_config="$(CURDIR)/blib/datadir" \ --common_content="$(CURDIR)/blib/datadir/Common_Content" ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) # The tests build files that we install as example, if they are # not run do it ourselves cd $(GUIDEDIR) && \ perl -CA -I $(CURDIR)/blib/lib $(CURDIR)/blib/script/publican update_pot cd $(GUIDEDIR) && \ perl -CA -I $(CURDIR)/blib/lib $(CURDIR)/blib/script/publican update_po \ --langs=de-DE endif override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) dh_auto_test endif override_dh_auto_install: dh_auto_install cd po && for mo in *.mo; do \ lang=$${mo%%.mo}; \ install -D $$mo $(CURDIR)/debian/publican/usr/share/locale/$$lang/LC_MESSAGES/publican.mo; \ done override_dh_installdocs: dh_installdocs mv $(GUIDEDIR)/publish $(DOCDIR)/Users_Guide override_dh_compress: # Examples dir contain files that should not be compressed # otherwise publican will not recognize them dh_compress -X/examples/ # Use hardlinks to deduplicate files and save space rdfind -makehardlinks true -outputname /dev/null debian/publican/usr/share/publican override_dh_auto_clean: dh_auto_clean rm -f po/*.mo # Created and not cleaned by t/910.publican.Users_Guide.t rm -rf $(GUIDEDIR)/de-DE $(GUIDEDIR)/pot # Removed during build process. if [ -f META.yml.dist ]; then mv -f META.yml.dist META.yml; fi debian/publican.lintian-overrides0000644000000000000000000000016612224732233014346 0ustar # We use hardlinks to save space on many duplicate files (see #708705) package-contains-hardlink usr/share/publican/* debian/compat0000644000000000000000000000000212224732233010364 0ustar 9 debian/source/0000755000000000000000000000000012224732233010466 5ustar debian/source/format0000644000000000000000000000001412224732233011674 0ustar 3.0 (quilt) debian/publican.doc-base0000644000000000000000000000111612224732233012361 0ustar Document: publican-users-guide Title: Publican Users' Guide Author: Don Domingo, Brian Forté, Murray McAllister, Joshua Oakes, Joshua Wulf, Jeff Fearn. Red Hat Engineering Content Services Group Abstract: This book will help you install publican. It also provides instructions for using publican to create and publish DocBook XML-based books, articles and book-sets. This guide assumes you are already familiar with DocBook XML. Section: Text Format: HTML Index: /usr/share/doc/publican/Users_Guide/desktop/en-US/index.html Files: /usr/share/doc/publican/Users_Guide/desktop/en-US/* debian/publican.docs0000644000000000000000000000001012224732233011624 0ustar README debian/control0000644000000000000000000000614512224732233010577 0ustar Source: publican Section: perl Priority: optional Build-Depends: debhelper (>= 9), docbook-xml, docbook-xsl (>= 1.77), fop, gettext, # for Archive::Tar, I18N::LangTags::List, Locale::Language, Term::ANSIColor, Text::Wrap and more perl (>= 5.10), libarchive-zip-perl, libconfig-simple-perl, libdatetime-format-dateparse-perl, libdatetime-perl, libdbd-sqlite3-perl, libdbi-perl, libdevel-cover-perl, libfile-copy-recursive-perl (>= 0.38), libfile-find-rule-perl, libfile-homedir-perl, libfile-inplace-perl, libfile-pushd-perl, libfile-which-perl, libhtml-format-perl, libhtml-formattext-withlinks-perl, libhtml-formattext-withlinks-andtables-perl (>= 0.02), libhtml-template-perl, libhtml-tree-perl (>= 3.23-2), libimage-size-perl, libio-string-perl, liblist-moreutils-perl, liblocale-maketext-gettext-perl, liblocale-po-perl, libmakefile-parser-perl, libmodule-build-perl, libsort-versions-perl, libstring-similarity-perl, libsyntax-highlight-engine-kate-perl, libtemplate-perl, libtext-csv-xs-perl, libtest-exception-perl, libtest-perl-critic-perl, libtest-pod-perl (>= 1.14), libtest-pod-coverage-perl (>= 1.04), libxml-libxml-perl (>= 1.67), libxml-libxslt-perl (>= 1.67), libxml-simple-perl, libxml-treebuilder-perl (>= 4.2), perlmagick, rdfind, Maintainer: Mikhail Gusarov Uploaders: Raphaël Hertzog Standards-Version: 3.9.4 Homepage: https://fedorahosted.org/publican/ Vcs-Git: git://anonscm.debian.org/collab-maint/publican.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/publican.git Package: publican Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, docbook-xml, docbook-xsl (>= 1.77), fop, gettext, libarchive-zip-perl, libconfig-simple-perl, libdatetime-format-dateparse-perl, libdatetime-perl, libdbd-sqlite3-perl, libdbi-perl, libfile-copy-recursive-perl (>= 0.38), libfile-find-rule-perl, libfile-homedir-perl, libfile-inplace-perl, libfile-pushd-perl, libfile-which-perl, libhtml-format-perl, libhtml-formattext-withlinks-perl, libhtml-formattext-withlinks-andtables-perl (>= 0.02), libhtml-template-perl, libhtml-tree-perl (>= 3.23-2), libimage-size-perl, libio-string-perl, liblist-moreutils-perl, liblocale-maketext-gettext-perl, liblocale-po-perl, libmakefile-parser-perl, libsort-versions-perl, libstring-similarity-perl, libsyntax-highlight-engine-kate-perl, libtemplate-perl, libtext-csv-xs-perl, libxml-libxml-perl (>= 1.67), libxml-libxslt-perl (>= 1.67), libxml-simple-perl, libxml-treebuilder-perl (>= 4.2), perlmagick, librsvg2-bin, Description: Tool for publishing material authored in DocBook XML Publican is a DocBook XML publication system: * Publican ensures your document is valid, * Publican works to ensure your document is up to publishable standard, * Publican supports skinning to allow you to create your own presentation rules and look, overriding many parts of the default style to meet your publishing needs, * Publican automates producing documentation in several formats: plain text, several variations of HTML output and PDF, hiding boring details. debian/publican.examples0000644000000000000000000000013012224732233012515 0ustar perltidyrc Users_Guide/en-US Users_Guide/de-DE Users_Guide/pot Users_Guide/publican.cfg debian/watch0000644000000000000000000000036712224732233010225 0ustar # format version number, currently 3; this line is compulsory! version=3 # URL to the package page followed by a regex to search https://fedorahosted.org/releases/p/u/publican/ (?:.*/)?[Pp]ublican-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$