%define install_jpnfont 0 %define install_korfont 0 # Disable rpm from stripping acroread binaries, or plugins won't work. %define __spec_install_post /usr/lib/rpm/redhat/brp-compress # Don't try to generate debug package. %define debug_package %{nil} Name: acroread Summary: Acrobat Reader lets you view, navigate and print Portable Document Format (PDF) files. Copyright: Free Group: Applications/Publishing Version: 7.0.0 Release: 0.rg.3 Source: ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/AdbeRdr70_linux_enu.tar.bz2 Source1: ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/chsfont.tar.gz Source2: ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/chtfont.tar.gz %if %{install_jpnfont} Source3: ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/jpnfont.tar.gz %endif %if %{install_korfont} Source4: ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/korfont.tar.gz %endif BuildRoot: %{_tmppath}/%{name}-root Requires: kernel >= 2.4 Requires: glibc >= 2.3 Requires: glib >= 2.0 gtk2 >= 2.0 Provides: libACE.so libACE.so(VERSION) libAGM.so libAGM.so(VERSION) Provides: libBIB.so libBIB.so(VERSION) libCoolType.so libCoolType.so(VERSION) Provides: libResAccess.so # Remove adobe's rpm Obsoletes: AdobeReader_enu %description Adobe Reader 7.0 is the free viewing companion to Adobe Acrobat 7.0. Adobe Reader lets you view, navigate and print Portable Document Format (PDF) files. Adobe Acrobat 7.0 is a complete solution for creating, enhancing, reviewing, editing, and sharing information in PDF. %prep %setup -q -n AdobeReader -a 1 -a 2 %if %{install_jpnfont} /usr/bin/tar xfz %{SOURCE3} %endif %if %{install_korfont} /usr/bin/tar xfz %{SOURCE4} %endif %build %install rm -rf %buildroot mkdir -p %buildroot/usr/local/Adobe/Acrobat%{version} PAGER=cat ./INSTALL > /dev/null < 7.0.0-0.rg.3 - disable striping, otherwise acroread won't be able to find plugins. - disable generating debug pkgs. - add test of existence for /usr/bin/update-desktop-database * Mon Mar 28 2005 rigel 7.0.0-0.rg.2 - cmaps should be put in 'CMap' not 'Font' directory * Mon Mar 28 2005 rigel 7.0.0-0.rg.1 - update to 7.0.0 - add jpn and kor fonts. * Tue Mar 22 2005 rigel 5.0.8-0.rg.2 - make it parallel install with acroread's 7.0 rpm * Tue May 28 2002 rigel - first try for acroread 5.