From f016d8a7d10115c564564daf1d6b315877064681 Mon Sep 17 00:00:00 2001 From: tengel Date: Wed, 20 Mar 2024 09:19:01 -0500 Subject: [PATCH] adding acroread --- acroread/acroread-5.0.5-1.spec | 192 +++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 acroread/acroread-5.0.5-1.spec diff --git a/acroread/acroread-5.0.5-1.spec b/acroread/acroread-5.0.5-1.spec new file mode 100644 index 0000000..ae0fd13 --- /dev/null +++ b/acroread/acroread-5.0.5-1.spec @@ -0,0 +1,192 @@ +Summary: Adobe Acrobat Reader +Name: acroread +Version: 5.0.5 +Release: 1 +Group: Applications/Publishing +Copyright: Freely Distributable +Vendor: Adobe Systems Incorporated +Source0: ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/linux-505.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 +Summary: Adobe Acrobat Reader Netscape plugin +Group: X11/Applications/Graphics +Requires: acroread, netscape-common + +%description nppdf +A plugin to view Adobe PDF files into netscape. + +%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,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 + +# 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 plugin +cd %{buildroot}%{acroinstall}/Browsers/intellinux +strip -s nppdf.so %{buildroot}%{acroinstall}/Reader/intellinux/bin/acroread +mv -f nppdf.so %{buildroot}/usr/lib/netscape/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.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.