# These should match the install dirs in the patched INSTALL file %define tempdir /var/tmp/Acrobat5-root %define installdir /usr/local/AcrobatReader %define bindir /usr/local/bin %define prog_ver 507 Summary: The Adobe Acrobat Reader program Name: AcrobatReader Version: 5.0.7 Release: 2 License: Proprietary Group: Applications/Graphics URL: http://www.adobe.com/products/acrobat/readstep2.html Source: linux-%{prog_ver}.tar.gz Source1: AcrobatReader.desktop Packager: Tim Jackson BuildRoot: /var/tmp/%{name}-root Patch0: AcrobatReader-INSTALL.patch %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. And now, Acrobat Reader for mobile devices lets you view Adobe PDF files on the go. %prep rm -rf %{name}-%{version} mkdir %{name}-%{version} cd %{name}-%{version} tar -zxf $RPM_SOURCE_DIR/linux-%{prog_ver}.tar.gz %patch0 -p0 ./INSTALL %build %install cd %{name}-%{version} # Set perms on library files chmod a+x %{tempdir}/Reader/intellinux/lib/* # Install the stuff mkdir -p $RPM_BUILD_ROOT%{installdir} cp -pr %{tempdir}/* $RPM_BUILD_ROOT%{installdir}/ # Move the run-script into a more sensible place mkdir -p $RPM_BUILD_ROOT%{bindir} mv $RPM_BUILD_ROOT%{installdir}/bin/acroread $RPM_BUILD_ROOT%{bindir} rm -rf $RPM_BUILD_ROOT%{installdir}/bin # Install the icon mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/ %clean rm -rf $RPM_BUILD_ROOT rm -rf %{tempdir} %files %defattr(-,root,root) %doc %{name}-%{version}/LICREAD.TXT %{name}-%{version}/README %{_datadir}/applications/AcrobatReader.desktop %dir /usr/local/AcrobatReader /usr/local/AcrobatReader/* /usr/local/bin/acroread