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.8 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.8/enu/AdbeRdr708_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 31 Source7: libz.so.1-sparc-5.11.49.bz2 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 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 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 164 * Mon Apr 02 2007 - dermot.mccluskey@sun.com 165 - add a private copy of libz to acroread 166 * Fri Nov 24 2006 - darren.kenny@sun.com 167 - Create link for the .desktop file and the icon for it. 168 * Tue Jul 04 2006 - dermot.mccluskey@sun.com 169 - Up-revved to 7.0.8 and overwrite provided acroread script with version 170 that supports the Asian LANGs 171 * Wed May 10 2006 - dave.lin@sun.com 172 - change the plugin dir to /usr/lib/firefox/plugins since firefox move 173 from /usr/sfw/lib to /usr/lib 174 * Wed Nov 02 2005 - damien.carbery@sun.com 175 - Copy in v7 changes from JDS3.1 branch. 176 * Thu Oct 20 2005 - damien.carbery@sun.com 177 - Change mozilla references to firefox. 178 * Mon Oct 10 2005 - damien.carbery@sun.com 179 - Add symlink in /usr/sfw/bin for backward compatability. Fixes 6300634. 180 * Thu Aug 25 2005 - dermotm.mccluskey@sun.com 181 - move to version 7.0.1 - need to re-write prep and install sections 182 * Mon Dec 20 2004 - dermotm.mccluskey@sun.com 183 - bump to 5.0.10 184 directory structure of tarballs changed slightly 185 * Fri Nov 26 2004 - laca@sun.com 186 - Removed jds-integration dependency 187 * Fri Nov 12 2004 - laca@sun.com 188 - add jds-integration dependency 189 * Wed Nov 10 2004 - damien.carbery@sunc.com 190 - Fix for 5089858 - add Asian font packages. 191 * Tue Oct 05 2004 - shirley.woo@sun.com 192 - CR 6174047 : moved acroread to install to /usr/sfw 193 Bug 5110289 : changed plugin link to be relative for solaris 194 * Mon Aug 16 2004 - dermotm.mccluskey@sun.com 195 - parameterize platform_browser_dir 196 * Fri Aug 06 2004 - dermotm.mccluskey@sun.com 197 - initial version 198