#
# Copyright (c) 2008 Sun Microsystems Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
Release: 1
Source: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/%{version}/enu/AdobeReader_enu-%{version}-1.sparc.tar.gz
Source1: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/%{version}/jpn/AdobeReader_jpn-%{version}-1.sparc.tar.gz
Source2: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_chs_sparc-solaris.tar.gz
Source3: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_cht_sparc-solaris.tar.gz
Source4: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_kor_sparc-solaris.tar.gz
%prep
cd jpn
cd ..
cd chs
cd ..
cd cht
cd ..
cd kor
cd ..
# From the Asian font packs (chs, cht, kor), extract one of the LANGCOM.TAR
# files (they are all identical) and each of the other LANG*.TAR files.
# This gives us the localized font and cmap files.
# Files in common with the tarballs for the full Janapese and English releases
# get overwritten by later commands.
cd ../..
cd ../..
cd ../..
# From the SPARC Solaris releases (jpn and enu), just extract all the files
# (over-writting any common files as we go).
cd jpn/AdobeReader
cd ../..
cd AdobeReader
cd ..
# overwrite distributed script with new ver that supports all langs
cd AdobeReader
install --mode=0644 ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Reader8/Reader/Legal/en_US/License.txt \
# Make a link for the .desktop file
# Make links for the hicolor theme icons
do
done
# Make a link for the Firefox plugin
# Overwrite the default global preferences file.
# New file turns off BeyondReader startup screen (which would fail
# anyway as the libgtkembedmoz dir has not been defined)
install --mode=0644 %SOURCE7 ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Reader8/Reader/GlobalPrefs/reader_prefs
# This is Yuk! This and the %post (and %preun) scripts are needed
# because we cannot handle paths with spaces in SVr4 pkgs