summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog13
-rw-r--r--debian/control4
-rw-r--r--debian/copyright8
-rw-r--r--debian/patches/0500-paps.patch198
-rw-r--r--debian/patches/series1
-rw-r--r--debian/source/options2
6 files changed, 218 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog
index f71bf89..7613c53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+foomatic-filters (4.0.17-6) UNRELEASED; urgency=medium
+
+ * New debian/patches/0500-paps.patch: cherry-pick from upstream to add paps
+ as default filter that functional with utf-8 (Closes: #769842).
+ Thanks to Stéphane Aulery <saulery@free.fr>
+ * debian/control:
+ - Add paps as default filter to the Recommends of foomatic-filters.
+ - Bump Standards-Version to 3.9.6 (no changes required).
+ * Add year 2015 to debian/copyright.
+ * Remove debian/source/options because compression xz is standard now.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Thu, 22 Jan 2015 21:00:16 +0100
+
foomatic-filters (4.0.17-5) unstable; urgency=medium
* New debian/patches/0010-ppd_trailing_whitespace.patch:
diff --git a/debian/control b/debian/control
index 0506d8b..6fc5e94 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Build-Depends:
Homepage: http://www.openprinting.org/
Vcs-Git: git://anonscm.debian.org/collab-maint/foomatic-filters.git
Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/foomatic-filters.git
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
Package: foomatic-filters
Architecture: any
@@ -21,7 +21,7 @@ Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}, ucf (>= 0.30)
Recommends:
cups-client | lpr | lprng | rlpr,
ghostscript,
- cups | enscript | a2ps | mpage,
+ paps | cups | enscript | a2ps | mpage,
poppler-utils (>= 0.11.2),
colord
Breaks: foomatic-bin (<< 2.9), cupsomatic-ppd (<< 20030507)
diff --git a/debian/copyright b/debian/copyright
index cdea61b..97a3176 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -38,8 +38,8 @@ License: MIT
Files: *
-Copyright: 2008 Till Kamppeter <till.kamppeter@gmail.com>
- 2008 Lars Uebernickel <larsuebernickel@gmx.de>
+Copyright: 2008-2015 Till Kamppeter <till.kamppeter@gmail.com>
+ 2008 Lars Uebernickel <larsuebernickel@gmx.de>
License: GPL-2.0+
Files: test/shfuncs.sh
@@ -48,8 +48,8 @@ Copyright: 1998-2001 The Open Group / owners
License: GPL-2.0+
Files: debian/*
-Copyright: 2003 Chris Lawrence <lawrencc@debian.org>
- 2014 Jörg Frings-Fürst <debian@jff-webhosting.net>
+Copyright: 2003 Chris Lawrence <lawrencc@debian.org>
+ 2014-2015 Jörg Frings-Fürst <debian@jff-webhosting.net>
License: GPL-2.0+
License: GPL-2.0+
diff --git a/debian/patches/0500-paps.patch b/debian/patches/0500-paps.patch
new file mode 100644
index 0000000..06d402f
--- /dev/null
+++ b/debian/patches/0500-paps.patch
@@ -0,0 +1,198 @@
+Description: Add paps as default text-to-PostScript converter
+ Cherry-picked from upstream.
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769842
+Bug: https://bugs.linuxfoundation.org/show_bug.cgi?id=1239
+Last-Update: 2015-01-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/ChangeLog
+===================================================================
+--- trunk.orig/ChangeLog
++++ trunk/ChangeLog
+@@ -1,3 +1,9 @@
++2014-11-28 Till Kamppeter <till.kamppeter@gmail.com>
++
++ * Added support for the text-to-PostScript converter paps which
++ supports UTF-8 input. Thanks to Stéphane Aulery (saulery at free
++ dot fr) for the patch (Bug #1239).
++
+ 2012-07-02 Till Kamppeter <till.kamppeter@gmail.com>
+
+ * Tagged branch for release 4.0.17.
+Index: trunk/README
+===================================================================
+--- trunk.orig/README
++++ trunk/README
+@@ -341,12 +341,12 @@ from the first subprocess and the giving
+ main process. This way the main process has again PostScript as its
+ standard input.
+
+-Supported file conversion filters are "a2ps", "enscript", "mpage", and
+-spooler-specific filters. All filters convert plain text to
++Supported file conversion filters are "a2ps", "enscript", "mpage",
++"paps", and spooler-specific filters. All filters convert plain text to
+ PostScript, "a2ps" also other formats. The conversion filter is always
+-used when one prints the documentation pages, as they are created as
+-plain text, when CUPS is the spooler "pstops" is executed after the
+-filter so that the default option settings from the PPD file and
++used when one prints the documentation pages, as they are created
++as plain text, when CUPS is the spooler "pstops" is executed after
++the filter so that the default option settings from the PPD file and
+ CUPS-specific options as N-up get applied. On regular printouts one
+ gets always PostScript or PDF when CUPS is the spooler and PostScript
+ in the case of PPR, so the filter is only used for regular printouts
+Index: trunk/USAGE
+===================================================================
+--- trunk.orig/USAGE
++++ trunk/USAGE
+@@ -52,7 +52,7 @@ software printer drivers are supported.
+ printing of various non-PostScript/PDF file types for spoolers which
+ do not support these by themselves (LPD, LPRng, GNUlpr, spooler-less
+ printing). To enable this feature you need to have "a2ps", "enscript",
+-or "mpage" installed.
++"mpage", or "paps" installed.
+
+ Another problem is that the way how to install queues, to print files,
+ and to handle jobs is very different with different spoolers. LPD for
+@@ -85,10 +85,10 @@ To run beh (Backend Error Handler) or th
+ To connect to remote printers with a non-CUPS printing system, you
+ need additional connectivity software (as "rlpr", "nc", "smbspool',
+ ...). To print non-PostScript/PDF files with LPD, LPRng, GNUlpr, or
+-without spooler, you will need a2ps, enscript, mpage, or similar
++without spooler, you will need a2ps, enscript, mpage, paps, or similar
+ filters which convert non-PostScript files to PostScript. a2ps,
+-enscript, and mpage will be automatically used by the scripts when
+-they are installed.
++enscript, mpage, and paps will be automatically used by the scripts
++when they are installed.
+
+ Download sources:
+ rlpr: http://freshmeat.net/projects/rlpr/ or
+@@ -174,11 +174,13 @@ make PostScript out of non-PostScript fi
+ those non-PostScript files and also a list of available options using
+ the "docs" option. The supported utilities are "a2ps"
+ (http://www-inf.enst.fr/~demaille/a2ps/), "enscript"
+-(http://people.ssh.fi/mtr/genscript/), and "mpage"
+-(http://www.mesa.nl/pub/mpage). Recommended is "a2ps" because it
++(http://people.ssh.fi/mtr/genscript/), "mpage"
++(http://www.mesa.nl/pub/mpage), and "paps"
++(http://paps.sourceforge.net/). Recommended is "a2ps" because it
+ detects many file types (text, most image formats) and together with
+-ImageMagick (for images) and Ghostscript it converts them to
+-PostScript. The other tools convert only text files. The tool you have
++ImageMagick (for images) and Ghostscript it converts them to PostScript.
++The other tools convert only text files. However at present paps
++is the only one to support files encoded in utf-8. The tool you have
+ installed is auto-detected by foomatic-rip and used automatically if
+ necessary. PPR needs this tool only for printing the option list, and
+ CUPS does not need it at all. PPR and CUPS use internal filters for
+Index: trunk/configure.ac
+===================================================================
+--- trunk.orig/configure.ac
++++ trunk/configure.ac
+@@ -109,13 +109,14 @@ AC_ARG_ENABLE(file-converter-check, [ -
+ AC_MSG_WARN([Absence of a file converter is ignored, package will be built anyway])
+ fi])
+
+-# Check for a2ps, enscript, mpage
++# Check for a2ps, enscript, mpage, paps
+ AC_PATH_PROG(A2PS,a2ps)
+ AC_PATH_PROG(ENSCRIPT,enscript)
+ AC_PATH_PROG(MPAGE,mpage)
++AC_PATH_PROG(PAPS,paps)
+ AC_PATH_PROG(TEXTTOPS,texttops,,$CUPS_FILTERS)
+
+-AC_ARG_WITH(file-converter,[ --with-file-converter=[a2ps|enscript|mpage]
++AC_ARG_WITH(file-converter,[ --with-file-converter=[a2ps|enscript|mpage|paps]
+ Default: auto],
+ FILECONVERTER="$withval",
+ FILECONVERTER="")
+@@ -130,8 +131,8 @@ if test x$enable_dbus = xyes; then
+ PKG_CHECK_MODULES(DBUS, dbus-1)
+ fi
+
+-if test "${NOCONVERTERCHECK}" = "" -a "${A2PS}" = "" -a "${ENSCRIPT}" = "" -a "${MPAGE}" = "" -a "${TEXTTOPS}" = "" ; then
+- AC_MSG_ERROR([cannot find a2ps, enscript, mpage, or CUPS' texttops. You need to have at least one installed]);
++if test "${NOCONVERTERCHECK}" = "" -a "${A2PS}" = "" -a "${ENSCRIPT}" = "" -a "${MPAGE}" = "" -a "${PAPS}" = "" -a "${TEXTTOPS}" = "" ; then
++ AC_MSG_ERROR([cannot find a2ps, enscript, mpage, paps, or CUPS' texttops. You need to have at least one installed]);
+ fi
+
+ AC_ARG_WITH(echo,[ --with-echo=(path to GNU compatible echo command)
+Index: trunk/fileconverter.c
+===================================================================
+--- trunk.orig/fileconverter.c
++++ trunk/fileconverter.c
+@@ -40,6 +40,7 @@ const char *fileconverters[][2] = {
+ { "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=@@JOBTITLE@@ -o -" },
+ { "enscript", "enscript -G @@-M @@PAGESIZE@@ @@-b \"Page $%|@@JOBTITLE@@ --margins=36:36:36:36 --mark-wrapped-lines=arrow --word-wrap -p-" },
+ { "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h @@JOBTITLE@@ -m36l36b36t36r -f -P- -" },
++ { "paps", "paps @@--paper @@PAGESIZE@@ --header --font=11.5" },
+ { NULL, NULL }
+ };
+
+Index: trunk/filter.conf
+===================================================================
+--- trunk.orig/filter.conf
++++ trunk/filter.conf
+@@ -5,8 +5,8 @@
+
+ # Enter here your personal command for converting non-PostScript files
+ # (especially text) to PostScript. Supported commands are "a2ps",
+-# "enscript" or "mpage". Command line options will be automatically
+-# set by "foomatic-rip".
++# "enscript", "mpage" or "paps". Command line options will be
++# automatically set by "foomatic-rip".
+
+ # textfilter: a2ps
+
+Index: trunk/foomatic-rip.1.in
+===================================================================
+--- trunk.orig/foomatic-rip.1.in
++++ trunk/foomatic-rip.1.in
+@@ -90,8 +90,17 @@ were supplied by the spooler.
+ .P
+ Non-PostScript/PDF files are translated to PostScript before they are
+ passed to the renderer. This is usually done by \fBa2ps(1)\fR,
+-\fBenscript(1)\fR, or \fBmpage(1)\fR. foomatic-rip auto-detects which
+-program is installed, but manual configuration is also possible.
++\fBenscript(1)\fR, \fBmpage(1)\fR, or \fBpaps(1)\fR. foomatic-rip
++auto-detects which program is installed, but manual configuration is
++also possible.
++
++.Topic
++
++Recommended is \fBa2ps\fR because it detects many file types (text, most
++image formats) and together with \fBImageMagick(1)\fR (for images) and
++\fBGhostscript(1)\fR it converts them to PostScript. The other tools convert
++only text files. However at present \fBpaps\fR is the only one to support
++files encoded in utf-8.
+
+ .P
+ foomatic-rip does not only apply option settings supplied by the user
+@@ -215,7 +224,7 @@ therefore get ignored):
+ .TP 10
+ .BI textfilter: \ <command>
+ \fRSelects the filter for input files which are not PostScript or PDF.
+-\fI<command>\fR is one of \fBa2ps\fR, \fBenscript\fR, or \fBmpage\fR.
++\fI<command>\fR is one of \fBa2ps\fR, \fBenscript\fR, \fBmpage\fR, or \fBpaps\fR.
+ foomatic-rip automatically selects the needed command line options.
+
+ .TP 10
+Index: trunk/postscript.c
+===================================================================
+--- trunk.orig/postscript.c
++++ trunk/postscript.c
+@@ -131,9 +131,9 @@ int line_type(const char *line)
+ features described in the PPD file.
+
+ Supported file conversion filters are "a2ps", "enscript",
+- "mpage", and spooler-specific filters. All filters convert
+- plain text to PostScript, "a2ps" also other formats. The
+- conversion filter is always used when one prints the
++ "mpage", "paps", and spooler-specific filters. All filters
++ convert plain text to PostScript, "a2ps" also other formats.
++ The conversion filter is always used when one prints the
+ documentation pages, as they are created as plain text,
+ when CUPS is the spooler "pstops" is executed after the
+ filter so that the default option settings from the PPD file
diff --git a/debian/patches/series b/debian/patches/series
index 3cea5ec..714d302 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
0002-pdf_header.patch
0001-spelling-errors.diff
fixed-segfault-when-creating-logfile.patch
+0500-paps.patch
diff --git a/debian/source/options b/debian/source/options
deleted file mode 100644
index 22a4de9..0000000
--- a/debian/source/options
+++ /dev/null
@@ -1,2 +0,0 @@
-compression = xz
-compression-level = 9