# INSTALL instructions for the rpm version of cups-pdf

  Either you got a binary RPM "cups-pdf_version.ix86.rpm" or a Source RPM (SRPM) "cups-pdf-version.src.rpm"
  depending on this you have to proceed to the following steps.

# CONTENT

1) installing a binary RPM
2) installing a binary SRPM
3) restart CUPS and take a look at the logfiles


1) Installation of a binary RPM
  This package is build as relocatable RPM; this means, that you can set the path, where
  the binary of cups-pdf is installed. This is needed if you installed you CUPS e.g. with the prefix
  /usr/local and not in the standard path /usr/

  The RPM has to be installed with
  $ rpm -i cups-pdf-version.ix86.rpm
  (where "version" and the "x" have to be replaced with the real names)

  if you want to place the binary in an other path than /usr/libs/cups/backend, type
  $ rpm -i --prefix=/usr/local/ cups-pdf-version.ix86.rpm



2) Installation of a SRPM - "for the brave" of you
  First you have to recompile the SRPM with
  $ rpm --rebuild --target ix86 cups-pdf-version.src.rpm
  after successfull compilation you'll find the binaray RPM in you RPMdir
  e.g. under RedHat in /usr/src/redhat/RPMS/ix86/

  "for the brave" of you: passing compiler-flags to the SRPM is possible through
  $ rpm --rebuild --define "optflags -O3 -march=i686 -mcpu=i686" --target i686 cups-pdf-version.src.rpm
  for Redhat 9.0 you have to use
  $ rpmbuild --rebuild --define "optflags -O3 -march=i686 -mcpu=i686" --target i686 cups-pdf-version.src.rpm
  after successfull compilation you'll find the binaray RPM in you RPMdir
  e.g. under RedHat in /usr/src/redhat/RPMS/ix86/

  if you want to modify some paths, to have to extract the SPEC-File, then extract the Sources
  cups-pdf_version.tar.gz edit config.h then edit the same values in cups-pdf.spec, put the modified
  config.h in the archiv cups-pdf_version.tar.gz and recompile with
  $ rpm -ba --define "optflags -O3 -march=ix86 -mcpu=ix86" cups-pdf.spec

3) Restarting CUPS / Logfiles
  please restart CUPS and take a look into the cups-pdf error-log (usually located in /var/log/cups)
  you should see in the file cups-pdf_log something like
  Tue May 27 04:47:46 2003  [DEBUG] initialization finished
  Tue May 27 04:47:46 2003  [STATUS] identification string sent
  All right, you're ready to install a writer and ready to enjoy !

Please report all errors and suggestions around the RPM-Edition to the author of this document.

ver0.2 - 2003/09/09 Karlsruhe (Germany) Dirk Schwier <rpms@raumhochdrei.de>
