Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

TUTORIAL: Acrobat Reader 5.0.9

by Thomas Chung on Jul 04, 2004

Here is updated version of tutorial for HOWTO build Acrobat Reader RPM package for Fedora Core.

Download following:
1) http://download.adobe.com/pub/adobe/acrobatreader/unix/5.x/linux-509.tar.gz
2) acroread.spec
3) acroread-dir.patch
4) acroread.desktop and acroread.png

[tchung@localhost acroread]$ ls
acroread.desktop  acroread-dir.patch  acroread.png  acroread.spec  linux-509.tar.gz
[tchung@localhost acroread]$ cp acroread.desktop acroread-dir.patch acroread.png linux-509.tar.gz ~/rpmbuild/SOURCES/
[tchung@localhost acroread]$ cp acroread.spec ~/rpmbuild/SPECS/
[tchung@localhost acroread]$ cd ~/rpmbuild/SPECS/
[tchung@localhost SPECS]$ rpmbuild -ba acroread.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9648
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/acroread-buildroot
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf acroread-5.0.9
+ /bin/mkdir -p acroread-5.0.9
+ cd acroread-5.0.9
+ /usr/bin/gzip -dc /home/tchung/rpmbuild/SOURCES/linux-509.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9648
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd acroread-5.0.9
+ LANG=C
+ export LANG
+ unset DISPLAY
+ install -d /var/tmp/acroread-buildroot/usr/lib/acroread
+ tar xpf LINUXRDR.TAR -C /var/tmp/acroread-buildroot/usr/lib/acroread
+ tar xpf COMMON.TAR -C /var/tmp/acroread-buildroot/usr/lib/acroread
+ install -d /var/tmp/acroread-buildroot/usr/lib/mozilla/plugins
+ ln -s /usr/lib/acroread/Browsers/intellinux/nppdf.so /var/tmp/acroread-buildroot/usr/lib/mozilla/plugins
+ patch /var/tmp/acroread-buildroot/usr/lib/acroread/bin/acroread.sh
patching file /var/tmp/acroread-buildroot/usr/lib/acroread/bin/acroread.sh
+ install -d /var/tmp/acroread-buildroot/usr/bin
+ ln -s /usr/lib/acroread/bin/acroread.sh /var/tmp/acroread-buildroot/usr/bin/acroread
+ install -d /var/tmp/acroread-buildroot/usr/share/applications /var/tmp/acroread-buildroot/usr/share/pixmaps
+ install -p -m644 /home/tchung/rpmbuild/SOURCES/acroread.desktop /var/tmp/acroread-buildroot/usr/share/applications
+ install -p -m644 /home/tchung/rpmbuild/SOURCES/acroread.png /var/tmp/acroread-buildroot/usr/share/pixmaps
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: acroread-5.0.9-fc1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.3790
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd acroread-5.0.9
+ DOCDIR=/var/tmp/acroread-buildroot/usr/share/doc/acroread-5.0.9
+ export DOCDIR
+ rm -rf /var/tmp/acroread-buildroot/usr/share/doc/acroread-5.0.9
+ /bin/mkdir -p /var/tmp/acroread-buildroot/usr/share/doc/acroread-5.0.9
+ cp -pr README LICREAD.TXT /var/tmp/acroread-buildroot/usr/share/doc/acroread-5.0.9
+ exit 0
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/acroread-buildroot
Wrote: /home/tchung/rpmbuild/SRPMS/acroread-5.0.9-fc1.src.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/acroread-5.0.9-fc1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.24542
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd acroread-5.0.9
+ rm -rf /var/tmp/acroread-buildroot
+ exit 0
[tchung@localhost SPECS]$ sudo rpm -Uvh /home/tchung/rpmbuild/RPMS/i386/acroread-5.0.9-fc1.i386.rpm
Password:
Preparing...                ########################################### [100%]
   1:acroread               ########################################### [100%]