Dear Tzafrir,

I tried it and it worked. I had to change the spec a little. Instead of 

 Requires: %{from}
 Provides: %{target}

I have put

 Requires: mozilla = 1.0rc1-1_rh7
 Provides: mozilla = 1.0rc1-0

Thanks a lot. I now have a new button in my compose window - Spell!

On Sat, 27 Apr 2002 21:30:36 +0300, Tzafrir Cohen wrote about "Re: Useful Tools For 
Mozilla":
> On Sat, 27 Apr 2002, Zvi Har'El wrote:
> 
> > Having downloaded and trying to install mozilla-spellchecker I got
> >
> > /usr/local/src/rpms# rpm -Uvh mozilla-spellchecker-1.0rc1-1_rh7.i386.rpm
> > error: failed dependencies:
> >       mozilla = 1.0rc1-1_rh7 is needed by mozilla-spellchecker-1.0rc1-1_rh7
> >
> > However, I have already installed mozilla-1.0rc1-0.i386.rpm from mozilla.org. I
> > hate to replace all 11 mozilla 1.0rc1-0 rpms with 1.0rc1-1_rh7 from
> > ftp://ftp.cs.cornell.edu/pub/nogin/unsorted_RPMs/mozilla/ . Do you know if
> > there exists a 1.0rc1-0 rpm for mozilla-spellchecker somewhere?
> 
> One thing you can try is to create an rpm package that will require
> mozilla 1.0rc1-0 and provide mozilla 1.0rc1-1_rh7
> 
> Here is a generic spec I use. I usually only need to change the top
> defines. In this case the versions have to be changed a bit. Save it as
> mozilla_1.0rc1-1_rh7_from_1.0rc1-0.spec, do the necessary changes, run:
> 
>   rpm -bb mozilla_1.0rc1-1_rh7_from_1.0rc1-0.spec
> 
> and install the produced rpm package.
> 
> 
> %define target bzip2-devel
> %define from libbzip2-devel
> %define name %{target}-from-%{from}
> %define version 1
> %define release 1local
> 
> Summary: demi package to allow %{from} to provide %{target}
> Name: %{name}
> Version: %{version}
> Release: %{release}
> Copyright: Public Domain
> BuildRoot: %{_tmppath}/%{name}-buildroot
> BuildArchitectures: noarch
> Group: System/Libraries
> # Note that you may need to add some version number requirements here:
V> Requires: %{from}
> #Requires: %{from} >= 1.0
> Provides: %{target}
> 
> %description
> A simple package to provide the resource %{target} from an existing
> package with the resource %{from}
> 
> %prep
> 
> %build
> 
> %install
> 
> %post
> 
> %clean
> 
> 
> %files
> 
> %changelog
> * Mon Oct  8 2001 Tzafrir Cohen <[EMAIL PROTECTED]> 1-1local
> - Initial package
> 
> # end of file
> 
> 
> -- 
> Tzafrir Cohen
> mailto:[EMAIL PROTECTED]
> http://www.technion.ac.il/~tzafrir
> 

-- 
Dr. Zvi Har'El     mailto:[EMAIL PROTECTED]     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                                 Sunday, 16 Iyyar 5762, 28 April 2002, 10:49AM

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to