[MLton-devel] no libgmp requirement?

Henry Cejtin henry@sourcelight.com
Tue, 24 Sep 2002 12:27:00 -0500

If  I  have  understood the Maximum RPM documentation, the secret is first to
    rpm -q --provides gmp
    rpm -q --provides gmp-devel
to see what is actually provided by these RPMs:

    gmp = 3.1.1-3
    gmp-devel = 3.1.1-3

Note, no one explicitly lists libgmp.a, but using
    rpm -qf /usr/lib/libgmp.a
shows that it is gmp-devel which does this.

Now you have to add a line to the spec file which is
    requires:       ?, ?, ..., ?
where the ? are one of the things  provided  by  these  RPMs.   You  can  add
version dependencies by having ? be of the form
    ? >= x.y
and the like.

I guess that my suggestion would be
    requires:       gmp >= 3.1.1, gmp-devel >= 3.1.1
for the Red Hat 7.* RPMs and
    requires:       gmp >= 2.0.2, gmp-devel >= 2.0.2
for the Red Hat 6.* RPMs.

If  you  don't  want  to  bother  checking that the version numbers are large
enough, you could drop the
    >= x.y.z
parts above.  This would only test  that  the  gmp  and  gmp-devel  RPMs  are
installed  without  checking  that  they  are  a  high enough version number.
Actually, that is probably the right thing to  do  since  any  version  would
probably work.

This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
MLton-devel mailing list