X-Git-Url: http://git.pld-linux.org/?p=packages%2Facroread.git;a=blobdiff_plain;f=acroread.spec;h=3a45dce7ad2a829710f2074218980a7582cf371b;hp=1ac8dc40bd92ff60a72dbe89340404d17d13346e;hb=HEAD;hpb=f68c665cf689b14e9d4ea8afe5a0c759285f43c2 diff --git a/acroread.spec b/acroread.spec index 1ac8dc4..3a45dce 100644 --- a/acroread.spec +++ b/acroread.spec @@ -2,18 +2,19 @@ # Conditional build: %bcond_with license_agreement # generates package # -Summary: Acrobat Reader -Summary(pl): Acrobat Reader - czytnik plików PDF -Summary(ru): ðÒÏÇÒÁÍÍÁ ÄÌÑ ÞÔÅÎÉÑ ÄÏËÕÍÅÎÔÏ× × ÆÏÒÍÁÔÅ PDF ÏÔ Adobe -Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÞÉÔÁÎÎÑ ÄÏËÕÍÅÎÔ¦× Õ ÆÏÒÍÁÔ¦ PDF ×¦Ä Adobe %define base_name acroread +%define rel 1 +Summary: Adobe Acrobat Reader +Summary(pl.UTF-8): Adobe Acrobat Reader - czytnik plików PDF +Summary(ru.UTF-8): Программа для чтения документов в формате PDF от Adobe +Summary(uk.UTF-8): Програма для читання документів у форматі PDF від Adobe %if %{with license_agreement} Name: %{base_name} %else Name: %{base_name}-installer %endif -Version: 7.0.1 -Release: 3%{?with_license_agreement:wla} +Version: 9.5.5 +Release: %{rel}%{?with_license_agreement:wla} Epoch: 1 License: distribution restricted (http://www.adobe.com/products/acrobat/distribute.html) # in short: @@ -21,65 +22,78 @@ License: distribution restricted (http://www.adobe.com/products/acrobat/distribu # - distribution on CD requires signing Distribution Agreement (see URL above) Group: X11/Applications/Graphics %if %{with license_agreement} -Source0: http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/AdbeRdr701_linux_enu.tar.gz +Source0: ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/%{version}/enu/AdbeRdr%{version}-1_i486linux_enu.tar.bz2 +# NoSource0-md5: 664d546fbf0ad91f20dcf3753b0a2684 +NoSource: 0 %else -Source0: license-installer.sh +Source1: http://svn.pld-linux.org/svn/license-installer/license-installer.sh +# Source1-md5: 329c25f457fea66ec502b7ef70cb9ede %endif -Source1: %{base_name}.desktop -Source2: %{base_name}.png +# please update @COPYSOURCES@ below if you add more Sources or Patches. +Source2: %{base_name}.desktop +Source3: %{base_name}.png URL: http://www.adobe.com/products/acrobat/ %if %{with license_agreement} -BuildRequires: rpmbuild(macros) >= 1.236 -Requires: openldap-libs >= 2.2 +BuildRequires: rpmbuild(macros) >= 1.357 +# to force 32bit iconv +Requires: %{_libdir}/gconv +Requires: ca-certificates >= 20080809-4 +Requires: iconv +Requires: openldap-libs < 2.5 +Requires: openldap-libs >= 2.4 +%else +Requires: rpm-build-tools >= 4.4.37 +Requires: rpmbuild(macros) >= 1.544 %endif ExclusiveArch: %{ix86} +ExcludeArch: i386 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _plugindir %{_libdir}/browser-plugins - -# TODO: galeon and skipstone, konqueror, opera. -# use macro, otherwise extra LF inserted along with the ifarch -%define browsers mozilla, mozilla-firefox - %define platform intellinux %define tar0 ILINXR.TAR %define tar1 COMMON.TAR %define _noautostrip .*\.api -%define _noautoreq '^lib.*\.so$' '^lib.*\(VERSION\)$' +%define _noautoprov libcrypto\.so.* libssl\.so.* libcurl\.so.* libicu.* libstdc++\.so.* libgcc_s\.so.* +%if "%{_rpmversion}" >= "5.0" +%define _noautoreq %{_noautoprov} '^lib.*\.so$' '^lib.*\\(VERSION\\)$' +%else +%define _noautoreq %{_noautoprov} '^lib.*\.so$' '^lib.*\(VERSION\)$' +%endif +%define no_install_post_check_so 1 %description -Adobe(R) Reader(R) is free software that lets you view and print -PDF files (Portable Document Format) on a variety of hardware and +Adobe(R) Reader(R) is free software that lets you view and print PDF +files (Portable Document Format) on a variety of hardware and operating system platforms. -%description -l pl -Adobe(R) Reader(R) jest darmowym oprogramowaniem umo¿liwiaj±cym ogl±danie -oraz drukowanie plików PDF (Portable Document Format) na ró¿nych platformach -sprzêtowych oraz ró¿nych systemach operacyjnych. +%description -l pl.UTF-8 +Adobe(R) Reader(R) jest darmowym oprogramowaniem umożliwiającym +oglądanie oraz drukowanie plików PDF (Portable Document Format) na +różnych platformach sprzętowych oraz różnych systemach operacyjnych. -%description -l ru -ðÒÏÇÒÁÍÍÁ ÄÌÑ ÞÔÅÎÉÑ ÄÏËÕÍÅÎÔÏ× × ÆÏÒÍÁÔÅ Portable Document Format -(PDF), ÓÇÅÎÅÒÉÒÏ×ÁÎÎÙÈ Adobe Acrobat'ÏÍ. +%description -l ru.UTF-8 +Программа для чтения документов в формате Portable Document Format +(PDF), сгенерированных Adobe Acrobat'ом. -%description -l uk -ðÒÏÇÒÁÍÁ ÄÌÑ ÞÉÔÁÎÎÑ ÄÏËÕÍÅÎÔ¦× Õ ÆÏÒÍÁÔ¦ Portable Document Format -(PDF), ÚÇÅÎÅÒÏ×ÁÎÉÈ Adobe Acrobat'ÏÍ. +%description -l uk.UTF-8 +Програма для читання документів у форматі Portable Document Format +(PDF), згенерованих Adobe Acrobat'ом. -%package plugin +%package -n browser-plugin-%{name} Summary: PDF plugin for Mozilla compatible browsers -Summary(pl): Wtyczka PDF dla przegl±darek zgodnych Mozilla +Summary(pl.UTF-8): Wtyczka PDF dla przeglądarek zgodnych Mozilla Group: X11/Applications -Prereq: mozilla-embedded -Requires: %{base_name} = %{epoch}:%{version} -Requires: browser-plugins(%{_target_cpu}) +Requires: %{base_name} = %{epoch}:%{version}-%{release} +Requires: browser-plugins >= 2.0 +Obsoletes: acroread-plugin Obsoletes: mozilla-plugin-acroread -%description plugin +%description -n browser-plugin-%{name} A Mozilla plugin for displaying PDF (Portable Document Format) files. -%description plugin -l pl -Wtyczka Mozilli do wy¶wietlania plików PDF (Portable Document Format). +%description -n browser-plugin-%{name} -l pl.UTF-8 +Wtyczka Mozilli do wyświetlania plików PDF (Portable Document Format). %prep %if %{with license_agreement} @@ -102,30 +116,40 @@ sed -e ' s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g s,@DATADIR@,%{_datadir}/%{base_name},g s/@COPYSOURCES@/%{base_name}{.desktop,.png}/g -' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install +' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name} -install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{base_name} install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{base_name} +install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/%{base_name} %else -install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{base_name},%{_plugindir}} \ - $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{base_name}/bin} \ + $RPM_BUILD_ROOT{%{_browserpluginsdir},%{_desktopdir},%{_pixmapsdir}} -cd AdobeReader -cp -a Reader Resource $RPM_BUILD_ROOT%{_libdir}/%{base_name} +cd AdobeReader/Adobe/Reader9 +cp -a Browser Reader Resource $RPM_BUILD_ROOT%{_libdir}/%{base_name} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Browser/install_browser_plugin awk -v INSTDIR=%{_libdir}/%{base_name}/Reader \ '/^install_dir=/ {print "install_dir="INSTDIR; next} \ {print}' \ - bin/%{base_name} > $RPM_BUILD_ROOT%{_bindir}/%{base_name} -install Browser/%{platform}/* $RPM_BUILD_ROOT%{_plugindir} -install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} -install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} + bin/%{base_name} > $RPM_BUILD_ROOT%{_libdir}/%{base_name}/bin/%{base_name} + +# IMPORTANT NOTE: Here symlinks must be used instead of moving parts of tree +# for compatibility with other binary-only Adobe software (like AIR). +# This one is required to find Reader tree (relative to symlink target)... +ln -sf %{_libdir}/%{base_name}/bin/%{base_name} $RPM_BUILD_ROOT%{_bindir}/%{base_name} +# ...and nppdf plugin is expected in Browser subdir... +# ...so just symlink it to be used as browsers plugin. +ln -sf %{_libdir}/%{base_name}/Browser/%{platform}/nppdf.so $RPM_BUILD_ROOT%{_browserpluginsdir}/nppdf.so -ln -sf /usr/lib/liblber-2.2.so.7 $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/liblber.so -ln -sf /usr/lib/libldap-2.2.so.7 $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/libldap.so -ln -sf /usr/share/ssl/ca-bundle.crt $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/Cert/curl-ca-bundle.crt +install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} +install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} +ln -sf /usr/lib/liblber-2.4.so.2 $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/liblber.so +ln -sf /usr/lib/libldap-2.4.so.2 $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/libldap.so +ln -sf /etc/certs/ca-certificates.crt $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/Cert/curl-ca-bundle.crt + +# don't generate dependencies for internal libs chmod a-x $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/*.so.* %endif @@ -133,54 +157,18 @@ chmod a-x $RPM_BUILD_ROOT%{_libdir}/%{base_name}/Reader/%{platform}/lib/*.so.* rm -rf $RPM_BUILD_ROOT %if %{without license_agreement} -%pre +%post %{_bindir}/%{base_name}.install +%endif -%else - -%triggerin plugin -- mozilla-firefox -%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins nppdf.so - -%triggerun plugin -- mozilla-firefox -%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins nppdf.so - -%triggerin plugin -- mozilla -%nsplugin_install -d %{_libdir}/mozilla/plugins nppdf.so -if [ -d /usr/%{_lib}/mozilla ]; then - umask 022 - rm -f /usr/%{_lib}/mozilla/components/{compreg,xpti}.dat - if [ -x /usr/bin/regxpcom ]; then - MOZILLA_FIVE_HOME=/usr/%{_lib}/mozilla /usr/bin/regxpcom - fi -fi +%if %{with license_agreement} +%post -n browser-plugin-%{name} +%update_browser_plugins -%triggerun plugin -- mozilla -%nsplugin_uninstall -d %{_libdir}/mozilla/plugins nppdf.so -if [ -d /usr/%{_lib}/mozilla ]; then - umask 022 - rm -f /usr/%{_lib}/mozilla/components/{compreg,xpti}.dat - if [ -x /usr/bin/regxpcom ]; then - MOZILLA_FIVE_HOME=/usr/%{_lib}/mozilla /usr/bin/regxpcom - fi +%postun -n browser-plugin-%{name} +if [ "$1" = 0 ]; then + %update_browser_plugins fi - -# % triggerin plugin -- konqueror -# % nsplugin_install -d %{_libdir}/kde3/plugins/konqueror nppdf.so - -# % triggerun plugin -- konqueror -# % nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror nppdf.so - -# % triggerin plugin -- opera -# % nsplugin_install -d %{_libdir}/opera/plugins nppdf.so - -# % triggerun plugin -- opera -# % nsplugin_uninstall -d %{_libdir}/opera/plugins nppdf.so - -# as rpm removes the old obsoleted package files after the triggers -# above are ran, add another trigger to make the links there. -%triggerpostun plugin -- mozilla-plugin-acroread -%nsplugin_install -f -d %{_libdir}/mozilla/plugins nppdf.so - %endif %files @@ -189,33 +177,45 @@ fi %attr(755,root,root) %{_bindir}/%{base_name}.install %{_datadir}/%{base_name} %else -%doc AdobeReader/{LICREAD.TXT,README} -%attr(755,root,root) %{_bindir}/* +%doc AdobeReader/ReadMe.htm +%attr(755,root,root) %{_bindir}/acroread %dir %{_libdir}/%{base_name} -%{_libdir}/%{base_name}/Resource +%dir %{_libdir}/%{base_name}/Browser +%dir %{_libdir}/%{base_name}/Browser/%{platform} +%attr(755,root,root) %{_libdir}/%{base_name}/Browser/%{platform}/nppdf.so +%{_libdir}/%{base_name}/Browser/HowTo %dir %{_libdir}/%{base_name}/Reader %{_libdir}/%{base_name}/Reader/help %{_libdir}/%{base_name}/Reader/AcroVersion %{_libdir}/%{base_name}/Reader/Cert %{_libdir}/%{base_name}/Reader/GlobalPrefs -%{_libdir}/%{base_name}/Reader/HowTo -%{_libdir}/%{base_name}/Reader/Legal +%{_libdir}/%{base_name}/Reader/IDTemplates %{_libdir}/%{base_name}/Reader/JavaScripts -%{_libdir}/%{base_name}/Reader/Messages -%{_libdir}/%{base_name}/Reader/WebSearch +%{_libdir}/%{base_name}/Reader/Legal +%{_libdir}/%{base_name}/Reader/Tracker +%{_libdir}/%{base_name}/Reader/PDFSigQFormalRep.pdf +%{_libdir}/%{base_name}/Reader/pmd.cer +%{_libdir}/%{base_name}/Reader/%{platform}/mozilla %dir %{_libdir}/%{base_name}/Reader/%{platform} %dir %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins +%dir %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/Multimedia +%dir %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins3d %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/SPPlugins %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/bin %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/lib %attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/*.api +%attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins3d/*.x3d +%attr(755,root,root) %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/Multimedia/MPP %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/AcroForm %{_libdir}/%{base_name}/Reader/%{platform}/plug_ins/Annotations -%{_libdir}/%{base_name}/Reader/%{platform}/res +%{_libdir}/%{base_name}/Reader/%{platform}/plug_ins3d/prc +%{_libdir}/%{base_name}/Resource +%dir %{_libdir}/%{base_name}/bin +%attr(755,root,root) %{_libdir}/%{base_name}/bin/acroread %{_desktopdir}/acroread.desktop -%{_pixmapsdir}/* +%{_pixmapsdir}/acroread.png -%files plugin +%files -n browser-plugin-%{name} %defattr(644,root,root,755) -%attr(755,root,root) %{_plugindir}/* +%attr(755,root,root) %{_browserpluginsdir}/nppdf.so %endif