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

Re: GMP problems



* Laurent Gauthier (lolo@gothic.remcomp.fr) garabateo:
> On Sat, May 27, 2000 at 01:29:51PM -0700, Roberto Machorro (Xink) wrote:
> > I'll post an RPM spec file for CLN this afternoon to the list (I'll also
> > mailit to haible if he cares for it). I dowloaded version 1.0.3.
> > 
> > 				Roberto
> > 
> 
> Hello Roberto,
> 
> I just committed a fix to CVS, please could you check that it is working for
> you.  Sorry for being so late, I've only had time to look at your problem
> today.
> 
> Tell me if its ok.
> 
> Bye, Laurent.
> -- 
> Laurent Gauthier is lolo@seul.org +;+ ``Keep it simple: as simple as possible,
>              at home              ;:;   but no simpler.''                    
>         in Nozay (France)         +;+                          -- A. Einstein

Thanx! I'm still trying to get the DG from CVS, it's taking quite a while,
I guess the GNOME 1.2 fever is still at its fullest, hehehe...

I'm building the RPM spec for CLN, apparently it can work on top of GMP,
don't know what is better: On top off GMP or by itself. Anyone can change
that but I'm still wondering...

I have attached a spec file for GMP. If you have a Pentium or better it
will compile nice and optimized (good math =).


					Roberto


Summary: GNU math library
Name: gmp
Version: 3.0.1
Release: 1
Copyright: GPL
Group: System Environment/Libraries
Source: gmp-3.0.1.tar.gz
URL: http://www.swox.com/gmp/
Packager: Roberto Machorro <rmach@bigfoot.com>
BuildRoot: /tmp/gmp-root

%description
GNU MP is a library for arbitrary precision arithmetic, operating on signed
integers, rational numbers, and floating point numbers.  It has a rich set of
functions, and the functions have a regular interface.

GNU MP is designed to be as fast as possible, both for small operands and huge
operands.  The speed is achieved by using fullwords as the basic arithmetic
type, by using fast algorithms, with carefully optimized assembly code for the
most common inner loops for lots of CPUs, and by a general emphasis on speed
(instead of simplicity or elegance).

%package devel
Summary: Development files for programs using the GNU math library
Group: Development/Libraries
Requires: gmp = %{PACKAGE_VERSION}

%description devel
This package is necessary if you wish to develop software based on the GMP
library.

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install
#du -k $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING* ChangeLog NEWS README
/usr/info/gmp.*
/usr/lib/libgmp.so.3
/usr/lib/libgmp.so.3.0.1

%files devel
%defattr(-, root, root)
%doc demos
/usr/include/gmp.h
/usr/lib/libgmp.a
/usr/lib/libgmp.la
/usr/lib/libgmp.so