Re: Acrobat Reader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 15 Mar 2005 17:00:24 -0500, Marc Deslauriers
<marcdeslauriers@xxxxxxxxxxxx> wrote:
> 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.
> 

It's a good start; however, your spec file only covers Mozilla, not
Firefox.  The additional loops below should have that app covered:

%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
	for i in /usr/lib/firefox-*
		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
	for i in /usr/lib/firefox-*
		do
			rm -f $i/plugins/nppdf.so
		done
fi

To be all inclusive you could also add Netscape 7 coverage to your script.

-- Kam Leo


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux