Summary: A GNU arbitrary precision library. Name: gmp Version: 3.1.1 Release: 3 URL: http://www.gnu.org/ Source: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.gz Patch: gmp-3.1.1-ia64.patch Copyright: LGPL Group: System Environment/Libraries BuildRoot: %{_tmppath}/gmp-root %description The gmp package contains GNU MP, a library for arbitrary precision arithmetic, signed integers operations, rational numbers and floating point numbers. GNU MP is designed for speed, for both small and very large operands. GNU MP is fast because it uses fullwords as the basic arithmetic type, it uses fast algorithms, it carefully optimizes assembly code for many CPUs' most common inner loops, and it generally emphasizes speed over simplicity/elegance in its operations. Install the gmp package if you need a fast arbitrary precision library. %package devel Summary: Development tools for the GNU MP arbitrary precision library. Group: Development/Libraries Requires: %{name} = %{version} PreReq: /sbin/install-info %description devel The static libraries, header files and documentation for using the GNU MP arbitrary precision library in applications. If you want to develop applications which will use the GNU MP library, you'll need to install the gmp-devel package. You'll also need to install the gmp package. %prep %setup -q %patch -p1 %build # It's like libtoolize --copy --force, but different... cp /usr/share/libtool/config.{sub,guess} . # Slightly adjusted %%configure macro.... ./configure \ --target=%{_target_platform} \ --prefix=%{_prefix} \ --exec-prefix=%{_exec_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --includedir=%{_includedir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --localstatedir=%{_localstatedir} \ --sharedstatedir=%{_sharedstatedir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --enable-mpbsd make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %{makeinstall} #gzip ${RPM_BUILD_ROOT}%{_infodir}/gmp.info* install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel /sbin/install-info %{_infodir}/gmp.info.gz %{_infodir}/dir %preun devel if [ "$1" = 0 ]; then /sbin/install-info --delete %{_infodir}/gmp.info.gz %{_infodir}/dir fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING NEWS README %{_libdir}/libgmp.so.* %{_libdir}/libmp.so.* %files devel %defattr(-,root,root) %{_libdir}/libmp.so %{_libdir}/libgmp.so %{_libdir}/libmp.a %{_libdir}/libgmp.a %{_includedir}/mp.h %{_includedir}/gmp.h %{_includedir}/gmp-mparam.h %{_infodir}/gmp.info* %changelog * Mon Feb 05 2001 Philipp Knirsch - Fixed bugzilla bug #25515 where GMP wouldn't work on IA64 as IA64 is not correctly identified as a 64 bit platform. * Mon Dec 18 2000 Preston Brown - include bsd mp library * Tue Oct 17 2000 Florian La Roche - update to 3.1.1 * Sun Sep 3 2000 Florian La Roche - update to 3.1 * Sat Aug 19 2000 Preston Brown - devel subpackage depends on main package so that .so symlink is OK. * Thu Jul 13 2000 Prospector - automatic rebuild * Sat Jun 3 2000 Nalin Dahyabhai - switch to the configure and makeinstall macros - FHS-compliance fixing - move docs to non-devel package * Fri Apr 28 2000 Bill Nottingham - libtoolize for ia64 * Fri Apr 28 2000 Florian La Roche - update to 3.0.1 * Thu Apr 27 2000 Jakub Jelinek - sparc64 fixes for 3.0 * Wed Apr 26 2000 Florian La Roche - update to 3.0 * Mon Feb 14 2000 Matt Wilson - #include in files that use string functions * Wed Feb 02 2000 Cristian Gafton - fix description and summary * Mon Dec 06 1999 Michael K. Johnson - s/GPL/LGPL/ - build as non-root (#7604) * Mon Sep 06 1999 Jakub Jelinek - merge in some debian gmp fixes - Ulrich Drepper's __gmp_scale2 fix - my mpf_set_q fix - sparc64 fixes * Wed Apr 28 1999 Cristian Gafton - add sparc patch for PIC handling * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 8) * Thu Feb 11 1999 Michael Johnson - include the private header file gmp-mparam.h because several apps seem to assume that they are building against the gmp source tree and require it. Sigh. * Tue Jan 12 1999 Michael K. Johnson - libtoolize to work on arm * Thu Sep 10 1998 Cristian Gafton - yet another touch of the spec file * Wed Sep 2 1998 Michael Fulbright - looked over before inclusion in RH 5.2 * Sat May 24 1998 Dick Porter - Patch Makefile.in, not Makefile - Don't specify i586, let configure decide the arch * Sat Jan 24 1998 Marc Ewing - started with package from Toshio Kuratomi - cleaned up file list - fixed up install-info support