# # rpm spec for adobe acrobat reader # %define instdir Acrobat5 %define plugin nppdf.so %define plugsrc %{instdir}/Browsers/intellinux %define plugdst firefox/plugins %define debug_package %{nil} Summary: Adobe's own Portable Document Format (PDF) viewer Vendor: Adobe Systems Incorporated Name: acroread Version: 5.0.10 Release: 1 License: Commercial Group: Applications/Publishing Packager: Paul Heinlein URL: http://www.adobe.com/products/acrobat/readstep2.html Source: linux-5010.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Adobe Acrobat Reader is free software that lets you view and print Adobe Portable Document Format (PDF) files. With Acrobat Reader, you can also fill in and submit Adobe PDF forms online. %changelog * Sat Mar 5 2005 Paul Heinlein 5.0.10-1 - new upstream version - adobe altered its versioning a bit; the number is now explicitly 5.0.x. - explicitly stop building debug package * Fri Jun 18 2004 Paul Heinlein 5.09-1 - new upstream version - build for fedora core using firefox, not mozilla * Mon Oct 27 2003 Bob Drzyzgula - updated for version 5.08 - inserted 'export LANG=C' into acroread script * Fri Jul 25 2003 Paul Heinlein - updated for version 5.07 - added mozilla plugin symlink * Wed Sep 25 2002 Galen Seitz - updated for version 5.06 * Mon Sep 16 2002 Paul Heinlein - added changelog * Tue May 28 2002 Paul Heinlein - fixed the sed op on the wrapper script - updated for version 5 * Wed May 15 2002 Paul Heinlein - first revision %prep %setup -q -n installers %build %install [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} # all the stuff from these tarballs is ready to install as-is ... install -d %{buildroot}%{_libdir}/%{instdir} tar -x -C %{buildroot}%{_libdir}/%{instdir} -f LINUXRDR.TAR tar -x -C %{buildroot}%{_libdir}/%{instdir} -f COMMON.TAR # ... except the wrapper script, which needs to have the installation # directory grafted into it. install -d %{buildroot}%{_prefix}/bin sed "s!^install_dir=REPLACE_ME!install_dir=%{_libdir}/%{instdir}/Reader\nexport LANG=C!" \ < %{buildroot}%{_libdir}/%{instdir}/bin/acroread.sh \ > %{buildroot}%{_bindir}/acroread chmod 0755 %{buildroot}%{_bindir}/acroread # oh, and users find it nice to have the plugin # easily found by their browser :-) install -d %{buildroot}%{_libdir}/%{plugdst} ln -s ../../%{plugsrc}/%{plugin} %{buildroot}%{_libdir}/%{plugdst} %clean [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc LICREAD.TXT README %{_bindir}/acroread %{_libdir}/%{instdir} %{_libdir}/%{plugdst}/%{plugin} ### ### eof ###