--- splix-2.0.0.orig/debian/changelog +++ splix-2.0.0/debian/changelog @@ -0,0 +1,186 @@ +splix (2.0.0-0.1ubuntu7) karmic; urgency=low + + * debian/control: Moved dependencies on cups, cups-client back to Depends:, + for post-install this is sufficient. + + -- Till Kamppeter Tue, 2 Jun 2009 09:36:49 +0200 + +splix (2.0.0-0.1ubuntu6) karmic; urgency=low + + * debian/control: Moved dependencies on cups, cups-client, and perl-base to + Pre-Depends:, as only this way it is assured that these packages are + configured (especially CUPS daemon running) before this package gets + configured (update of the PPDs of existing queues). + + -- Till Kamppeter Mon, 1 Jun 2009 20:18:49 +0200 + +splix (2.0.0-0.1ubuntu5) karmic; urgency=low + + * debian/control: Removed unneeded "perl" from Depends:. This is only + needed for Perl applications, not for a simple "perl -p -e ..." in the + postinst script. + + -- Till Kamppeter Tue, 26 May 2009 16:28:49 +0200 + +splix (2.0.0-0.1ubuntu4) karmic; urgency=low + + * debian/splix.postinst: Improved regexp for matching the Nickname in the + PPDs of the existing print queues with the new PPDs of this package + (LP: #367650) + * debian/control: Added "cups" to Depends: as a running CUPS daemon is needed + for the automatic update of existing print queues (LP: #367650). + + -- Till Kamppeter Thu, 26 Mar 2009 16:57:49 +0100 + +splix (2.0.0-0.1ubuntu3) jaunty; urgency=low + + * debian/splix.postinst: Silenced non-fatal error messages when + post-install script updates PPDs and there are PPDs not belonging to + a CUPS queue in /etc/cups/ppd/ (LP: #345866). + + -- Till Kamppeter Thu, 26 Mar 2009 16:57:49 +0100 + +splix (2.0.0-0.1ubuntu2) jaunty; urgency=low + + * debian/local/apport-hook.py, debian/rules: Added apport hook (LP: #338442). + + -- Till Kamppeter Thu, 19 Mar 2009 18:05:49 +0100 + +splix (2.0.0-0.1ubuntu1) jaunty; urgency=low + + * Lintian fixes (LP: #331851) + o Changed "Standards-Version" from 3.7.2 to 3.8.0 + o Fixed debian-rules-ignores-make-clean-error + o Removed dpatch dependencies + o Use bash in postinst + o Fixed make clean (missed two files) + + -- Per Hansen Thu, 19 Feb 2009 00:00:00 +0100 + +splix (2.0.0-0ubuntu1) jaunty; urgency=low + + * New upstream release + o Version 2.0,0 + o Losts of bug fixes + * debian/patches/all-papersize-fixes-from-svn.patch, + debian/patches/broken-mono-printing-on-color-printer.patch, + debian/patches/ceil.patch: Removed, applied upstream. + + -- Till Kamppeter Tue, 17 Feb 2009 19:53:45 +0100 + +splix (2.0.0~rc2-0ubuntu9) jaunty; urgency=low + + * Apply the patch. + + -- Matthias Klose Thu, 27 Nov 2008 12:45:17 +0100 + +splix (2.0.0~rc2-0ubuntu8) jaunty; urgency=low + + * Use ceil instead of ceill; long double not available on ARM. LP: #300228. + + -- Matthias Klose Thu, 27 Nov 2008 12:10:04 +0100 + +splix (2.0.0~rc2-0ubuntu7) jaunty; urgency=low + + * debian/splix.postinst: Do not try to update the PPDs of existing print + queues if CUPS is not installed or not running (LP: #302532). + + -- Till Kamppeter Wed, 26 Nov 2008 22:26:45 +0100 + +splix (2.0.0~rc2-0ubuntu6) jaunty; urgency=low + + * debian/patches/all-papersize-fixes-from-svn.patch: Applied all paper-size- + related fixes from the SVN repository up to November 25 (LP: #292690). + * debian/patches/no-crash-on-bad-papersize.patch: Removed, merged into + all-papersize-fixes-from-svn.patch. + + -- Till Kamppeter Wed, 26 Nov 2008 09:19:45 +0100 + +splix (2.0.0~rc2-0ubuntu5) jaunty; urgency=low + + * debian/splix.postinst: Make maintainer scripts silent if there are no PPDs + of existing print queues (LP: #299889). + + -- Till Kamppeter Tue, 19 Nov 2008 16:13:02 +0100 + +splix (2.0.0~rc2-0ubuntu4) jaunty; urgency=low + + * debian/splix.postinst, debian/control: Added post-install script to + automatically update the PPD files of all existing print queues which + use this driver to the current version (LP: #193075, LP: #264749). + + -- Till Kamppeter Fri, 14 Nov 2008 16:39:45 +0100 + +splix (2.0.0~rc2-0ubuntu3) jaunty; urgency=low + + * debian/patches/broken-mono-printing-on-color-printer.patch: Grayscale + printing on color printers did not use the black toner (Upstream bug + http://sourceforge.net/tracker2/?func=detail&aid=1994510&group_id=175815&atid=874746). + + -- Till Kamppeter Thu, 13 Nov 2008 09:11:45 +0100 + +splix (2.0.0~rc2-0ubuntu2) intrepid; urgency=low + + * debian/control, debian/rules: Enabled package for patches. + * debian/patches/no-crash-on-bad-papersize.patch: Fixed crash which + happens when the page size of the incoming CUPS Raster data is + not the page size as specified in the PPD file or on the command + line (LP: #261363, LP: #268510). + + -- Till Kamppeter Sat, 4 Oct 2008 22:35:45 +0200 + +splix (2.0.0~rc2-0ubuntu1) intrepid; urgency=low + + * New upstream release + * debian/control: Adapted to renaming of CUPS package from "cupsys" to + "cups". + + -- Till Kamppeter Mon, 11 Aug 2008 15:35:45 +0200 + +splix (1.1.1-0ubuntu1) hardy; urgency=low + + * New upstream release + * debian/rules: Suppress build of drivers using the patented JBIG algorithm, + install with "make install" to improve maintainability. + * debian/rules: Correct language tags of the non-English PPD files + (LP: #161037). + * debian/splix.install: Removed, as we install with "make install" now. + + -- Till Kamppeter Mon, 11 Feb 2008 17:49:41 +0100 + +splix (1.0.1.1-0ubuntu2) gutsy; urgency=low + + * debian/control: Added cupsddk to the Build-Dependens line, to avoid + the need of creating new workarounds against rebuilding the PPDs with + every upstream release. + + -- Till Kamppeter Mon, 06 Aug 2007 17:17:05 +0100 + +splix (1.0.1.1-0ubuntu1) gutsy; urgency=low + + * New upstream release + o Fixes support for Samsung ML-2010 (LP: #112030) + + -- Till Kamppeter Mon, 06 Aug 2007 11:44:05 +0100 + +splix (1.0.1-0ubuntu1) feisty; urgency=low + + * New upstream release + o Duplex support + o Support for Xerox Phaser 6100 + o Bug fixes + * Removed 10-fix-ppds.dpatch: PPDs fixed upstream + * debian/rules: Removed PPDs for Samsung CLP-300 and CLP-600, these + printers are known to not work with this release of the driver. + + -- Till Kamppeter Wed, 7 Feb 2007 10:44:10 +0000 + +splix (1.0.1~beta2-0ubuntu1) feisty; urgency=low + + * Initial Release. (Closes: LP #59829) + * Fixed PPD files + o It must be "*LanguageVersion: German", not + "*LanguageVersion: Deutsch". + o The PPDs for the CLP-600 had "CLP-60" as model name. + + -- Till Kamppeter Tue, 12 Dec 2006 12:00:00 +0100 --- splix-2.0.0.orig/debian/README.Debian +++ splix-2.0.0/debian/README.Debian @@ -0,0 +1,20 @@ + +SpliX for Ubuntu Linux +---------------------- + +This is the SpliX printer driver for Samsung's laser printers using the SPL2 +(monochrome) and SPLc (color) printing languages. + +The PPD files coming with this package (in ppd/) are generated with +"ppdc" of the CUPS DDK from http://www.cups.org/ based on the +instructions in the ppd/samsung.drv file. So ppd/samsung.drv is the +source code of the PPDs. In addition, CUPS DDK is free software, so +all requirements for the PPDs being in the main part of Ubuntu Linux +are fulfilled. + +The ready-made PPD files are there for convenience, to not require +from the user to have CUPS DDK installed. As CUPS DDK does not make +part of Debian or Ubuntu yet, we use these PPDs instead of building +them. + + -- Till Kamppeter , Fri, 12 Jan 2007 20:47:46 +0000 --- splix-2.0.0.orig/debian/splix.postinst +++ splix-2.0.0/debian/splix.postinst @@ -0,0 +1,79 @@ +#! /bin/bash +# postinst script for splix +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +#s/^if\s+\[\s+"\$1"\s+=\s+"configure"\s+\];\s+then\s+ldconfig\b//m; + +if [ "$1" = "configure" ]; then + # Do the following only if CUPS is running and the needed CUPS tools + # are available + if which lpstat > /dev/null 2>&1 && \ + which lpinfo > /dev/null 2>&1 && \ + which lpadmin > /dev/null 2>&1 && \ + lpstat -r > /dev/null 2>&1; then + # Update the PPD files of all already installed print queues + driverregexp='lsb/usr/splix/' + gennicknameregexp='s/,(\s*SpliX|)(\s*V\.?|)\s*[\d\.]*$//i' + [ ! -z "$gennicknameregexp" ] && \ + gennicknameregexp="; $gennicknameregexp" + gennicknameregexp='s/\s*\(recommended\)//'"$gennicknameregexp" + tempfiles= + trap 'rm -f $tempfiles; exit 0' 0 1 2 13 15 + tmpfile1=`mktemp -t updateppds.XXXXXX` + tempfiles="$tempfiles $tmpfile1" + lpinfo -m | grep -E $driverregexp > $tmpfile1 + cd /etc/cups/ppd + for ppd in *.ppd; do + [ -r "$ppd" ] || continue + queue=${ppd%.ppd} + lpstat -p "$queue" >/dev/null 2>&1 || continue + nickname=`grep '\*NickName:' "$ppd" | cut -d '"' -f 2 | perl -p -e 's/\n$//' | perl -p -e "$gennicknameregexp" | perl -p -e 's/(\W)/\\\\$1/g'` + lang=`grep '\*LanguageVersion:' "$ppd" | cut -d ' ' -f 2 | perl -e 'print lc(<>)' | perl -p -e 's/[\r\n]//gs'` + ppdfound="0" + englishppduri="" + tmpfile2=`mktemp -t updateppds.XXXXXX` + tempfiles="$tempfiles $tmpfile2" + cat $tmpfile1 | perl -p -e "$gennicknameregexp" | grep -E '^\S+\s+.*'"$nickname"'$' | cut -d ' ' -f 1 > $tmpfile2 + while read newppduri; do + [ "$ppdfound" = "0" ] && lpadmin -p "$queue" -m $newppduri 2>/dev/null || continue + newlang=`grep '\*LanguageVersion:' "$ppd" | cut -d ' ' -f 2 | perl -e 'print lc(<>)' | perl -p -e 's/[\r\n]//gs'` + [ "$newlang" = "$lang" ] && ppdfound="1" + [ "$newlang" = "english" ] && englishppduri="$newppduri" + done < $tmpfile2 + [ "$ppdfound" = "0" ] && [ ! -z "$englishppduri" ] && lpadmin -p "$queue" -m $englishppduri 2>/dev/null && ppdfound="1" + [ "$ppdfound" = "1" ] && echo PPD for printer $queue updated >&2 + done + fi +elif [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remove" ] || [ "$1" = "abort-deconfigure" ]; then + : +else + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- splix-2.0.0.orig/debian/copyright +++ splix-2.0.0/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Till Kamppeter on +Tue, 12 Dec 2006. + +It was downloaded from http://splix.ap2c.org/ + +Upstream Authors: + Aurélien Croc + +Copyright: (C) 2006, Aurélien Croc (AP²C) + + 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 dated June, 1991. + + 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'. --- splix-2.0.0.orig/debian/rules +++ splix-2.0.0/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +#include /usr/share/cdbs/1/rules/simple-patchsys.mk + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +#patch: patch-stamp +#patch-stamp: +# dh_testdir +# dpatch apply-all +# touch patch-stamp + +configure: configure-stamp +#configure-stamp: patch +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) CFLAGS="$(CFLAGS)" DISABLE_JBIG=1 + +#unpatch: +# dh_testdir +# dpatch deapply-all +# rm -rf debian/patched + +#clean:: unpatch +clean:: + dh_testdir + dh_testroot + #rm -f build-stamp configure-stamp patch-stamp + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || $(MAKE) clean DISABLE_JBIG=1 + rm -f optimized/pstoqpdl optimized/rastertoqpdl + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + mkdir -p debian/splix/usr/lib/cups/filter + mkdir -p debian/splix/usr/share/ppd/splix + $(MAKE) install DISABLE_JBIG=1 CUPSFILTER=$(CURDIR)/debian/splix`cups-config --serverbin`/filter CUPSPPD=$(CURDIR)/debian/splix/usr/share/ppd/splix + # Correct language tags inside the PPD files + perl -p -i -e 's/(\*LanguageVersion:\s*)English/\1German/' $(CURDIR)/debian/splix/usr/share/ppd/splix/*/*de.ppd + perl -p -i -e 's/(\*LanguageVersion:\s*)English/\1French/' $(CURDIR)/debian/splix/usr/share/ppd/splix/*/*fr.ppd + perl -p -i -e 's/(\*LanguageVersion:\s*)English/\1Italian/' $(CURDIR)/debian/splix/usr/share/ppd/splix/*/*it.ppd + perl -p -i -e 's/(\*LanguageVersion:\s*)English/\1Portuguese/' $(CURDIR)/debian/splix/usr/share/ppd/splix/*/*pt.ppd + # Install Apport hook + install -D -m 644 debian/local/apport-hook.py $(CURDIR)/debian/splix/usr/share/apport/package-hooks/source_splix.py + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- splix-2.0.0.orig/debian/control +++ splix-2.0.0/debian/control @@ -0,0 +1,23 @@ +Source: splix +Section: text +Priority: optional +Maintainer: Till Kamppeter +Build-Depends: debhelper (>= 5.0.0), groff, libcups2-dev, libcupsimage2-dev, cupsddk, cdbs +Standards-Version: 3.8.0 + +Package: splix +Architecture: any +Depends: ${shlibs:Depends}, cups-client, cups +Description: Driver for Samsung's SPL2 (bw) and SPLc (color) laser printers + Support for printing to SPL2- and SPLc-based printers. These are most + of the cheaper Samsung laser printers which do not understand standard + languages like PostScript or PCL. Both monochrome (ML-15xx, ML-16xx, + ML-17xx, ML-2xxx) and color (CLP-5xx, CLP-6xx) models are supported. + Also some rebranded Samsungs like the Xerox Phaser 6100 work with this + driver. + . + Note that older SPL1-based models (ML-12xx, ML-14xx) do not work. Use + these printers with the older "gdi" driver which is built into + Ghostscript. + . + Home Page: http://splix.ap2c.org/ --- splix-2.0.0.orig/debian/compat +++ splix-2.0.0/debian/compat @@ -0,0 +1 @@ +5 --- splix-2.0.0.orig/debian/docs +++ splix-2.0.0/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +THANKS +TODO --- splix-2.0.0.orig/debian/local/apport-hook.py +++ splix-2.0.0/debian/local/apport-hook.py @@ -0,0 +1,11 @@ +'''apport package hook for splix + +(c) 2009 Canonical Ltd. +Author: Brian Murray +''' + +from apport.hookutils import * + +def add_info(report): + attach_hardware(report) + attach_printing(report)