Re: Acrobat Reader

From: Marc Deslauriers (marcdeslauriers_at_videotron.ca)
Date: 03/15/05

  • Next message: Markus Huber: "Re: USB hotplugging does not work on all machines anymore"
    Date: Tue, 15 Mar 2005 17:00:24 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    
    
    

    On Tue, 2005-03-15 at 09:50 -0600, Jason L Tibbitts III wrote:

    > The scripts are interesting as well. They play around with various
    > ldap libraries in an interesting way. I guess they want to use the
    > system ones if available and use theirs otherwise. It seems that
    > would have been more easily done by using -rpath when they linked the
    > thing.
    >
    > Anyone interested on working out a specfile to turn this into a
    > proper package?

    Here's mine. I didn't mess with the ldap libraries in it though.

    Needs the tarball. You'll find the location in the spec file.

    Marc.

    
    

    Summary: Adobe Reader for Linux. An application that reads a PDF document.
    Name: AdobeReader
    Version: 7.0.0
    Release: 1
    Copyright: Commercial
    ExclusiveArch: i386
    Group: Applications/Publishing
    Source0: ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/AdbeRdr70_linux_enu.tar.gz
    Url: http://www.adobe.com
    BuildRoot: %{_tmppath}/%{name}-root
    Provides: libACE.so, libACE.so(VERSION), libAGM.so, libAGM.so(VERSION), libBIB.so, libBIB.so(VERSION)
    Provides: libCoolType.so, libCoolType.so(VERSION), libResAccess.so
    Obsoletes: acrobat, acroread

    %description
    Adobe Reader 7.0.0 can read documents in PDF format. Adobe Reader also allows
    you to search within PDF files, search for PDF files on the internet and
    participate in collaborative document reviews.

    %package plugin
    Summary: Adobe Reader browser plugin
    Requires: webclient, AdobeReader
    Obsoletes: acroread-plugin
    Group: Applications/Publishing

    %description plugin
    Adobe Reader 7.0.0 can read documents in PDF format. Adobe Reader also allows
    you to search within PDF files, search for PDF files on the internet and
    participate in collaborative document reviews. This package includes
    a web-browser plugin.

    # disable build root strip policy
    %define __spec_install_post /usr/lib/rpm/brp-compress || :
    # disable the automatic building of -debuginfo packages on RHL 8++
    %define debug_package %{nil}

    %prep
    %setup -q -n AdobeReader
    tar -xvf COMMON.TAR
    tar -xvf ILINXR.TAR

    %install
    rm -rf $RPM_BUILD_ROOT

    mkdir -p $RPM_BUILD_ROOT/%{_libdir}/acroread \
            $RPM_BUILD_ROOT/%{_bindir} \
            $RPM_BUILD_ROOT/%{_datadir}/applications \
            $RPM_BUILD_ROOT/%{_datadir}/applnk/Applications \
            $RPM_BUILD_ROOT/%{_datadir}/pixmaps \
            $RPM_BUILD_ROOT/%{_prefix}/lib/mozilla/plugins

    install -m 755 Browser/intellinux/nppdf.so $RPM_BUILD_ROOT/%{_prefix}/lib/mozilla/plugins/
    install -m 0644 Resource/Support/AdobeReader_GNOME.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/AdobeReader.desktop
    install -m 0644 Resource/Support/AdobeReader_KDE.desktop $RPM_BUILD_ROOT/%{_datadir}/applnk/Applications/AdobeReader.desktop
    install -m 0644 Resource/Icons/AdobeReader.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
    chmod 0755 Reader/intellinux/lib/*
    chmod 0755 Reader/intellinux/bin/*
    chmod 0755 Reader/intellinux/plug_ins/*
    cp -pr bin $RPM_BUILD_ROOT/%{_libdir}/acroread/
    cp -pr Reader $RPM_BUILD_ROOT/%{_libdir}/acroread/
    cp -pr Resource $RPM_BUILD_ROOT/%{_libdir}/acroread/
    ln -sf %{_libdir}/acroread/bin/acroread $RPM_BUILD_ROOT/%{_bindir}/acroread

    %clean
    rm -rf $RPM_BUILD_ROOT

    %post plugin
    if [ "$1" != "0" ]; then
            for i in /usr/lib/mozilla-*
                    do
                            if [ -d $i/plugins ]; then
                                    ln -sf /usr/lib/mozilla/plugins/nppdf.so $i/plugins/
                            fi
                    done
    fi

    %postun plugin
    if [ "$1" != "0" ]; then
            for i in /usr/lib/mozilla-*
                    do
                            rm -f $i/plugins/nppdf.so
                    done
    fi

    %files
    %defattr(-, root, root)
    %doc LICREAD.TXT README
    %dir %{_libdir}/acroread
    %{_libdir}/acroread/*
    %{_bindir}/*
    %{_datadir}/applications/*
    %{_datadir}/applnk/Applications/*
    %{_datadir}/pixmaps/*

    %files plugin
    %defattr(-, root, root)
    %attr(0755,root,root) %{_libdir}/mozilla/plugins/*

    %changelog
    * Tue Mar 15 2005 Marc Deslauriers <marcdeslauriers@videotron.ca> 7.0.0-1
    - Initial release

    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Markus Huber: "Re: USB hotplugging does not work on all machines anymore"

    Relevant Pages

    • Re: PDF linking problem
      ... Acrobat 6.0 professional. ... machines and their is no pattern to which ones open. ... I like PDF files because I can secure them. ... has Adobe Reader 6.0 on their machine. ...
      (microsoft.public.frontpage.client)
    • Re: PDF does not download
      ... Then make sure Acrobat still works. ... right click the REG file and choose Merge. ... >>> I have AReader 6.0 and can read pdf files. ... >> You may have an invalid plugin. ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
    • RE: Hyperlinks to PDF documents
      ... Office document, such as Microsoft Word or Microsoft Excel. ... Linked PDF files that are located on web servers open as expected. ... Install the Acrobat 7.0.1 update or the Adobe Reader 7.0.1 update. ... > We have any word documents that contain hyperlinks to PDF files. ...
      (microsoft.public.word.docmanagement)
    • Re: File association issue
      ... show Adobe Reader 8.0 as a generic icon as well. ... If this happens with all file associations, ... If the problem only exists with Adobe .pdf files, ...
      (microsoft.public.windowsxp.general)
    • Re: What software generates annotation right?
      ... >> software has the same feature? ... >> files can only be highlighted in a jaws reader but not in an Adobe reader). ... > They can be modified in Adobe Acrobat, as they are perfectly valid PDF ... If I generate pdf files in Jaws, instead, I did not find a way to give them ...
      (comp.text.pdf)