215 lines
6.2 KiB
RPMSpec
215 lines
6.2 KiB
RPMSpec
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 <<EOF
|
|
*LinkDisplay: CTRL
|
|
*OpenURL: NO
|
|
*IsMapped: NO
|
|
*Progress: NO
|
|
*Toolbar: YES
|
|
*SelectedBrowser: /usr/bin/netscape
|
|
*SelectedDriver: Netscape
|
|
EOF
|
|
|
|
# GNOME link
|
|
cat > %{buildroot}/etc/X11/applnk/Applications/acroread.desktop <<EOF
|
|
[Desktop Entry]
|
|
Name=Acrobat Reader
|
|
Comment=Views Adobe PDF files
|
|
Exec=acroread
|
|
Icon=/usr/share/pixmaps/acroread.png
|
|
Terminal=0
|
|
Type=Applications
|
|
EOF
|
|
|
|
# KDE link
|
|
cat > %{buildroot}/usr/share/applnk/Applications/acroread.kdelnk <<EOF
|
|
# KDE Config File
|
|
[KDE Desktop Entry]
|
|
Name=Acrobat Reader
|
|
Comment=Views Adobe PDF files
|
|
Exec=acroread
|
|
Icon=acroread.xpm
|
|
MinIcon=acroread.xpm
|
|
Terminal=0
|
|
Type=Application
|
|
EOF
|
|
|
|
# App-Defaults
|
|
install -m 644 \
|
|
%{buildroot}%{acroinstall}/Reader/intellinux/app-defaults/AcroRead \
|
|
%{buildroot}/usr/X11R6/lib/X11/app-defaults
|
|
install -m 644 \
|
|
%{buildroot}%{acroinstall}/Reader/intellinux/app-defaults/WebLink \
|
|
%{buildroot}/usr/X11R6/lib/X11/app-defaults
|
|
|
|
%post
|
|
ln -sf %{acroinstall}/bin/acroread /usr/bin/acroread
|
|
|
|
%preun
|
|
rm -f /usr/bin/acroread
|
|
|
|
%clean
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
[ "%{acroroot}" != "/" ] && rm -rf %{acroroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICREAD.TXT MANIFEST README
|
|
%{acroinstall}
|
|
/usr/X11R6/lib/X11/app-defaults/AcroRead
|
|
/usr/X11R6/lib/X11/app-defaults/WebLink
|
|
|
|
%files nppdf-netscape
|
|
%attr(755,root,root) /usr/lib/netscape/plugins/nppdf.so
|
|
|
|
%files nppdf-mozilla
|
|
%attr(755,root,root) /usr/lib/mozilla/plugins/nppdf.so
|
|
|
|
%files gnome-menus
|
|
%defattr(-,root,root)
|
|
/usr/share/pixmaps/acroread.png
|
|
/etc/X11/applnk/Applications/acroread.desktop
|
|
|
|
%files kde-menus
|
|
%defattr(-,root,root)
|
|
/usr/share/icons/acroread.xpm
|
|
/usr/share/icons/mini/acroread.xpm
|
|
/usr/share/applnk/Applications/acroread.kdelnk
|
|
|
|
%changelog
|
|
* Thu Dec 12 2002 Troy Engel <tengel@sonic.net>
|
|
- upgraded to 5.0.6
|
|
|
|
* Sun Oct 13 2002 Chad Remesch <chad@amrl.uakron.edu>
|
|
- 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 <tengel@sonic.net>
|
|
- upgraded to 5.0.5
|
|
- rewrote specfile a bunch (not calling ./INSTALL anymore)
|
|
|
|
* Thu Mar 2 2000 Pierre Scotney <pierre@mail.medstv.unimelb.edu.au>
|
|
- created acroread-gnome-menus and acroread-kde-menus packages
|
|
|
|
* Thu Feb 24 2000 Troy Engel <tengel@sonic.net>
|
|
- 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 <tengel@sonic.net>
|
|
- 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� <ghibo@linux-mandrake.com>
|
|
- minor cosmetic changes in spec file.
|
|
- added libc5 plugin.
|
|
|
|
* Fri Aug 20 1999 Giuseppe Ghib� <ghibo@linux-mandrake.com>
|
|
- removed trailing blanks in file WebLink.
|
|
|
|
* Sat Aug 14 1999 Giuseppe Ghib� <ghibo@linux-mandrake.com>
|
|
- 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� <ghibo@linux-mandrake.com>
|
|
- initial SPEC file.
|