File cups-drivers.spec of Package cups-drivers

#
# spec file for package cups-drivers (Version 1.3.9)
#
# Copyright (c) 2008 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:           cups-drivers
BuildRequires:  a2ps bison cairo-devel cups-devel cupsddk foomatic-filters
BuildRequires:  gcc-c++ ghostscript-ijs-devel ghostscript-library
BuildRequires:  ghostscript-x11 gimp-devel glib2-devel gtk2-devel
BuildRequires:  libgimpprint-devel libpng-devel libtiff-devel libxml2-devel
BuildRequires:  libxslt openssl-devel pango-devel
License:        GPL v2 only; GPL v2 or later
Group:          Hardware/Printing
Summary:        Drivers for the Common UNIX Printing System
Version:        1.3.9
Release:        2
Provides:       cups_drv
Requires:       ghostscript-library >= 7.05, foomatic-filters
PreReq:         sysvinit, sh-utils, procps
Obsoletes:      cups_drv
AutoReqProv:    0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# number of jobs to run simultaneously
%define numprocs %(cat %_sourcedir/CPUs 2>/dev/null || echo 1)
# linuxprinting.org database variables
%define DBDate 20080909
%define foomaticver bzr
%define gutenprintver 5.0.2
%define splixver 1.1.1
%define m2300wver 0.51
#URL: http://www.linuxprinting.org/download/foomatic/
Source0:        http://www.linuxprinting.org/download/foomatic/foomatic-db-engine-%{foomaticver}-%{DBDate}.tar.bz2
Source1:        http://www.linuxprinting.org/download/foomatic/foomatic-filters-%{foomaticver}-%{DBDate}.tar.bz2
Source2:        http://www.linuxprinting.org/download/foomatic/foomatic-db-%{foomaticver}-%{DBDate}.tar.bz2
# make sure that gimp-print version NEVER differs from ghostscript-library
Source3:        gutenprint-%{gutenprintver}.tar.bz2 
Source4:        splix-%{splixver}.tar.bz2
Source5:        http://heanet.dl.sourceforge.net/sourceforge/m2300w/m2300w-%{m2300wver}.tar.bz2
Source100:      foomatic-driver.known
Source101:      foomatic-driver.unsupported
Patch0:         cups-drivers-1.3.8-A4.patch
Patch1:         cups-drivers-1.3.8-samsunggdi.patch
Patch2:         cups-drivers-1.1.23-stcolor.patch
Patch3:         cups-drivers-1.3.8-hl7x0_language.patch
Patch4:         cups-drivers-1.3.8-missing_xml_close.patch
Patch5:         cups-drivers-1.3.8-Samsung-CLP-550.patch
Patch6:         cups-drivers-1.3.8-gcc_warn.patch
Patch7:         cups-drivers-1.3.9-maxspot_compare.patch
Patch300:       gutenprint-5.0.0-A4.patch
Patch301:       gutenprint-5.0.2-resolution.patch
Patch302:       gutenprint-5.0.2-updp10_pagesize.patch
Patch400:       splix-1.1.1-install.patch
Patch401:       splix-1.1.1-make.patch
Patch500:       m2300w-0.51-foomatic.patch
Patch501:       m2300w-0.51-resolution.patch
Patch502:       m2300w-0.51-disable_gs_test.patch
Patch503:       m2300w-fgets-overflow.patch

%description
This package contains free printer driver descriptions for CUPS. It
contains a recent snapshot of the printer database from
http://www.linuxprinting.org.



Authors:
--------
    Grant Taylor <www.linuxprinting.com>

%package -n gutenprint
License:        GPL v2 or later
Summary:        Gutenprint drivers for CUPS
Group:          Hardware/Printing
Requires:       ghostscript-library >= 7.05, cups >= 1.2.2, pstoraster
Version:        %{gutenprintver}
Release:        18
Obsoletes:      cups-drivers-stp
Provides:       cups-drivers-stp
PreReq:         procps

%description -n gutenprint
This package contains the gutenprint drivers (formerly known as
gimp-print drivers) for CUPS.



%package -n gutenprint-devel
License:        GPL v2 or later
Summary:        Development Environment for Gutenprint
Group:          Hardware/Printing
Version:        %{gutenprintver}
Release:        18
Requires:       ghostscript-library >= 7.05, cups >= 1.2.2, gutenprint = %{gutenprintver}
Requires:       gtk2-devel, glibc-devel

%description -n gutenprint-devel
This package contains the development environment for the gutenprint
printer drivers.



Authors:
--------
    Grant Taylor <www.linuxprinting.com>

%package -n gutenprint-gimpplugin
License:        GPL v2 or later
Summary:        GIMP plug-in for gutenprint
Group:          Hardware/Printing
Version:        %{gutenprintver}
Release:        8

%description -n gutenprint-gimpplugin
This package contains the gutenprint GIMP plug-in.



Authors:
--------
    Grant Taylor <www.linuxprinting.com>

%define INSTALL install -m755 -s
%define INSTALL_SCRIPT install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644

