9397
|
1 |
#
|
11488
|
2 |
# Copyright (c) 2008 Sun Microsystems Inc.
|
9397
|
3 |
# This file and all modifications and additions to the pristine
|
|
4 |
# package are under the same license as the package itself.
|
|
5 |
#
|
|
6 |
# Owner: dermot
|
|
7 |
#
|
|
8 |
Name: acroread
|
|
9 |
License: Commercial
|
|
10 |
Group: Applications/Multimedia
|
|
11 |
Provides: acroread
|
12006
|
12 |
Version: 8.1.2
|
9397
|
13 |
Release: 1
|
|
14 |
Distribution: Java Desktop System
|
|
15 |
Vendor: Sun Microsystems, Inc.
|
|
16 |
Summary: Acrobat Reader for PDF files
|
|
17 |
URL: http://www.adobe.com/
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
Docdir: %{_defaultdocdir}/doc
|
|
20 |
Autoreqprov: no
|
|
21 |
PreReq: firefox
|
|
22 |
|
12006
|
23 |
|
|
24 |
Source: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/enu/AdobeReader_enu-8.1.2-1.sparc.tar.gz
|
|
25 |
Source1: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/jpn/AdobeReader_jpn-8.1.2-1.sparc.tar.gz
|
|
26 |
Source2: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_chs_sparc-solaris.tar.gz
|
|
27 |
Source3: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_cht_sparc-solaris.tar.gz
|
|
28 |
Source4: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_kor_sparc-solaris.tar.gz
|
9397
|
29 |
Source5: l10n-configure.sh
|
|
30 |
Source6: acroread-combined-langs
|
11488
|
31 |
Source7: acroread-reader_prefs
|
|
32 |
|
|
33 |
%define adobe_base_dir %{_libdir}/AdobeReader
|
|
34 |
%define adobe_doc_dir %{adobe_base_dir}/doc/acroread
|
9397
|
35 |
%define plugin_dir %{_libdir}/firefox/plugins
|
11488
|
36 |
%define plugin_link_target ../../AdobeReader/Adobe/Reader8/Browser/sparcsolaris/nppdf.so
|
9397
|
37 |
|
|
38 |
|
|
39 |
%description
|
|
40 |
Acrobat reader for PDF files
|
|
41 |
|
|
42 |
|
|
43 |
%prep
|
|
44 |
%setup -q -c -n %{name}-%{version}
|
|
45 |
|
11488
|
46 |
mkdir jpn
|
|
47 |
cd jpn
|
|
48 |
gunzip -c %SOURCE1 | tar xf -
|
|
49 |
cd ..
|
|
50 |
|
9397
|
51 |
mkdir chs
|
|
52 |
cd chs
|
11488
|
53 |
gunzip -c %SOURCE2 | tar xf -
|
9397
|
54 |
cd ..
|
|
55 |
|
|
56 |
mkdir cht
|
|
57 |
cd cht
|
|
58 |
gunzip -c %SOURCE3 | tar xf -
|
|
59 |
cd ..
|
|
60 |
|
|
61 |
mkdir kor
|
|
62 |
cd kor
|
|
63 |
gunzip -c %SOURCE4 | tar xf -
|
|
64 |
cd ..
|
|
65 |
|
|
66 |
bash -x %SOURCE5
|
|
67 |
|
|
68 |
|
|
69 |
%install
|
|
70 |
rm -rf $RPM_BUILD_ROOT
|
11488
|
71 |
install -d ${RPM_BUILD_ROOT}%{adobe_base_dir}
|
9397
|
72 |
|
12006
|
73 |
# From the Asian font packs (chs, cht, kor), extract one of the LANGCOM.TAR
|
|
74 |
# files (they are all identical) and each of the other LANG*.TAR files.
|
|
75 |
# This gives us the localized font and cmap files.
|
|
76 |
# Files in common with the tarballs for the full Janapese and English releases
|
|
77 |
# get overwritten by later commands.
|
11488
|
78 |
|
9397
|
79 |
cd chs/AdobeReader
|
12006
|
80 |
cat LANGCOM.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf - )
|
|
81 |
cat LANGCHS.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf - )
|
9397
|
82 |
cd ../..
|
11488
|
83 |
|
9397
|
84 |
cd cht/AdobeReader
|
12006
|
85 |
cat LANGCHS.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf - )
|
9397
|
86 |
cd ../..
|
11488
|
87 |
|
|
88 |
cd kor/AdobeReader
|
12006
|
89 |
cat LANGKOR.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf - )
|
11488
|
90 |
cd ../..
|
|
91 |
|
|
92 |
# From the SPARC Solaris releases (jpn and enu), just extract all the files
|
|
93 |
# (over-writting any common files as we go).
|
|
94 |
|
9397
|
95 |
cd jpn/AdobeReader
|
11488
|
96 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf -)
|
|
97 |
cat SSOLR.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf -)
|
9397
|
98 |
cd ../..
|
|
99 |
|
|
100 |
cd AdobeReader
|
11488
|
101 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf -)
|
|
102 |
cat SSOLR.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf -)
|
|
103 |
cd ..
|
|
104 |
|
|
105 |
# overwrite distributed script with new ver that supports all langs
|
|
106 |
install --mode=0755 %SOURCE6 ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Reader8/bin/acroread
|
9397
|
107 |
|
11488
|
108 |
cd AdobeReader
|
|
109 |
install -d ${RPM_BUILD_ROOT}%{adobe_doc_dir}
|
|
110 |
install --mode=0644 ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Reader8/Reader/Legal/en_US/License.txt \
|
|
111 |
${RPM_BUILD_ROOT}%{adobe_doc_dir}
|
|
112 |
install --mode=0644 ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Reader8/Reader/help/ENU/ReadMe.htm \
|
|
113 |
${RPM_BUILD_ROOT}%{adobe_doc_dir}
|
|
114 |
|
|
115 |
# make a link to the executable acroread script from /usr/bin
|
|
116 |
install -d ${RPM_BUILD_ROOT}%{_bindir}
|
|
117 |
cd ${RPM_BUILD_ROOT}%{_libdir}/AdobeReader/Adobe/Reader8/bin
|
9397
|
118 |
cd ${RPM_BUILD_ROOT}%{_prefix}/bin
|
11488
|
119 |
ln -s ../lib/AdobeReader/Adobe/Reader8/bin/acroread .
|
|
120 |
|
9397
|
121 |
# Make link in /usr/sfw/bin for backward compatability with prev acroread ver.
|
|
122 |
install -d ${RPM_BUILD_ROOT}%{_prefix}/sfw/bin
|
|
123 |
cd ${RPM_BUILD_ROOT}%{_prefix}/sfw/bin
|
11488
|
124 |
ln -s ../../lib/AdobeReader/Adobe/Reader8/bin/acroread .
|
|
125 |
|
|
126 |
# Make a link for the .desktop file
|
|
127 |
install -d ${RPM_BUILD_ROOT}%{_datadir}/applications
|
|
128 |
cd ${RPM_BUILD_ROOT}%{_datadir}/applications
|
|
129 |
ln -s ../../lib/AdobeReader/Adobe/Reader8/Resource/Support/AdobeReader.desktop acroread.desktop
|
|
130 |
|
|
131 |
# Make links for the hicolor theme icons
|
|
132 |
install -d ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor
|
|
133 |
cd ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor
|
|
134 |
for f in `cd ../../../lib/AdobeReader/Adobe/Reader8/Resource/Icons/; /bin/ls -d *x*`
|
9397
|
135 |
do
|
11488
|
136 |
install -d ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/$f/apps
|
|
137 |
ln -s ../../../../../lib/AdobeReader/Adobe/Reader8/Resource/Icons/$f/AdobeReader8.png ./$f/apps
|
9397
|
138 |
done
|
|
139 |
|
11488
|
140 |
# Make a link for the Firefox plugin
|
9397
|
141 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{plugin_dir}
|
|
142 |
ln -s %{plugin_link_target} ${RPM_BUILD_ROOT}%{plugin_dir}/nppdf.so
|
|
143 |
|
11488
|
144 |
# Overwrite the default global preferences file.
|
|
145 |
# New file turns off BeyondReader startup screen (which would fail
|
|
146 |
# anyway as the libgtkembedmoz dir has not been defined)
|
|
147 |
install --mode=0644 %SOURCE7 ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Reader8/Reader/GlobalPrefs/reader_prefs
|
|
148 |
|
|
149 |
|
|
150 |
# This is Yuk! This and the %post (and %preun) scripts are needed
|
|
151 |
# because we cannot handle paths with spaces in SVr4 pkgs
|
|
152 |
cd ${RPM_BUILD_ROOT}%{adobe_base_dir}/Adobe/Help
|
|
153 |
mv "en_US/Adobe Reader" en_US/Adobe_Reader
|
|
154 |
mv "ja_JP/Adobe Reader" ja_JP/Adobe_Reader
|
9742
|
155 |
|
9397
|
156 |
|
|
157 |
%clean
|
|
158 |
rm -rf $RPM_BUILD_ROOT
|
|
159 |
|
|
160 |
|
|
161 |
%files
|
|
162 |
%defattr(-,root,root)
|
11488
|
163 |
%{_bindir}/acroread
|
9397
|
164 |
%{plugin_dir}/nppdf.so
|
11488
|
165 |
%{adobe_base_dir}
|
9397
|
166 |
|
|
167 |
%changelog
|
12006
|
168 |
* Wed Apr 02 2008 - [email protected]
|
|
169 |
- Bump to 8.1.2
|
11488
|
170 |
* Fri Jan 18 2008 - [email protected]
|
|
171 |
- Up-revved to 8.1.1
|
9742
|
172 |
* Fri Apr 13 2007 - [email protected]
|
|
173 |
- add a private copy of libz to acroread
|
9397
|
174 |
* Tue Feb 20 2007 - [email protected]
|
|
175 |
- Up-revved to 7.0.9 due to Adobe security alert
|
|
176 |
* Fri Nov 24 2006 - [email protected]
|
|
177 |
- Create link for the .desktop file and the icon for it.
|
|
178 |
* Tue Jul 04 2006 - [email protected]
|
|
179 |
- Up-revved to 7.0.8 and overwrite provided acroread script with version
|
|
180 |
that supports the Asian LANGs
|
|
181 |
* Wed May 10 2006 - [email protected]
|
|
182 |
- change the plugin dir to /usr/lib/firefox/plugins since firefox move
|
|
183 |
from /usr/sfw/lib to /usr/lib
|
|
184 |
* Wed Nov 02 2005 - [email protected]
|
|
185 |
- Copy in v7 changes from JDS3.1 branch.
|
|
186 |
* Thu Oct 20 2005 - [email protected]
|
|
187 |
- Change mozilla references to firefox.
|
|
188 |
* Mon Oct 10 2005 - [email protected]
|
|
189 |
- Add symlink in /usr/sfw/bin for backward compatability. Fixes 6300634.
|
|
190 |
* Thu Aug 25 2005 - [email protected]
|
|
191 |
- move to version 7.0.1 - need to re-write prep and install sections
|
|
192 |
* Mon Dec 20 2004 - [email protected]
|
|
193 |
- bump to 5.0.10
|
|
194 |
directory structure of tarballs changed slightly
|
|
195 |
* Fri Nov 26 2004 - [email protected]
|
|
196 |
- Removed jds-integration dependency
|
|
197 |
* Fri Nov 12 2004 - [email protected]
|
|
198 |
- add jds-integration dependency
|
|
199 |
* Wed Nov 10 2004 - [email protected]
|
|
200 |
- Fix for 5089858 - add Asian font packages.
|
|
201 |
* Tue Oct 05 2004 - [email protected]
|
|
202 |
- CR 6174047 : moved acroread to install to /usr/sfw
|
|
203 |
Bug 5110289 : changed plugin link to be relative for solaris
|
|
204 |
* Mon Aug 16 2004 - [email protected]
|
|
205 |
- parameterize platform_browser_dir
|
|
206 |
* Fri Aug 06 2004 - [email protected]
|
|
207 |
- initial version
|