Introduction

The instructions given in the following lines should allow you, with a few RPM knowledge bits, to package the Acrobat Reader 5.06 from Adobe and install it in a clean and easily removable/updatable way on your system.

You can do all the manipulations described here as a non-root user, and you should do it: this is a sign of a well made RPM package that you can build it being non-root (I know, I'm a Genius).

Download and Prepare

First download this file to some place, e.g. /tmp/acroread_rpm.tar.gz. Go to your RPM packaging place (/usr/src/packages under SuSE, /usr/src/redhat under... RedHat), the directory where you have BUILD, RPMS, SOURCES, SPECS and SRPMS (possibly you need to make these directories read-write for you). There unpack the downloaded file:

    tar xvzf /tmp/acroread_rpm.tar.gz

Two files SOURCES/acroread.png and SPECS/acroread.spec should be unpackaged.

Due to legal reasons, bla, bla, I preferred not to put the Acrobat bits here, so you will have to download them, the exact place is to be found in SPECS/acroread.spec, as

    Source0: http://download.adobe.com/pub/adobe/acrobatreader/unix/5.x/linux-506.tar.gz

Download this file (if it doesn't work directly, go from the Download Adobe Acrobat Reader Page) and put it in the SOURCES directory.

Packaging

Go now to the SPECS directory and have a look at the specfile acroread.spec.

At the very beginning of the file there is a section with a lot of macros, from which the most are trying to guess the right Path to different stuff (icons, desktop links, etc...). This should work fine and automatically, at least under RedHat and SuSE. Nevertheless, there are two macros which you will need to adapt to your setup before building:

In order to help you in this task, there are different possible choice, which you can mix, reuse etc... Take care to remove any %define in comments, as they are somehow interpreted by rpm (that should be a bug).

Once you've done this, you can just package the Acrobat Reader:

    rpm -ba acroread.spec

After a few seconds or minutes, you should get the source package /usr/src/packages/SRPMS/acroread-5.05-5.src.rpm and the following binary packages, which you can install as needed (for this, you need to be root):

/usr/src/packages/RPMS/i386/acroread-5.05-5.i386.rpm (The Acrobat Reader)
/usr/src/packages/RPMS/i386/acroread-gnome-menus-5.05-5.i386.rpm (Link for GNOME)
/usr/src/packages/RPMS/i386/acroread-kde-menus-5.05-5.i386.rpm (Link for KDE)
/usr/src/packages/RPMS/i386/acroread-nppdf-5.05-5.i386.rpm (Acrobat Plugin)

Tested

I tested this package with Mozilla 1.0 and the following configurations:

  1. RedHat 7.2 with GNOME 1.4 (and Ximian Desktop)
  2. SuSE 7.1 (custom) with GNOME 1.4 and KDE 2.2.1

If you have other experiences and bug-fixing, you are welcome to contact me at the address given in the specfile.


[Maison/Home/Heim] [Linux] [RPMs]


Feedback: RPM.
Dernière modif/letzte Änderung/last modified:  Saturday, 27-Nov-2004 10:45:14 CET