author | convert-repo |
Tue, 28 Sep 2010 11:41:29 +0000 | |
changeset 20122 | 34a34bffcb68 |
parent 17881 | 1eaaaad29d9a |
permissions | -rw-r--r-- |
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 |
# |
|
16434 | 6 |
%define owner dermot |
9397 | 7 |
# |
17842 | 8 |
|
9 |
%define OSR LFI#161758:n/a |
|
10 |
||
9397 | 11 |
Name: acroread |
12 |
License: Commercial |
|
13 |
Group: Applications/Multimedia |
|
14 |
Provides: acroread |
|
16823 | 15 |
Version: 8.1.7 |
9397 | 16 |
Release: 1 |
17 |
Distribution: Java Desktop System |
|
17881 | 18 |
Vendor: Adobe |
9397 | 19 |
Summary: Acrobat Reader for PDF files |
20 |
URL: http://www.adobe.com/ |
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
22 |
Docdir: %{_defaultdocdir}/doc |
|
23 |
Autoreqprov: no |
|
24 |
PreReq: firefox |
|
25 |
||
12006 | 26 |
|
15764 | 27 |
Source: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/%{version}/enu/AdobeReader_enu-%{version}-1.sparc.tar.gz |
28 |
Source1: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/%{version}/jpn/AdobeReader_jpn-%{version}-1.sparc.tar.gz |
|
12006 | 29 |
Source2: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_chs_sparc-solaris.tar.gz |
30 |
Source3: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_cht_sparc-solaris.tar.gz |
|
31 |
Source4: http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/misc/FontPack81_kor_sparc-solaris.tar.gz |
|
9397 | 32 |
Source6: acroread-combined-langs |
11488 | 33 |
Source7: acroread-reader_prefs |
34 |
||
35 |
%define adobe_base_dir %{_libdir}/AdobeReader |
|
36 |
%define adobe_doc_dir %{adobe_base_dir}/doc/acroread |
|
9397 | 37 |
%define plugin_dir %{_libdir}/firefox/plugins |
11488 | 38 |
%define plugin_link_target ../../AdobeReader/Adobe/Reader8/Browser/sparcsolaris/nppdf.so |
9397 | 39 |
|
40 |
||
41 |
%description |
|
42 |
Acrobat reader for PDF files |
|
43 |
||
44 |
||
45 |
%prep |
|
46 |
%setup -q -c -n %{name}-%{version} |
|
47 |
||
11488 | 48 |
mkdir jpn |
49 |
cd jpn |
|
50 |
gunzip -c %SOURCE1 | tar xf - |
|
51 |
cd .. |
|
52 |
||
9397 | 53 |
mkdir chs |
54 |
cd chs |
|
11488 | 55 |
gunzip -c %SOURCE2 | tar xf - |
9397 | 56 |
cd .. |
57 |
||
58 |
mkdir cht |
|
59 |
cd cht |
|
60 |
gunzip -c %SOURCE3 | tar xf - |
|
61 |
cd .. |
|
62 |
||
63 |
mkdir kor |
|
64 |
cd kor |
|
65 |
gunzip -c %SOURCE4 | tar xf - |
|
66 |
cd .. |
|
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 |
|
12007 | 79 |
cd chs/CHSKIT |
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 |
|
12007 | 84 |
cd cht/CHTKIT |
85 |
cat LANGCHT.TAR | (cd ${RPM_BUILD_ROOT}%{adobe_base_dir}; tar xvf - ) |
|
9397 | 86 |
cd ../.. |
11488 | 87 |
|
12007 | 88 |
cd kor/KORKIT |
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 |
|
16823 | 168 |
* Tue Oct 20 2009 - [email protected] |
169 |
- Bump to 8.1.6 as fix for 6891381 |
|
15979
0dadad8ab984
6854786 APSA09-07: buffer overflow vulnerabilities that could allow a remote attacker to run arbitrary code
an230044
parents:
15764
diff
changeset
|
170 |
* Tue June 30 2009 - [email protected] |
0dadad8ab984
6854786 APSA09-07: buffer overflow vulnerabilities that could allow a remote attacker to run arbitrary code
an230044
parents:
15764
diff
changeset
|
171 |
- Bump to 8.1.6 |
15763 | 172 |
* Thu May 14 2009 - [email protected] |
173 |
- Bump to 8.1.5 |
|
15622 | 174 |
* Wed Apr 15 2009 - [email protected] |
175 |
- Bump to 8.1.4 |
|
14728 | 176 |
* Mon Dec 08 2008 - [email protected] |
177 |
- Bump to 8.1.3 |
|
12885 | 178 |
* Tue Jul 22 2008 - [email protected] |
179 |
- Bump to 8.1.2_SU1 |
|
12006 | 180 |
* Wed Apr 02 2008 - [email protected] |
181 |
- Bump to 8.1.2 |
|
11488 | 182 |
* Fri Jan 18 2008 - [email protected] |
183 |
- Up-revved to 8.1.1 |
|
9742 | 184 |
* Fri Apr 13 2007 - [email protected] |
185 |
- add a private copy of libz to acroread |
|
9397 | 186 |
* Tue Feb 20 2007 - [email protected] |
187 |
- Up-revved to 7.0.9 due to Adobe security alert |
|
188 |
* Fri Nov 24 2006 - [email protected] |
|
189 |
- Create link for the .desktop file and the icon for it. |
|
190 |
* Tue Jul 04 2006 - [email protected] |
|
191 |
- Up-revved to 7.0.8 and overwrite provided acroread script with version |
|
192 |
that supports the Asian LANGs |
|
193 |
* Wed May 10 2006 - [email protected] |
|
194 |
- change the plugin dir to /usr/lib/firefox/plugins since firefox move |
|
195 |
from /usr/sfw/lib to /usr/lib |
|
196 |
* Wed Nov 02 2005 - [email protected] |
|
197 |
- Copy in v7 changes from JDS3.1 branch. |
|
198 |
* Thu Oct 20 2005 - [email protected] |
|
199 |
- Change mozilla references to firefox. |
|
200 |
* Mon Oct 10 2005 - [email protected] |
|
201 |
- Add symlink in /usr/sfw/bin for backward compatability. Fixes 6300634. |
|
202 |
* Thu Aug 25 2005 - [email protected] |
|
203 |
- move to version 7.0.1 - need to re-write prep and install sections |
|
204 |
* Mon Dec 20 2004 - [email protected] |
|
205 |
- bump to 5.0.10 |
|
206 |
directory structure of tarballs changed slightly |
|
207 |
* Fri Nov 26 2004 - [email protected] |
|
208 |
- Removed jds-integration dependency |
|
209 |
* Fri Nov 12 2004 - [email protected] |
|
210 |
- add jds-integration dependency |
|
211 |
* Wed Nov 10 2004 - [email protected] |
|
212 |
- Fix for 5089858 - add Asian font packages. |
|
213 |
* Tue Oct 05 2004 - [email protected] |
|
214 |
- CR 6174047 : moved acroread to install to /usr/sfw |
|
215 |
Bug 5110289 : changed plugin link to be relative for solaris |
|
216 |
* Mon Aug 16 2004 - [email protected] |
|
217 |
- parameterize platform_browser_dir |
|
218 |
* Fri Aug 06 2004 - [email protected] |
|
219 |
- initial version |