9397
|
1 |
#
|
|
2 |
# Copyright (c) 2005 Sun Microsystems Inc.
|
|
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
|
|
12 |
Version: 7.0.9
|
|
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 |
|
|
23 |
%ifos solaris
|
|
24 |
Source: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.9/enu/AdbeRdr709_solaris_enu.tar.gz
|
|
25 |
Source1: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/chs/AdobeReader_chs-7.0.5-1.i386.tar.gz
|
|
26 |
Source2: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/cht/AdobeReader_cht-7.0.5-1.i386.tar.gz
|
|
27 |
Source3: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/jpn/AdobeReader_jpn-7.0.5-1.i386.tar.gz
|
|
28 |
Source4: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/kor/AdobeReader_kor-7.0.5-1.i386.tar.gz
|
|
29 |
Source5: l10n-configure.sh
|
|
30 |
Source6: acroread-combined-langs
|
9742
|
31 |
Source7: libz.so.1-sparc-5.11.49.bz2
|
9397
|
32 |
%define acro_dir AdobeReader
|
|
33 |
%define base_install_dir %{_libdir}/%{acro_dir}
|
|
34 |
%define acrobin_dir %{_bindir}
|
|
35 |
%define desktop_apps_dir %{_datadir}/applications
|
|
36 |
%define hicolor_theme_dir %{_datadir}/icons/hicolor
|
|
37 |
%define plugin_dir %{_libdir}/firefox/plugins
|
|
38 |
%define acrodoc_dir %{base_install_dir}/doc/%{name}
|
|
39 |
%define platform_acro_file SSOLR.TAR
|
|
40 |
%define platform_browser_dir sparcsolaris
|
|
41 |
%define plugin_link_target ../../%{acro_dir}/Browser/%{platform_browser_dir}/nppdf.so
|
|
42 |
%else
|
|
43 |
Source: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.8/enu/AdobeReader_enu-7.0.8-1.i386.tar.gz
|
|
44 |
Source1: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/chs/AdobeReader_chs-7.0.5-1.i386.tar.gz
|
|
45 |
Source2: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/cht/AdobeReader_cht-7.0.5-1.i386.tar.gz
|
|
46 |
Source3: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/jpn/AdobeReader_jpn-7.0.5-1.i386.tar.gz
|
|
47 |
Source4: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/kor/AdobeReader_kor-7.0.5-1.i386.tar.gz
|
|
48 |
Source5: l10n-configure.sh
|
|
49 |
Source6: acroread-combined-langs
|
|
50 |
%define acro_dir AdobeReader
|
|
51 |
%define base_install_dir %{_prefix}/X11R6/lib/%{acro_dir}
|
|
52 |
%define acrobin_dir %{_prefix}/X11R6/bin
|
|
53 |
%define plugin_dir %{_libdir}/firefox/plugins
|
|
54 |
%define acrodoc_dir %{_defaultdocdir}/%{name}
|
|
55 |
%define platform_acro_file ILINXR.TAR
|
|
56 |
%define platform_browser_dir intellinux
|
|
57 |
%define plugin_link_target %{base_install_dir}/Browser/%{platform_browser_dir}/nppdf.so
|
|
58 |
%endif
|
|
59 |
|
|
60 |
|
|
61 |
%description
|
|
62 |
Acrobat reader for PDF files
|
|
63 |
|
|
64 |
|
|
65 |
%prep
|
|
66 |
%setup -q -c -n %{name}-%{version}
|
|
67 |
|
|
68 |
mkdir chs
|
|
69 |
cd chs
|
|
70 |
gunzip -c %SOURCE1 | tar xf -
|
|
71 |
cd ..
|
|
72 |
|
|
73 |
mkdir cht
|
|
74 |
cd cht
|
|
75 |
gunzip -c %SOURCE2 | tar xf -
|
|
76 |
cd ..
|
|
77 |
|
|
78 |
mkdir jpn
|
|
79 |
cd jpn
|
|
80 |
gunzip -c %SOURCE3 | tar xf -
|
|
81 |
cd ..
|
|
82 |
|
|
83 |
mkdir kor
|
|
84 |
cd kor
|
|
85 |
gunzip -c %SOURCE4 | tar xf -
|
|
86 |
cd ..
|
|
87 |
|
|
88 |
bash -x %SOURCE5
|
|
89 |
|
|
90 |
|
|
91 |
%install
|
|
92 |
rm -rf $RPM_BUILD_ROOT
|
|
93 |
install -d ${RPM_BUILD_ROOT}%{base_install_dir}
|
|
94 |
|
|
95 |
# Extract Asian font software
|
|
96 |
cd chs/AdobeReader
|
|
97 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{base_install_dir}; tar xvf -)
|
|
98 |
cd ../..
|
|
99 |
cd cht/AdobeReader
|
|
100 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{base_install_dir}; tar xvf -)
|
|
101 |
cd ../..
|
|
102 |
cd jpn/AdobeReader
|
|
103 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{base_install_dir}; tar xvf -)
|
|
104 |
cd ../..
|
|
105 |
cd kor/AdobeReader
|
|
106 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{base_install_dir}; tar xvf -)
|
|
107 |
cd ../..
|
|
108 |
cd AdobeReader
|
|
109 |
cat COMMON.TAR | (cd ${RPM_BUILD_ROOT}%{base_install_dir}; tar xvf -)
|
|
110 |
cat %{platform_acro_file} | (cd ${RPM_BUILD_ROOT}%{base_install_dir}; tar xvf -)
|
|
111 |
cd ..
|
|
112 |
# overwrite distributed script with new ver that supports all langs
|
|
113 |
install --mode=0755 %SOURCE6 ${RPM_BUILD_ROOT}%{base_install_dir}/bin/acroread
|
|
114 |
|
|
115 |
cd AdobeReader
|
|
116 |
install -d ${RPM_BUILD_ROOT}%{acrodoc_dir}
|
|
117 |
install --mode=0644 LICREAD.TXT ${RPM_BUILD_ROOT}%{acrodoc_dir}
|
|
118 |
install --mode=0644 ReadMe.htm ${RPM_BUILD_ROOT}%{acrodoc_dir}
|
|
119 |
|
|
120 |
# make a link to the executable acroread script from a $PATH directory (/usr/bin or /usr/X11R6/bin)
|
|
121 |
install -d ${RPM_BUILD_ROOT}%{acrobin_dir}
|
|
122 |
cd ${RPM_BUILD_ROOT}%{_libdir}/AdobeReader/bin
|
|
123 |
cd ${RPM_BUILD_ROOT}%{_prefix}/bin
|
|
124 |
ln -s ../lib/AdobeReader/bin/acroread .
|
|
125 |
%ifos solaris
|
|
126 |
# Make link in /usr/sfw/bin for backward compatability with prev acroread ver.
|
|
127 |
install -d ${RPM_BUILD_ROOT}%{_prefix}/sfw/bin
|
|
128 |
cd ${RPM_BUILD_ROOT}%{_prefix}/sfw/bin
|
|
129 |
ln -s ../../lib/AdobeReader/bin/acroread .
|
|
130 |
install -d ${RPM_BUILD_ROOT}%{desktop_apps_dir}
|
|
131 |
cd ${RPM_BUILD_ROOT}%{desktop_apps_dir}
|
|
132 |
ln -s ../../lib/AdobeReader/Resource/Support/AdobeReader_GNOME.desktop acroread.desktop
|
|
133 |
install -d ${RPM_BUILD_ROOT}%{hicolor_theme_dir}
|
|
134 |
cd ${RPM_BUILD_ROOT}%{hicolor_theme_dir}
|
|
135 |
for f in `cd ../../../lib/AdobeReader/Resource/Icons/; /bin/ls -d *x*`
|
|
136 |
do
|
|
137 |
install -d ${RPM_BUILD_ROOT}%{hicolor_theme_dir}/$f/apps
|
|
138 |
ln -s ../../../../../lib/AdobeReader/Resource/Icons/$f/AdobeReader.png ./$f/apps
|
|
139 |
done
|
|
140 |
%endif
|
|
141 |
|
|
142 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{plugin_dir}
|
|
143 |
ln -s %{plugin_link_target} ${RPM_BUILD_ROOT}%{plugin_dir}/nppdf.so
|
|
144 |
|
9742
|
145 |
# install a private copy of libz
|
|
146 |
cp %SOURCE7 ${RPM_BUILD_ROOT}%{_libdir}/AdobeReader/Reader/sparcsolaris/lib/libz.so.1.bz2
|
|
147 |
cd ${RPM_BUILD_ROOT}%{_libdir}/AdobeReader/Reader/sparcsolaris/lib
|
|
148 |
bunzip2 libz.so.1.bz2
|
|
149 |
chmod 0755 libz.so.1
|
|
150 |
|
9397
|
151 |
|
|
152 |
%clean
|
|
153 |
rm -rf $RPM_BUILD_ROOT
|
|
154 |
|
|
155 |
|
|
156 |
%files
|
|
157 |
%defattr(-,root,root)
|
|
158 |
%{base_install_dir}
|
|
159 |
%{acrobin_dir}/acroread
|
|
160 |
%{plugin_dir}/nppdf.so
|
|
161 |
%{acrodoc_dir}
|
|
162 |
|
|
163 |
%changelog
|
9742
|
164 |
* Fri Apr 13 2007 - [email protected]
|
|
165 |
- add a private copy of libz to acroread
|
9397
|
166 |
* Tue Feb 20 2007 - [email protected]
|
|
167 |
- Up-revved to 7.0.9 due to Adobe security alert
|
|
168 |
* Fri Nov 24 2006 - [email protected]
|
|
169 |
- Create link for the .desktop file and the icon for it.
|
|
170 |
* Tue Jul 04 2006 - [email protected]
|
|
171 |
- Up-revved to 7.0.8 and overwrite provided acroread script with version
|
|
172 |
that supports the Asian LANGs
|
|
173 |
* Wed May 10 2006 - [email protected]
|
|
174 |
- change the plugin dir to /usr/lib/firefox/plugins since firefox move
|
|
175 |
from /usr/sfw/lib to /usr/lib
|
|
176 |
* Wed Nov 02 2005 - [email protected]
|
|
177 |
- Copy in v7 changes from JDS3.1 branch.
|
|
178 |
* Thu Oct 20 2005 - [email protected]
|
|
179 |
- Change mozilla references to firefox.
|
|
180 |
* Mon Oct 10 2005 - [email protected]
|
|
181 |
- Add symlink in /usr/sfw/bin for backward compatability. Fixes 6300634.
|
|
182 |
* Thu Aug 25 2005 - [email protected]
|
|
183 |
- move to version 7.0.1 - need to re-write prep and install sections
|
|
184 |
* Mon Dec 20 2004 - [email protected]
|
|
185 |
- bump to 5.0.10
|
|
186 |
directory structure of tarballs changed slightly
|
|
187 |
* Fri Nov 26 2004 - [email protected]
|
|
188 |
- Removed jds-integration dependency
|
|
189 |
* Fri Nov 12 2004 - [email protected]
|
|
190 |
- add jds-integration dependency
|
|
191 |
* Wed Nov 10 2004 - [email protected]
|
|
192 |
- Fix for 5089858 - add Asian font packages.
|
|
193 |
* Tue Oct 05 2004 - [email protected]
|
|
194 |
- CR 6174047 : moved acroread to install to /usr/sfw
|
|
195 |
Bug 5110289 : changed plugin link to be relative for solaris
|
|
196 |
* Mon Aug 16 2004 - [email protected]
|
|
197 |
- parameterize platform_browser_dir
|
|
198 |
* Fri Aug 06 2004 - [email protected]
|
|
199 |
- initial version
|