%prep
%setup -q -c -n %{name}
%setup -q -T -D -a 0 -n %{name}
mv foomatic-db-engine-%{foomaticver}-%{DBDate} foomatic-db-engine
%setup -q -T -D -a 1 -n %{name}
mv foomatic-filters-%{foomaticver}-%{DBDate} foomatic-filters
%setup -q -T -D -a 2 -n %{name}
mv foomatic-db-%{foomaticver}-%{DBDate} foomatic-db
%setup -q -T -D -a 3 -n %{name}
mv gutenprint-%{gutenprintver} gutenprint
%setup -q -T -D -a 4 -n %{name}
mv splix-%{splixver} splix
%setup -q -T -D -a 5 -n %{name}
mv m2300w-%{m2300wver} m2300w
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
#
pushd gutenprint
%patch300 -p1
%patch301 -p1
%patch302 -p1
popd
#
#
pushd splix
%patch400 -p1
%patch401 -p1
popd
#
#
pushd m2300w
%patch500 -p1
%patch501 -p1
%patch502 -p1
%patch503 -p1
popd
#
# ------- %Build ---------------------------------------------------------

%build
# abbrev.
mydir=$RPM_BUILD_DIR/%{name}
# Generate a working set into the package source tree
#
##### FOOMATIC
cd foomatic-db
./make_configure
# Fix for lib64 architectures
perl -pi -e "s:/usr/lib/(cups|pdq|ppr):%{_libdir}/\1:g" configure
# delete not included drivers
for i in `ls -1 db/source/driver | sed 's;\.xml$;;' | grep -v -f %{SOURCE100}`;
do
	echo "deleting driver $i"
	echo "$i (unknown)" >> drivers.deleted
	rm -f db/source/driver/$i.xml
done
for i in `cat %{SOURCE101}` ; do
	echo "deleting unsupported driver $i"
	echo "$i (unsupported)" >> drivers.deleted
	rm -f db/source/driver/$i.xml
done
# hpdj fails on ColorMode -> remove it
rm db/source/opt/7.xml
./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--sysconfdir=%{_sysconfdir} \
	--libdir=%{_libdir} \
	--disable-gzip-ppds \
	--disable-ppds-to-cups
cd ../foomatic-filters
./make_configure
# Fix for lib64 architectures
perl -pi -e "s:/usr/lib/(cups|pdq|ppr):%{_libdir}/\1:g" configure
./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--sysconfdir=%{_sysconfdir} \
	--libdir=%{_libdir}
make
#
cd ../foomatic-db-engine
./make_configure
# Fix for lib64 architectures
perl -pi -e "s:/usr/lib/(cups|pdq|ppr):%{_libdir}/\1:g" configure
./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--sysconfdir=%{_sysconfdir} \
	--libdir=%{_libdir}
make inplace
#
# Delete drivers with empty command line prototype, they would give
# unusable printer/driver combos.
perl ./foomatic-cleanupdrivers ../foomatic-db
#
# Add the Foomatgic data for gutenprint
perl ./foomatic-kitload -k ../gutenprint/src/foomatic/foomatic-db/gutenprint-ijs.5.0 -f
#
# Correct the default drivers of the printer entries to have a valid
# default for every printer.
perl ./foomatic-preferred-driver
#
# Remove inplace build
make clean
#
make PREFIX=%{_prefix} \
	PERL_INSTALLDIRS=vendor \
#	DESTDIR=%{BuildRoot}
#
cd ../foomatic-db
make \
	PREFIX=%{_prefix} \
	DESTDIR=$mydir/foomatic-db-engine \
	install
cd ../foomatic-filters
make \
	PREFIX=%{_prefix} \
	DESTDIR=$mydir/foomatic-db-engine \
	install
echo "BuilRoot = '"$RPM_BUILD_ROOT\'
cd ../foomatic-db-engine
mkdir -p $mydir/foomatic-db-engine/usr/share/foomatic/templates
make \
	PREFIX=%{_prefix} \
	DESTDIR=$mydir/foomatic-db-engine \
	inplace install
perl -pi -e "s:/usr/(bin|share):./usr/\1:g" Foomatic/Defaults.pm
ln -sf /usr/bin/gzip ./usr/bin
./usr/bin/foomatic-compiledb -j %{numprocs} -f
mkdir model
echo "renaming models" 
set +x
for i in `ls -1 ppd | sed 's/-.*//' | sort -u`; do
	mkdir model/$i
done
for i in `ls -1 ppd`; do
	mv ppd/$i model/`echo $i | sed 's/-.*//'`/`echo $i | sed 's/[A-z]*-//'`
done
set -x
for i in Ricoh Gestetner Infotec Lanier NRG Savin; do
	echo "deleting unwished Postscript printer from $i"
	rm -f model/$i/*-Postscript.ppd
done
# delete further drivers; already in package manufacturer-PPDs 
for i in 2250 2280 2600 2800 3000 2300; do
	rm -f model/HP/Business_Inkjet_${i}-Postscript.ppd
done
for i in 2550 2800 3000 3800 4500 4550 4700 4730_MFP 5550 5M 8500 8550; do
	rm -f model/HP/Color_LaserJet_${i}-Postscript.ppd
done
for i in 1200 1220 1320 2100 2200 2410 2420 2430 3200 3300 4 4000 4050; do
	rm -f model/HP/LaserJet_${i}-Postscript.ppd
done
for i in 4100_MFP 4100 4240 4250 4345_MFP 4350 4ML 4MP 4V 4_Plus; do
	rm -f model/HP/LaserJet_${i}-Postscript.ppd
done
for i in 5100 5M 5MP 5Si 6MP 8000 8100 8150 9000_MFP 9000 9040 9050; do
	rm -f model/HP/LaserJet_${i}-Postscript.ppd
done
for i in 1300 2300 3015 3380 4200 4300; do
	rm -f model/HP/LaserJet_${i}-Postscript.ppd
done
for i in 2500 3700 4600 4610 4650 5500 9500 9500_MFP; do
	rm -f model/HP/Color_LaserJet_${i}-Postscript.ppd
done
cd ..
#
##### GUTENPRINT
# start with gutenprint and generate foomatic files.
export PATH=$PATH":$mydir"
pushd gutenprint
CFLAGS="$RPM_OPT_FLAGS -fstack-protector -fno-strict-aliasing -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I%{_libdir}/gtk-2.0/include -I%{_libdir}/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gimp-2.0" ./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--sysconfdir=%{_sysconfdir} \
	--libdir=%{_libdir} \
	--disable-static \
	--enable-shared \
	--enable-cups-ppds \
	--enable-translated-cups-ppds=no \
	--enable-simplified-cups-ppds=yes \
	--disable-libgutenprintui \
	--enable-libgutenprintui2 \
	--enable-samples \
	--enable-escputil \
	--with-pic=yes \
	--with-foomatic \
	--with-foomatic3 \
	--without-gimp \
	--with-gimp2 \
	--with-ghostscript
make
popd
#
##### SPLIX
# 
cd splix
( export CXXFLAGS="$RPM_OPT_FLAGS -I../include "`cups-config --cflags`;
  make DISABLE_JBIG=1; )
cd ..
#
##### Minolta 2300W
# 
cd m2300w
autoreconf
./configure --prefix=%{_prefix}
make CFLAGS="$RPM_OPT_FLAGS"
cd ..
#
# ------- %Install -------------------------------------------------------

%install
rm -rf $RPM_BUILD_ROOT/usr/share/cups/model
# create required directories first
%{INSTALL_DIR} $RPM_BUILD_ROOT/bin
%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/cups/model
%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/lib/cups/filter
#
##### FOOMATIC
#
# put linuxprinting PPDs into CUPS driver directory
cp -a foomatic-db-engine/model $RPM_BUILD_ROOT/usr/share/cups
chmod -R a+X,u+rw,go+r $RPM_BUILD_ROOT/usr/share/cups/model
#
##### GUTENPRINT
#
cd gutenprint
make DESTDIR=$RPM_BUILD_ROOT \
	FOOMATIC_KITLOAD=${RPM_BUILD_DIR}/%{name}/foomatic-db-engine/foomatic-kitload \
	install
	mv $RPM_BUILD_ROOT/%{_datadir}/cups/model/gutenprint/5.0/C \
	   $RPM_BUILD_ROOT/%{_datadir}/cups/model
	rmdir $RPM_BUILD_ROOT/%{_datadir}/cups/model/gutenprint/5.0
	rmdir $RPM_BUILD_ROOT/%{_datadir}/cups/model/gutenprint
	mv $RPM_BUILD_ROOT/%{_datadir}/cups/model/C \
	   $RPM_BUILD_ROOT/%{_datadir}/cups/model/gutenprint
cd ..
#
mv $RPM_BUILD_ROOT/%{_bindir}/testpattern $RPM_BUILD_ROOT/%{_libdir}/gutenprint/%{gutenprintver}
#
##### GUTENPRINT (end)
#
#
# unpack the PPDs for modification (next step)
set +x
echo "unpacking PPD files..."
find $RPM_BUILD_ROOT/usr/share/cups/model -name "*.ppd.gz" | while read PPDFILE
do
	gzip -d "$PPDFILE"
done
set -x
#
# fix "Hewlett-Packard" and "HEWLETT-PACKARD" to "HP" (bugzilla#36530)
set +x
echo "replacing \"Hewlett-Packard\" by \"HP\" in PPD files..."
perl -pi -e 's/^(\*Manufacturer[^"]*")Hewlett-Packard"/$1HP"/io;' \
	$RPM_BUILD_ROOT/usr/share/cups/model/HP/*.ppd 
perl -pi -e 's/^(\*Manufacturer[^"]*")hp"/$1HP"/o;' \
	$RPM_BUILD_ROOT/usr/share/cups/model/HP/*.ppd 
set -x
#
# unify *Manufacturer and *ModelName (bugzilla#36848)
set +x
echo "replacing \"Okidata\" by \"Oki\" in PPD files..."
perl -pi -e 's/^(\*(Manufacturer|ModelName|ShortNickName|NickName)[^"]*")Okidata/$1Oki/io;' \
	$RPM_BUILD_ROOT/usr/share/cups/model/Okidata/*.ppd
set -x
# fix: set CompressionMethod to 0 for DeskJet_500 only
perl -pi -e 's(\(sModel=500\)")($1 -dCompressionMethod=0")' \
	$RPM_BUILD_ROOT/usr/share/cups/model/HP/DeskJet_500-hpdj.ppd
set +x
echo "Removing non conform Resolution values in PostScript"
find $RPM_BUILD_ROOT/usr/share/cups/model -name "*-Postscript.ppd" | \
  while read PPDFILE; do
    perl -pi -e 's/\*DefaultResolution: default/*DefaultResolution: Unknown/; \
      s/^\*Resolution default\/Printer Default: .*\n//; \
      s/^\*FoomaticRIPOptionSetting Resolution\=default: .*\n//;' \
        "$PPDFILE" > /dev/null
done
# append "black and white only" to gutenprint stp-hp-clj* PPDs (bugzilla#220079)
echo "Appending \"black and white only\" to some gutenprint HP printers"
find $RPM_BUILD_ROOT/usr/share/cups/model/gutenprint -name "stp-hp-clj_*.ppd" | \
  while read PPDFILE; do
    perl -pi -e \
      's/^(\*NickName:      "HP Color LaserJet.*)"/$1 black and white only"/;' \
        "$PPDFILE" > /dev/null
done
### if [ ! -f $RPM_SOURCE_DIR/CPUs ]; then
### 	exit 1;
### fi
# modify and pack the PPDs
echo "...modifying and compressing PPD files"
find $RPM_BUILD_ROOT/usr/share/cups/model -name "*.ppd" | while read PPDFILE
do
  if egrep -q '^\*ImageableArea [[:space:]]*A4[:/]' "$PPDFILE"; then
    perl -pi -e 's:^(\*Default.*)Letter\s*$:$1A4\n:; \
      s:^(\*ImageableArea A4.*\:\s+)"0 0 595 842":$1"24 48 571 818":; \
      s:^(\*ImageableArea Letter.*\:\s+)"0 0 612 792":$1"24 48 588 768":' \
	"$PPDFILE" > /dev/null
  fi
  gzip "$PPDFILE"
done
set -x
#
##### SPLIX
# 
cd splix
make CUPSFILTER="$RPM_BUILD_ROOT"%{_libdir}/cups/filter \
	CUPSPPD="$RPM_BUILD_ROOT"/usr/share/cups/model \
	install \
	DISABLE_JBIG=1
cd ..
#
##### Minolta 2300W
# 
cd m2300w
make install \
	INSTROOT=$RPM_BUILD_ROOT \
	DOCDIR=$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/m2300w-%{m2300wver}
rm -rf $RPM_BUILD_ROOT/usr/share/YaST2
gzip -9 $RPM_BUILD_ROOT/usr/share/cups/model/Minolta/*-m2?00w.ppd
cd ..
# 
# LSB requirements
#
# Create LSB directories
install -d -m 755 $RPM_BUILD_ROOT/usr/share/ppd
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/printdriver
# set LSB symlink to let CUPS find the PPDs
ln -s /usr/share/ppd $RPM_BUILD_ROOT/usr/share/cups/model/0-driverppds
#

%clean
test -n "$RPM_BUILD_ROOT" &&
  test "$RPM_BUILD_ROOT" != / &&
  true
#  rm -rf $RPM_BUILD_ROOT
#
# ------- %Post ----------------------------------------------------------

%post
# send CUPS daemon signal to import new files
if test -x /etc/init.d/cups && /etc/init.d/cups status >/dev/null ; then
	/etc/init.d/cups reload >/dev/null || /bin/true
fi
exit 0

%post -n gutenprint
%run_ldconfig
# send CUPS daemon signal to import new files
if test -x /etc/init.d/cups && /etc/init.d/cups status >/dev/null ; then
	/etc/init.d/cups reload >/dev/null || /bin/true
fi
exit 0

%postun -n gutenprint
%run_ldconfig
# ------- %Files ---------------------------------------------------------

%files
%defattr(-,root,root)
%{_bindir}/m2300w
%{_bindir}/m2400w
%{_bindir}/m2300w-wrapper
%dir /usr/share/cups
%dir /usr/share/cups/model
%dir /usr/share/cups/model/[A-Z]*
# LSB 3.2 follows...
%dir /usr/share/ppd
%dir /usr/lib/printdriver
%dir /usr/share/cups/model/0-driverppds
# enf of LSB 3.2 stuff
/usr/share/cups/model/[A-Z]*/*.ppd*
%{_libdir}/cups/filter/rastertospl2
%dir /usr/share/m2300w
%dir /usr/share/m2300w/%{m2300wver}
%dir /usr/share/m2300w/%{m2300wver}/psfiles
/usr/share/m2300w/%{m2300wver}/psfiles/*
%doc %{_defaultdocdir}/%{name}

%files -n gutenprint
%defattr(-,root,root)
%config /etc/cups/command.types
%{_bindir}/cups-calibrate
%{_bindir}/escputil
%{_bindir}/ijsgutenprint.5.0
%{_libdir}/cups/backend
%{_libdir}/cups/filter/c*
%{_libdir}/cups/filter/rastertogutenprint*
%{_sbindir}/cups-genppd*
%dir /usr/share/cups
%dir /usr/share/cups/model
/usr/share/cups/calibrate.ppm
%dir /usr/share/cups/model/gutenprint
/usr/share/cups/model/gutenprint/*
%dir %{_libdir}/gutenprint
%dir %{_libdir}/gutenprint/%{gutenprintver}
%{_libdir}/gutenprint/%{gutenprintver}/*
%{_libdir}/libgutenprint*.so?*
%dir /usr/share/gutenprint
/usr/share/gutenprint/*
/usr/share/locale/*/*/gutenprint*
%doc /usr/share/man/man?/*.gz
%dir %{_libdir}/cups/driver
%{_libdir}/cups/driver/gutenprint*

%files -n gutenprint-devel
%defattr(-,root,root)
%dir /usr/include/gutenprint
/usr/include/gutenprint/*
%dir /usr/include/gutenprintui2
/usr/include/gutenprintui2/*
%{_libdir}/libgutenprint*.la
%{_libdir}/pkgconfig/gutenprint*
%{_libdir}/libgutenprint*.so

%files -n gutenprint-gimpplugin
%defattr(-,root,root)
%{_libdir}/gimp/2.0/plug-ins/*

%changelog
* Thu Nov 20 2008 kssingvo@suse.de
- fixed gutenprint ppd file, which fails through internal test
* Mon Oct 13 2008 kssingvo@suse.de
- changed version to 1.3.9 to align with latest cups version
- fixed comparision mismatch in db-engine generator (bnc#434047)
* Thu Oct 09 2008 kssingvo@suse.de
- update splix driver to version 1.1.1 (bnc#432530)
  * jbig is now configurable to compile/link with
  * fix: the duplex bug
  * prevent from loading an old PPD file
  * rewrite of all PPD files
  * fix: the X clipping was miss-calculated
  * fix: ML-2010 resolution bug is now fixed
* Mon Oct 06 2008 meissner@suse.de
- fixed fgets buffer sizes in m2300w driver
* Tue Sep 09 2008 kssingvo@suse.de
- updated to OpenPrinting database from 2008-SEP-09:
  * new printers: Epson, Lexmark, HP, Xerox, Oki, Sharp, Oce, Brother
  * new messages
  * fix for PPDtoXML
  * for full list see included ChangeLog file
- fixed some drivers
- adapted old patches
- fixed compiler warnings for generation tool (bnc#360063)
- worked on rpmlint warnings
* Tue Mar 18 2008 kssingvo@suse.de
- update OpenPrinting database to 2007-MAR-17:
  * new printer: EPSON LP-S4000
  * Fix default setting of the option "HalftoningAlgorithm" for some
  drivers
  * 62 Postscript and 60 pxlmono new PPD files for 60 Ricoh Family
  Group printers
  * New "<patents>" tag to driver entries
* Thu Jan 24 2008 kssingvo@suse.de
- fixed autobuild issue in %%post when host runs old cups-1.x version
* Tue Jan 22 2008 kssingvo@suse.de
- added new subpackage gutenprint-gimpplugin (bugzilla#245683)
- added %%postun for gutenprint, required through library
- fixed correct RPM group for gutenprint-devel
- moved devel library to devel package
* Wed Jan 16 2008 kssingvo@suse.de
- update to gutenprint 5.0.2:
  * new Epson inkjet printers: CX4400, CX4900, CX5600, CX7400, CX9400
  DX4050, Photo RX595, C110, C120, D120, PM 670C, PX V780
  * new Canon printers: MP710, MP740,
  * new PCL laser printers: Sharp AR-M257, HP LserJet 1022
  * Preliminary Canon inkjet printers support: BJC5100, BJC5500
  BJC8500, Pixma iP4500, Pixma iP5300, Pixma iP8500, Pixma iX5000,
  Pixma MP170, Pixma MP180, Pixma MP610, Pixma Pro 9500, i80
  * several bug fixes
  * fixes for old printers, such as Canon iP4000, iP4200, and i560
- update OpenPrinting database to 2007-JAN-10:
  * imported new hplip printers (not used)
  * many new manufacturer printer entries (not used)
  * fix for eplaser
  * fix for HP DesignJets in manufacturer name
  * all UPP files for Epson inkjet printers are marked obsolete
  * Removed unnneeded command line prototype from Stc670pl.upp
  * support for hp models: LJ M2727, OJ K8600, Photo C4380
- disabled test if ghostscript runs in m2300w (glibc issue)
* Thu Nov 22 2007 kssingvo@suse.de
- added procps to PreReq:
- added mkdir %%buildroot (rpmlint warning)
* Wed Nov 14 2007 kssingvo@suse.de
- update to splix-1.0.2:
  * fix of X clipping, was miss-calculated
  * ML-2010 resolution bug is now fixed
  * Support for QPDL v. 0, 1 and 2
  * Duplex support
  * new PJL informations
  * new printer support (Xerox..)
  * bug fix in 300 DPI resolution
  * bug fix while monochrome document printed on color printers
  * Rewrite some parts of the PPD files
* Fri Nov 09 2007 kssingvo@suse.de
- added support for printing in gimp
* Mon Sep 10 2007 kssingvo@suse.de
- changed illegal values of Resolution in PPD files to pass
  cupstestppd and full-fill PPD specification (bugzilla#309219)
* Tue Jul 31 2007 kssingvo@suse.de
- updated to foomatic DB from 2007-07-31:
  * new support for several printers:
  Samsung-CLP-300, Samsung-CLP-510, Samsung-CLP-600, Ricoh-DDP_92_PS,
  HP_Color_LaserJet_2700, HP_Color_LaserJet_CM1015, HP-OfficeJet_J5700,
  HP_LaserJet_M4345_MFP, HP_LaserJet_M5025_MFP, Gestetner-C7640nD_PS,
  and many more...
  * update of PJL and PCL5 support information for printer entries
  * add of IEEE 1284 information for several printers (if avail and known)
  * add of SNMP information (if avail and known)
  * correction of typos
  * removal of driver execution data which are already available in
  the driver package
  * new build options for easier packaging
  * fix of wrong recommended drivers for several printers
  * renaming origin of database: FSG
  * put drivers of the "epsonepl" project together into one driver entry
  removed the execution data
  * several drivers are marked as obsolete: pbm2ppa, ppmtocpva, ptouch, ...
* Mon Jun 18 2007 kssingvo@suse.de
- upgraded to gutenprint-5.0.1:
  * several new printers supported in this release
  * CUPS 1.2 is now supported using on-the-fly PPD file generation.
  * The native CUPS driver offers a new Shrink Page If Necessary to
  Fit Borders option, enabling the user to choose how to fit the
  output to the imageable area of the page.
  * Epson inkjet printers now correctly support borderless printing
  * The list of resolutions supported on newer Epson printers has
  been changed.
  * The output for the Canon PIXMA printers has been improved
  * The Canon driver now supports DuplexNoTumble for the PIXMA
  iP4000
  * Roll printing now works correctly on the Epson Stylus Photo
  R800
  * Printing with Canon PIXMA printers connected to windows hosts
  has been fixed
  * CD printing has been fixed for the Canon PIXMA iP4000 and
  iP4200
  * The Canon driver now also supports the CD fine adjustment
  controls
  * The Resolutions for the Canon S300 have been fixed
  * Some Canon MULTIPASS printers have been renamed to PIXMA
  * A minor border problem with the R800 and related printers has
  been fixed
  * A build problem with the CUPS driver on some systems has been
  fixed
  * The Postscript driver now handles CMYK input correctly, fixing
  a problem with Cinepaint.
  * The Postscript driver and UI library now handle setting the
  locale correctly
  * The PPD file updater, cups-genppdupdate.5.1, now handles the -n
  correctly
  * The range of sizes for printing custom CD's has been extended
  down to 65 mm in both the Epson and Canon drivers.
  * Printing to CD's on Epson printers now works correctly if the
  image is not placed at the top of the page
- removed gutenprint-sysfs patch: now upstream included
- removed gutenprint-print.patch: now upstream included
* Fri Jun 08 2007 kssingvo@suse.de
- added ghostscript-ijs-devel to BuildRequires
* Wed Apr 25 2007 kssingvo@suse.de
- fixed LSB required directories to latest information
* Wed Apr 25 2007 kssingvo@suse.de
- added LSB 3.2 required directories
* Wed Apr 11 2007 kssingvo@suse.de
- updated gutenprint to 5.0.99.1
- added m2300w driver for Minolta Colorlaser with Windows interface
- fixed uninitialized variable issue in gutenprint (bugzilla#230172)
- added security patch for gutenprint
* Wed Dec 13 2006 kssingvo@suse.de
- fixed issue with duplicate packaged filter rastertospl2
* Mon Dec 11 2006 kssingvo@suse.de
- added splix driver: samsung spl driver for unix
* Mon Nov 27 2006 kssingvo@suse.de
- another fix for gutenprint: A4 on some epson printers broken
* Mon Nov 20 2006 kssingvo@suse.de
- changed version to 1.2.7 to align with latest cups version
* Thu Nov 16 2006 kssingvo@suse.de
- append "black and white only" to some gutenprint PPDs (bugzilla#220079)
* Tue Nov 14 2006 kssingvo@suse.de
- changed version to 1.2.6 to align with latest cups version
- fixed non conform PPD values in various PostScript.ppd (bugzilla#219779)
* Wed Oct 18 2006 kssingvo@suse.de
- update to foomatic DB from 2006-10-18:
  * updated printer descriptions
  * new printers: HP LaserJet P2015, HP LaserJet M3035_MFP,
  HP LaserJet M5035_MFP, HP LaserJet M4345_MFP, HP LaserJet P3004,
  HP LaserJet P3005
  * fixed link from HP LaserJet 4M
  * PostScript driver has now "%%!PS-Adobe" instead of only "%%!"
  at beginning of output
  * new printers: HP DeskJet 3940, HP DeskJet 3920, HP OfficeJet 5600
  * new printers: Toshiba 282, Toshiba 451c, Toshiba 452, Toshiba 850
- update to foomatic DB engine from 2006-10-18:
  * let CUPS only list PPD files which are really valid
  * In some cases printer/driver combos with empty command line prototye
  were still listed by CUPS.
  * some (unknown) Debian changes
- cleaned up specfile
* Wed Sep 20 2006 kssingvo@suse.de
- updated to foomatic DB from 2006-09-19:
  * new Samsung laser printers, new driver "splix"
  * fixed model name in the entry for the Epson Stylus C65
  * new models PS A310, C5100, C6100, C7100, D5060, D5100, Pro B8300
  * removed  PS B9100, OJ L7300/L7500/L7600/L7700, des
  * changed recommended driver from "hpijs" to "ljet4" for HP LaserJet 1100(A)
  * new Toshiba printers
  * recommended drivers: gimp-print -> gutenprint
- cleaned up specfile:
  * removed unused code, e.g. disabled by comments
  * renumbered Sources and Patches
  * less verbose when working on PPD files
- worked on foomatic DB patches:
  * rewrote A4 patch and others
  * removed unneccessary patches due to DB upgrade
* Thu Sep 14 2006 kssingvo@suse.de
- update to foomatic DB from 2006-08-30
- update gimp-print to gutenprint (successor)
- ... caused major changes in the spec file
- ... and adapted necessary patches (sysfs, A4)
* Thu Feb 16 2006 kssingvo@suse.de
- fixed illegal maring values in rastertoprinter (bugzilla#149434)
* Tue Jan 31 2006 kssingvo@suse.de
- removed HP Postscript drivers (already in manufacturer-PPDs)
- remove of PS printers from Ricoh and affiliate need new handling
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 mls@suse.de
- removed -ghostscript-fonts-std, it's no longer needed
* Wed Jan 18 2006 kssingvo@suse.de
- added for gimp-print same patches as used in ghostscript
- adapted them
* Tue Jan 17 2006 kssingvo@suse.de
- updated to latest linuxprinting.org db
- adapted patches
* Tue Jan 17 2006 meissner@suse.de
- use -fstack-protector
* Mon Jan 16 2006 mls@suse.de
- added -ghostscript-fonts-std to neededforbuild
* Mon Aug 22 2005 kssingvo@suse.de
- removed unwished PS printers from Ricoh and affiliate (bugzilla#106080)
* Mon Aug 01 2005 kssingvo@suse.de
- updated to latest linuxprinting.org db
- adapted patches
- adapted gimp-print patches
- added min12xxw driver (now in filters package included)
* Wed Apr 20 2005 mmj@suse.de
- fix invalid lvalues for gcc4
* Fri Mar 18 2005 kssingvo@suse.de
- fix for color model in hpdj drivers (bugzilla#72932)
- fix for CompressMode for HP DJ500 in hpdj driver
* Wed Mar 16 2005 kssingvo@suse.de
- added epl6200 to unsupported printers
- fixed not allowed characters in some printer names
- removed not allowed option from some stcolor printers
- fixed page size problem in designjet printers
* Mon Feb 28 2005 kssingvo@suse.de
- updated to latest linuxprinting.org db
- updated known_drivers to new ghostscript
- adapted A4 patch
* Mon Feb 21 2005 kssingvo@suse.de
- updated %%version to keep in sync with cups main package
- dropped hpijs drivers - now in hplip package (bugzilla#65379)
* Mon Jan 17 2005 ro@suse.de
- added c++ to neededforbuild (for libtiff)
* Wed Sep 29 2004 kssingvo@suse.de
- removed ppmtocpva driver (we're using now ppmtomd instead :)
* Fri Sep 24 2004 kssingvo@suse.de
- additional non-existend drivers are now black listed
* Mon Sep 20 2004 kssingvo@suse.de
- updated %%version only to keep in sync with cups main package
* Tue Sep 07 2004 kssingvo@suse.de
- updated to latest gimp-print
- adapted gimp-print patches
- updated db to latest CVS snapshot
* Mon Aug 09 2004 ro@suse.de
- fix build with current libxml2
* Wed Jun 02 2004 kssingvo@suse.de
- fixed right margin for Epson Stylus C63, C64, C83, C84
* Tue May 25 2004 kssingvo@suse.de
- added missing drivers to foomatic-driver.known (bugzilla#41175)
* Wed Apr 14 2004 kssingvo@suse.de
- fixes for Epson Stylus C63, C64, C83, C84
- fixes for cups page counting in gimp-print filters
* Mon Mar 29 2004 kssingvo@suse.de
- removed A4 fix, due to missing changes in ghostscript. Letter is now
  the default pagesize for some rare printers (bugzilla#36528)
- changed Okidata to Oki as manufacturer of some printers (bugzilla#36848)
* Wed Mar 24 2004 kssingvo@suse.de
- fixed "*DefaultPageSize: A4", when there is no "PageSize A4" (bugzilla#36528)
- canon/epson backends from gimp-print subpackage use sysfs now to
  get USB printer identification strings (bugzilla#36774)
* Fri Mar 19 2004 kssingvo@suse.de
- japanese drivers is now in package "manufacturer-PPDs" (bugzilla#36532)
- fixed broken drivers (by patch and remove) (bugzilla#36539)
- fixed manufacturer name to "HP" (bugzilla#36530)
* Mon Mar 01 2004 kssingvo@suse.de
- upgrade to 3.0.1 and CVS snapshot 20040301
* Tue Feb 17 2004 kukuk@suse.de
- Fix building on lib64 architectures
* Thu Feb 12 2004 kssingvo@suse.de
- upgrade to gimp-print-4.2.6
- adaptions for cups-1.1.20
- "-fstrict-aliasing" for gimp-print build
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Wed Sep 10 2003 kssingvo@suse.de
- added epl5800l and epl5900l to unsupported printers (bugzilla#30121)
* Thu Sep 04 2003 kssingvo@suse.de
- removed cups from PreRequires, to make it useable for LPRng
- added import of new files to cupsd for cups-drivers-stp
* Mon Aug 25 2003 kssingvo@suse.de
- updated database to 2003-08-25 state
- removed no longer neccessary patch
* Mon Aug 25 2003 ro@suse.de
- fixed segfault in foomatic-combo-xml on x86_64
* Sat Jul 26 2003 kssingvo@suse.de
- updated database to 2003-07-25 state
- adapted patches
* Fri Jul 04 2003 kssingvo@suse.de
- fixed %%Requires, foomatic-rip is now in foomatic-filters
* Mon Jun 23 2003 ro@suse.de
- remove unpackaged files from buildroot
- added directories to filelist
* Wed Mar 12 2003 kssingvo@suse.de
- additional unsupported drivers found (by tests) and are now removed
* Tue Mar 11 2003 kssingvo@suse.de
- fix for usb generation in db
* Thu Mar 06 2003 kssingvo@suse.de
- delete of additional unsupported drivers (similiar names)
- replaced partly working samsunggdi-perl-substitution through patch
* Tue Mar 04 2003 kssingvo@suse.de
- fixed %%files conflict
* Sun Mar 02 2003 kssingvo@suse.de
- updated db to 20030302 (looks good)
* Thu Feb 27 2003 kssingvo@suse.de
- removed file duplicates
* Wed Feb 26 2003 kssingvo@suse.de
- adapted old patches (Patch5 no longer needed)
- updated database to today
- removed unneccessary xml generation files
* Wed Feb 26 2003 schwab@suse.de
- Fix configure test.
* Wed Feb 26 2003 kssingvo@suse.de
  first version for foomatic 3.0pre generation
- still problems expected, hopefully final foomatic-3.0 till RC1
- had to rewrite some parts in spec file a bit
- still not done: old patches had to be adapted for new vesion
* Mon Feb 17 2003 ro@suse.de
- use gimp-print-4.2.5 like others (ghostscript/gimp)
* Mon Feb 03 2003 kssingvo@suse.de
- updated to new foomatic database (first try :)
* Tue Oct 29 2002 kssingvo@suse.de
- 'samsunggdi' printers are not only in samsung subdirectory found
  fixed spec to change any *-gdi.ppd file, e.g. Lexmark (bugzilla#21211)
* Wed Sep 04 2002 kssingvo@suse.de
- fixed bjc-[68]00 drivers for monochrome mode (bugzilla#18758)
* Mon Sep 02 2002 kssingvo@suse.de
- renamed 'gdi' to 'samsunggdi' of all Samsung gdi PPDs (to be compatible
  with our ghostscript name).
* Mon Sep 02 2002 kssingvo@suse.de
- added PPD files for Japanese printers.
* Mon Aug 26 2002 kssingvo@suse.de
- fixed the 64 bit architecture build problem
* Wed Aug 21 2002 kssingvo@suse.de
- updated "PreReq:"
- fixed modification of ImageableArea (bugzilla#18094)
* Tue Aug 13 2002 kssingvo@suse.de
- added "Requires:" for subpackage cups-drivers-stp (bugzilla#17532)
* Mon Aug 05 2002 kssingvo@suse.de
- worked on foomatic-drivers.known list
- removed outdated de and cz translations (incl. generation and subpackages)
- modified perl script to get a good printable area of page in PPD files
* Sun Aug 04 2002 kssingvo@suse.de
- updated to same gimp-print version of ghostscript
- updated way to import gimp-print db
- adapted ia64 patch
- added perl script to have "A4" as page default size
- some small modifications
- still missing: goog page margins
* Sat Aug 03 2002 kukuk@suse.de
- Add PreRequires for sysvinit (needed for init script "status").
* Fri Jul 26 2002 kssingvo@suse.de
- removed debug "exit 1" from spec file. sorry.
- fixed broken A4 patch
* Wed Jul 24 2002 kssingvo@suse.de
- moved to foomatic db from 20020709
- still problems known (no A4 default, no good margins) but compiles
  and works fine
* Thu Jul 11 2002 meissner@suse.de
- libpng -> libpng-devel-packages
* Wed Jun 05 2002 kssingvo@suse.de
- its no longer noarch, removed Build.Architecture: noarch
- build requires now openssl (through cups-config from package cups-devel)
* Tue May 14 2002 kssingvo@suse.de
- fixed next problems with x86_64
* Wed May 08 2002 kssingvo@suse.de
- tried to fix the -lcupsimage problem under x86_64, but noticed it as
  a cups problem
- deleting now not included libraries to make brp-x86_64-linux happy
* Wed Apr 24 2002 kssingvo@suse.de
- fixes for 64 bit architecture
* Wed Mar 13 2002 kssingvo@suse.de
- updated hpijs driver.xml and opts.xml for new ghostscript parameter values
  (bugzilla#14928)
* Tue Mar 12 2002 kssingvo@suse.de
- fixed default page size from 'letter' to 'A4' (bugzilla#14322)
- added missing PostScript drivers (detected by Andreas Klein).
* Mon Feb 18 2002 kssingvo@suse.de
- update gimp-print to 4.2.0 to match copy in ghostscript-library
  sources (libgimpprint is built there)
* Mon Feb 11 2002 kssingvo@suse.de
- fixed problem with tar/bzip2 options, which are suddenly wrong
- gimp-print PPDs are now used too
* Wed Feb 06 2002 kssingvo@suse.de
- removed all-com-ppds.tar.bz2, and cleanppd.pl
- added generation of foomatic database:
  * a view PERL-XML-modules: XML-Dumper, XML-Encoding, XML-Grove,
  XML-Parser, XML-Twig, libxml-enno, libxml-perl
  * the foomatic database: foomatic-20020205.tar.bz2
  * and two xslt files to process the XML database:
  foomatic-manufacturer-id.xsl, foomatic-printer-id.xsl
- rewrote spec completly to setup/generate foomatic files
- kept the DE and CS translation of PPD files (maybe have to be adapted)
* Thu Aug 16 2001 bjacke@suse.de
- gzip PPDs
* Fri Apr 13 2001 kendy@suse.cz
- the package uses Buildroot:
* Thu Apr 12 2001 max@suse.de
- updated printer database
- Package splitted into cups-drivers, cups-drivers-de and
  cups-drivers-cs
- The scripts foomatic-gswrapper and cupsomatic moved to
  the cups package
- started to change the package to use Buildroot:
- single soure files are not compressed anymore
* Mon Apr 09 2001 kendy@suse.cz
- Added scripts to localize the PPD files.
- Package splitted into cups-drivers and cups-ppds (cups-ppds,
  cups-ppds-cs, cups-ppds-de)
- Added empty German and Czech translations
* Mon Feb 26 2001 mhafner@suse.de
- updated printer database
- added foomatic-gswrapper
* Fri Dec 01 2000 ro@suse.de
- made package noarch
* Wed Nov 29 2000 uli@suse.de
- replaced fixed dependency on perl with autoreqprov
- removed useless provides tag
- fixed problem with funny chars in filenames in cleanppd.pl
- fixed file list
- made paths in post section relative
* Tue Nov 21 2000 mhafner@suse.de
- renamed to cups-drivers
- changed version to match cups system version
- updated printer database
* Fri Oct 06 2000 mhafner@suse.de
- updated printer database
- small changes in spec file
* Sun Sep 24 2000 ro@suse.de
- make post-script succeed unconditionally
* Tue Sep 19 2000 mhafner@suse.de
- updated printer database
* Fri Sep 15 2000 mhafner@suse.de
- changed name of package to cups_drv
* Fri Sep 15 2000 mhafner@suse.de
- updated printer database
- changed some odd names of ppd files
* Thu Sep 14 2000 mhafner@suse.de
- initial package
openSUSE Build Service is sponsored by