File foomatic-filters.spec of Package foomatic-filters
#
# spec file for package foomatic-filters (Version 3.0.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: foomatic-filters
BuildRequires: a2ps
%define cvsdate bzr-20080909
License: GPL v2 or later
Group: Hardware/Printing
Requires: perl, a2ps
AutoReqProv: on
Version: 3.0.2
Release: 269.<RELEASE47>
Source0: %{name}-%{cvsdate}.tar.bz2
# Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-3.0.1-exec.patch
# Patch1 fixes incorrect PageSetup sections that causes LSB tests to fail,
# see http://bugs.linuxbase.org/show_bug.cgi?id=2418
Patch1: %{name}-bzr-LSB2418.patch
Url: http://www.linuxprinting.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Filter Scripts Used by Printer Spoolers
#PreReq: %insserv_prereq %fillup_prereq
%description
Filter scripts used by the printer spoolers to convert the incoming
PostScript data into the printer's native format using a printer and
driver-specific, but spooler-independent PPD file.
Authors:
--------
Till Kamppeter <till.kamppeter@gmx.net>
Grant Taylor <gtaylor@linuxprinting.org>
%prep
%setup -n %{name}-%{cvsdate}
# %setup
%patch0 -p1
# Patch1 fixes incorrect PageSetup sections that causes LSB tests to fail,
# see http://bugs.linuxbase.org/show_bug.cgi?id=2418
%patch1 -p0
%build
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
./make_configure
perl -pi -e "s:/usr/lib/(cups|pdq|ppr):%{_libdir}/\1:g" configure
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir}
make
%install
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make \
PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
DESTDIR=$RPM_BUILD_ROOT \
install-main
mkdir -p $RPM_BUILD_ROOT/usr/%_lib/cups/filter
ln -s foomatic-rip $RPM_BUILD_ROOT/usr/%_lib/cups/filter/cupsomatic
ln -s ../../../bin/foomatic-rip $RPM_BUILD_ROOT/usr/%_lib/cups/filter/foomatic-rip
rm -f $RPM_BUILD_ROOT/usr/%_lib/ppr/interfaces/foomatic-rip
rm -f $RPM_BUILD_ROOT/usr/%_lib/ppr/lib/foomatic-rip
%clean
# Clear up the mess
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-, root, root)
%dir %{_sysconfdir}/foomatic
%config %{_sysconfdir}/foomatic/filter.conf
%{_sysconfdir}/foomatic/filter.conf.sample
%{_prefix}/bin/foomatic-rip
%{_prefix}/bin/foomatic-gswrapper
%dir /usr/%_lib/cups
%dir /usr/%_lib/cups/filter
/usr/%_lib/cups/filter/foomatic-rip
/usr/%_lib/cups/filter/cupsomatic
%doc %{_mandir}/man1/foomatic-*
%doc COPYING ChangeLog README TODO USAGE
%changelog
* Tue May 12 2009 jsmeix@suse.de
- foomatic-filters-bzr-LSB2418.patch fixes incorrect
PageSetup sections that causes LSB tests to fail,
see http://bugs.linuxbase.org/show_bug.cgi?id=2418
(see Novell/Suse Bugzilla bnc#502656).
* Wed Sep 10 2008 kssingvo@suse.de
- update to latest bzr version:
* fix: Make foomatic-rip also working with PPD file names which
contain brackets or other special characters
* Tue Mar 18 2008 kssingvo@suse.de
- update to latest bzr version:
* feature: kill all subprocesses on job termination via TERM signal
* Wed Jan 16 2008 kssingvo@suse.de
- update to latest bzr version:
* Allow the parameters of the \"*Foomatic...\" lines which formerly
had to be given without quotes also to be given with double quotes.
* Assorted fixes of bugs found during LSB test suite development
* Fixed wrong handling of CUPS duplex option \"sides\", and bug when
having more than one option with page overrides.
* Let Ghostscript always use buffered input.
* Thu Aug 02 2007 kssingvo@suse.de
- update to latest bzr version:
* Added support for suppressing page accounting on a per-driver basis.
* Performance improvement
* Fixed bug of custom page sizes not read from the PostScript code
when the size values are in more than one line
* Let data structure get written to debug log also if foomatic-rip
exits with an error (only in debug mode)
* Replaced sysread() and syswrite() by read() and print()
* Fixed problem of too high memory consumption when binary output
data of GhostScript is read line-wise
* Replaced "linuxprinting.org" by "openprinting.org" or
"OpenPrinting".
* Wed Oct 18 2006 kssingvo@suse.de
- update to new upstream version: contains "fix of bashism"
* Mon Oct 09 2006 jsmeix@suse.de
- fixed cyclic 'foomatic-rip -> foomatic-rip' link to the
correct link: 'foomatic-rip -> ../../../bin/foomatic-rip'
(bugzilla#210924).
* Wed Sep 20 2006 kssingvo@suse.de
- updated to latest bzr (kind of cvs) version:
- foomatic-gswrapper.in: Support for built-in redirection of standard
output of PostScript programs ("-sstdout=%%stderr") in newer
GhostScript versions. More reliable then using /dev/fd/3 (not always
available difficult to check presence) or '|cat >3' (not seekable
and some GhostScript output devices require seekability of the
output file),
- Removed executable permissions from source files which are not
executables
- foomatid-rip.in: failing to open IPP attributes file shouldn't be
fatal
- filter.conf: example of a preferred shell setting
- foomatid-rip.in: detect and use a "modern" shell for shell commands
- foomatic-rip.in: Add support for Solaris LP, made default echo,
fileconverter, and execpath setable through configure options.
- foomatic-gswrapper.in: made default execpath setable through
configure options
- foomatic-rip-1.in: fixed to use @sysconfdir@ for configure
- foomatic-gswrapper-1.in: fixed to use @sysconfdir@ for configure
- configure.ac: made default execpath, fileconverter and echo setable
through configure options. Generate man pages through configure
- makeMan.in: removed, configure now generates the man pages
- Makefile.in: cleaned up some to work with makes other than gmake
- README, USAGE: added Solaris LP
- foomatic-rip.in: Better support for non-PJL JCLs. If there are
Foomatic options of execution style JCL, they are only prefixed with
"@PJL " if the PPD does not contain a "*JCLBegin:" expression not
containing "PJL" and if the prefix is not changed by a
"*FoomaticJCLPrefix:" in the PPD file. If there is a "*JCLBegin:"
without "PJL" and no "*FoomaticJCLPrefix:" the JCL commands do not
get any prefix. Fixed also bug of $jobuser and $jobhost not being
chomped.
- foomatic-rip.in: Added substitution of special XML entities by job
data, as date, time, job ID, user name, ... (in function
"unhtmlify()"). This was suggested by George Liu from Ricoh (george
dot liu at ussj dot ricoh dot com), to support jobs with submission
of login/password to the printer.
- foomatic-rip.in, foomatic-gswrapper.in: Fix for the fix on the
regexp for reading the config file (Thanks to Hans-Dieter Kosch,
hdkosch at t-online dot de, for this fix).
- foomatic-rip.in: In quiet mode (non-logging mode) $logh is closed in
the beginning but was never opened (Thanks to Hans-Dieter Kosch,
hdkosch at t-online dot de, for this fix).
- foomatic-gswrapper.in: Fixed quoting of single quotes (Thanks to
Hans-Dieter Kosch, hdkosch at t-online dot de, for this fix).
- foomatic-rip.in, foomatic-gswrapper.in: Fixed regexp for reading the
config file (Thanks to Hans-Dieter Kosch, hdkosch at t-online dot
de, for this fix).
- foomatic-rip.in: Make EPSF files not be an exception when checking
whether the input file is DSC-conforming. They can also be
DSC-conforming (thanks to Kevin ODonovan, kevin dot odonovan at nist
dot gov, for his report); Let the "FontPath" defined in
/etc/cups/cupsd.conf being used when CUPS is the spooler (thanks to
Peter Kekesi, kekpeti at freemail dot hu, for his report).
- foomatic-rip.in: Added comment before the line to automatically
quote unquoted slashes in the allowed characters list or allowed
regexp.
- foomatic-rip.in: Fixed bug of foomatic-rip replacing a JCL command
(ex: "@PJL HOLDKEY=1234") if another which is contained in the first
one is supplied (ex: "@PJL HOLD=STORE"). Thanks to Jociel Cavalcante
Andrade (jcainfo at inf dot ufes dot br) for reporting the bug and
testing the fix.
* Tue May 23 2006 kssingvo@suse.de
- fixed remote command execution vulnerability SWAMP#4432 (bugzilla#59233)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 meissner@suse.de
- use -fstack-protector.
* Wed Dec 21 2005 aj@suse.de
- Remove unpackaged symlinks on lib64 as well.
* Wed Dec 21 2005 ro@suse.de
- remove unpackaged symlinks
* Tue Feb 22 2005 kssingvo@suse.de
- upgrade to 3.0.2, which contains the below security fix only
* Thu Sep 23 2004 kssingvo@suse.de
- forget to add cupsomatic as foomatic-rip link (backward compatible)
* Tue Sep 14 2004 kssingvo@suse.de
- upgrade to CVS version to keep in sync with cups-drivers package
- author told me that foomatic-rip is 100%% compatible with cupsomatic
made soft-link
* Mon Aug 30 2004 kssingvo@suse.de
- fixes for security problem in foomatic-rip, CAN-2004-0801
(bugzilla#44233)
* Mon Mar 01 2004 kssingvo@suse.de
- upgrade to version 3.0.1
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Mon Aug 25 2003 kssingvo@suse.de
- updated to 2003-08-21 version (fix for PS code insertion)
* Mon Jul 28 2003 kssingvo@suse.de
- fixed problem in version name (removed %%cvsdate) - thx meissner
* Tue Jul 15 2003 meissner@suse.de
- lib64 fixes.
* Fri Jul 04 2003 kssingvo@suse.de
- It's coolo's fault: cannot add cups related link to cups package. :(
it's now in this package (ugly and hopefully temporary solution)
* Fri Jul 04 2003 ro@suse.de
- added directory to filelist /etc/foomatic
* Fri Jul 04 2003 kssingvo@suse.de
- initial version