Summary: Adobe Acrobat Reader Name: acroread Version: 5.0.6 Release: 1 Group: Applications/Publishing Copyright: Freely Distributable Vendor: Adobe Systems Incorporated Source0: linux-506.tar.gz Source1: acroread.png Source2: acroread-kde-icons.tar.gz URL: http://www.adobe.com/products/acrobat/readermain.html BuildRoot: %{_tmppath}/%{name}-root %define acroroot %{_builddir}/%{name}-%{version} %define acroinstall /usr/lib/Acrobat5 %description Adobe Acrobat Reader enables you to view, navigate, and browse PDF files, either inside a Web browser or in a stand alone application. %package nppdf-netscape Summary: Adobe Acrobat Reader Netscape plugin Group: X11/Applications/Graphics Requires: acroread, netscape-common %description nppdf-netscape A plugin to view Adobe PDF files in netscape. %package nppdf-mozilla Summary: Adobe Acrobat Reader Mozilla plugin Group: X11/Applications/Graphics Requires: acroread, mozilla %description nppdf-mozilla A plugin to view Adobe PDF files in mozilla. %package gnome-menus Summary: Adobe Acrobat Reader GNOME System menus Group: X11/Applications/Graphics Requires: acroread %description gnome-menus This package links Adobe Acrobat Reader to the GNOME System menus. %package kde-menus Summary: Adobe Acrobat Reader KDE System menus Group: X11/Applications/Graphics Requires: acroread %description kde-menus This package links Adobe Acrobat Reader to the KDE System menus. %prep %setup -c -n %{acroroot} %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}/{usr/{bin,lib/netscape/plugins,lib/mozilla/plugins,share/{pixmaps,icons/mini,applnk/Applications},X11R6/lib/X11/app-defaults},etc/X11/applnk/Applications} # This is basically what the INSTALL script does install -d %{buildroot}%{acroinstall} cd %{buildroot}%{acroinstall} tar xf %{acroroot}/COMMON.TAR tar xf %{acroroot}/LINUXRDR.TAR # fix some lib permissions chmod +x %{buildroot}%{acroinstall}/Reader/intellinux/lib/lib*.so.* # 'acroread' is a shell script, change the install_dir inside it cd %{buildroot}%{acroinstall}/bin mv -f acroread.sh acroread perl -pi -e "s,REPLACE_ME,%{acroinstall}/Reader,g" acroread # Set LANG environment variable so acroread works on redhat 8.0 perl -pi -e "s,ver=5.0.6,ver=5.0.6\n\n# The below is needed for Red Hat Linux 8.0.\nif [ \"\\\$LANG\" = \"en_US.UTF-8\" ]; then\n\tLANG=en_US\n\texport LANG\nfi\n,g" acroread # add the KDE icons cd %{acroroot} tar -zxf %{_sourcedir}/acroread-kde-icons.tar.gz install -m 0644 acroread.xpm %{buildroot}/usr/share/icons/acroread.xpm install -m 0644 mini-acroread.xpm %{buildroot}/usr/share/icons/mini/acroread.xpm # add the GNOME icon install -m 0644 %{_sourcedir}/acroread.png \ %{buildroot}/usr/share/pixmaps/acroread.png # strip binaries, move netscape and mozilla plugin cd %{buildroot}%{acroinstall}/Browsers/intellinux strip -s nppdf.so %{buildroot}%{acroinstall}/Reader/intellinux/bin/acroread cp -f nppdf.so %{buildroot}/usr/lib/netscape/plugins/nppdf.so mv -f nppdf.so %{buildroot}/usr/lib/mozilla/plugins/nppdf.so chmod +x %{buildroot}/usr/lib/netscape/plugins/nppdf.so # Create new app-default for weblink plugin cat > %{buildroot}%{acroinstall}/Reader/intellinux/app-defaults/WebLink < %{buildroot}/etc/X11/applnk/Applications/acroread.desktop < %{buildroot}/usr/share/applnk/Applications/acroread.kdelnk < - upgraded to 5.0.6 * Sun Oct 13 2002 Chad Remesch - added nppdf-mozilla package - renamed nppdf package to nppdf-netscape - added LANG variable in acroread shell script so acroread works in redhat 8 * Tue May 28 2002 Troy Engel - upgraded to 5.0.5 - rewrote specfile a bunch (not calling ./INSTALL anymore) * Thu Mar 2 2000 Pierre Scotney - created acroread-gnome-menus and acroread-kde-menus packages * Thu Feb 24 2000 Troy Engel - upgraded to 4.05 - removed libc5 packaging - placed app-defaults in system location - added new doc files - reorganized and commented spec file - clean up better * Wed Nov 10 1999 Troy Engel - added KDE customizations - moved symlinks to (un)install scripts - changed to first RH 6 release (non-mdk) - added Vendor/Packager tags, changed Copyright tag * Sat Sep 11 1999 Giuseppe Ghibò - minor cosmetic changes in spec file. - added libc5 plugin. * Fri Aug 20 1999 Giuseppe Ghibò - removed trailing blanks in file WebLink. * Sat Aug 14 1999 Giuseppe Ghibò - updated to Acrobat Reader 4.0 - fixed bug for acrobat plugin with glibc2 netscape. - strip binaries - added WebLink file. * Wed Jul 14 1999 Giuseppe Ghibò - initial SPEC file.