3 %bcond_with license_agreement # generates package
5 %define base_name acroread
6 Summary: Acrobat Reader
7 Summary(pl): Acrobat Reader - czytnik plików PDF
8 Summary(ru): ðÒÏÇÒÁÍÍÁ ÄÌÑ ÞÔÅÎÉÑ ÄÏËÕÍÅÎÔÏ× × ÆÏÒÍÁÔÅ PDF ÏÔ Adobe
9 Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÞÉÔÁÎÎÑ ÄÏËÕÍÅÎÔ¦× Õ ÆÏÒÍÁÔ¦ PDF ×¦Ä Adobe
10 %if %{with license_agreement}
13 Name: %{base_name}-installer
17 Release: %{_rel}%{?with_license_agreement:wla}
19 License: distribution restricted (http://www.adobe.com/products/acrobat/distribute.html)
21 # - not distributable on public sites (only linking to adobe.com permitted)
22 # - distribution on CD requires signing Distribution Agreement (see URL above)
23 Group: X11/Applications/Graphics
24 %if %{with license_agreement}
25 Source0: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5/enu/AdobeReader_enu-%{version}-1.i386.tar.gz
27 Source0: license-installer.sh
29 # please update @COPYSOURCES@ below if you add more Sources.
30 Source1: %{base_name}.desktop
31 Source2: %{base_name}.png
32 URL: http://www.adobe.com/products/acrobat/
33 %if %{with license_agreement}
34 BuildRequires: rpmbuild(macros) >= 1.236
35 Requires: openldap-libs >= 2.3
37 Requires: rpm-build-tools
39 ExclusiveArch: %{ix86}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _plugindir %{_libdir}/browser-plugins
44 # TODO: galeon and skipstone, konqueror, opera.
45 # use macro, otherwise extra LF inserted along with the ifarch
46 %define browsers mozilla, mozilla-firefox
48 %define platform intellinux
49 %define tar0 ILINXR.TAR
50 %define tar1 COMMON.TAR
52 %define _noautostrip .*\.api
53 %define _noautoreq '^lib.*\.so$' '^lib.*\(VERSION\)$'
56 Adobe(R) Reader(R) is free software that lets you view and print PDF
57 files (Portable Document Format) on a variety of hardware and
58 operating system platforms.
61 Adobe(R) Reader(R) jest darmowym oprogramowaniem umo¿liwiaj±cym
62 ogl±danie oraz drukowanie plików PDF (Portable Document Format) na
63 ró¿nych platformach sprzêtowych oraz ró¿nych systemach operacyjnych.
66 ðÒÏÇÒÁÍÍÁ ÄÌÑ ÞÔÅÎÉÑ ÄÏËÕÍÅÎÔÏ× × ÆÏÒÍÁÔÅ Portable Document Format
67 (PDF), ÓÇÅÎÅÒÉÒÏ×ÁÎÎÙÈ Adobe Acrobat'ÏÍ.
70 ðÒÏÇÒÁÍÁ ÄÌÑ ÞÉÔÁÎÎÑ ÄÏËÕÍÅÎÔ¦× Õ ÆÏÒÍÁÔ¦ Portable Document Format
71 (PDF), ÚÇÅÎÅÒÏ×ÁÎÉÈ Adobe Acrobat'ÏÍ.
74 Summary: PDF plugin for Mozilla compatible browsers
75 Summary(pl): Wtyczka PDF dla przegl±darek zgodnych Mozilla
76 Group: X11/Applications
77 Requires: %{base_name} = %{epoch}:%{version}-%{release}
78 Requires: browser-plugins(%{_target_cpu})
79 Requires: mozilla-embedded
80 Obsoletes: mozilla-plugin-acroread
83 A Mozilla plugin for displaying PDF (Portable Document Format) files.
85 %description plugin -l pl
86 Wtyczka Mozilli do wy¶wietlania plików PDF (Portable Document Format).
89 %if %{with license_agreement}
97 rm -rf $RPM_BUILD_ROOT
98 %if %{without license_agreement}
99 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
102 s/@BASE_NAME@/%{base_name}/g
103 s/@TARGET_CPU@/%{_target_cpu}/g
104 s-@VERSION@-%{version}-g
105 s-@RELEASE@-%{release}-g
106 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
107 s,@DATADIR@,%{_datadir}/%{base_name},g
108 s/@COPYSOURCES@/%{base_name}{.desktop,.png}/g
109 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
111 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
112 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{base_name}
113 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{base_name}
116 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{base_name},%{_plugindir}} \
117 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
120 cp -a Reader Resource $RPM_BUILD_ROOT%{_libdir}/%{base_name}
121 awk -v INSTDIR=%{_libdir}/%{base_name}/Reader \
122 '/^install_dir=/ {print "install_dir="INSTDIR; next} \
124 bin/%{base_name} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}
125 install Browser/%{platform}/* $RPM_BUILD_ROOT%{_plugindir}
126 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
127 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
129 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/Patch
131 ln -sf /usr/lib/liblber-2.3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/liblber.so
132 ln -sf /usr/lib/libldap-2.3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/libldap.so
133 ln -sf /usr/share/ssl/ca-bundle.crt $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/Cert/curl-ca-bundle.crt
135 chmod a-x $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/*.so.*
139 rm -rf $RPM_BUILD_ROOT
141 %if %{without license_agreement}
143 %{_bindir}/%{base_name}.install
147 %triggerin plugin -- mozilla-firefox
148 %nsplugin_install -d %{_libdir}/mozilla-firefox/plugins nppdf.so
150 %triggerun plugin -- mozilla-firefox
151 %nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins nppdf.so
153 %triggerin plugin -- mozilla
154 %nsplugin_install -d %{_libdir}/mozilla/plugins nppdf.so
156 %triggerun plugin -- mozilla
157 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins nppdf.so
159 # % triggerin plugin -- konqueror
160 # % nsplugin_install -d %{_libdir}/kde3/plugins/konqueror nppdf.so
162 # % triggerun plugin -- konqueror
163 # % nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror nppdf.so
165 # % triggerin plugin -- opera
166 # % nsplugin_install -d %{_libdir}/opera/plugins nppdf.so
168 # % triggerun plugin -- opera
169 # % nsplugin_uninstall -d %{_libdir}/opera/plugins nppdf.so
171 # as rpm removes the old obsoleted package files after the triggers
172 # above are ran, add another trigger to make the links there.
173 %triggerpostun plugin -- mozilla-plugin-acroread
174 %nsplugin_install -f -d %{_libdir}/mozilla/plugins nppdf.so
179 %defattr(644,root,root,755)
180 %if %{without license_agreement}
181 %attr(755,root,root) %{_bindir}/%{base_name}.install
182 %{_datadir}/%{base_name}
184 %doc AdobeReader/{LICREAD.TXT,ReadMe.htm}
185 %attr(755,root,root) %{_bindir}/*
186 %dir %{_libdir}/%{base_name}
187 %{_libdir}/%{base_name}/Resource
188 %dir %{_libdir}/%{base_name}/Reader
189 %{_libdir}/%{base_name}/Reader/help
190 %{_libdir}/%{base_name}/Reader/AcroVersion
191 %{_libdir}/%{base_name}/Reader/Cert
192 %{_libdir}/%{base_name}/Reader/GlobalPrefs
193 %{_libdir}/%{base_name}/Reader/HowTo
194 %{_libdir}/%{base_name}/Reader/Legal
195 %{_libdir}/%{base_name}/Reader/JavaScripts
196 %{_libdir}/%{base_name}/Reader/Messages
197 %{_libdir}/%{base_name}/Reader/WebSearch
198 %dir %{_libdir}/%{base_name}/Reader/%{platform}
199 %dir %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins
200 %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/SPPlugins
201 %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/bin
202 %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/lib
203 %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/*.api
204 %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/AcroForm
205 %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/Annotations
206 %{_libdir}/%{base_name}/Reader/%{platform}/res
207 %{_desktopdir}/acroread.desktop
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_plugindir}/*