%ifos darwin %define _sysconfdir /private/etc %define __defattr %defattr(-,root,wheel) %else %define __defattr %defattr(-,root,root) %endif Summary: A GNU arbitrary precision library. Name: gmp Version: 3.1.1 Release: 4a URL: http://www.gnu.org/ Source: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.gz Patch0: gmp-3.1.1-ia64.patch Patch1: gmp-3.1.1-macosx.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: %{_sbindir}/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 %patch0 -p1 %ifos darwin %patch1 -p1 pushd mpn mv powerpc32 powerpc32.ORIG ln -s generic powerpc32 popd %endif %build # It's like libtoolize --copy --force, but different... cp /usr/share/libtool/{config.*,lt*} . # 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} %ifos darwin gzip ${RPM_BUILD_ROOT}%{_infodir}/gmp.info* %endif install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir} %ifnos darwin %post -p %{_sbindir}/ldconfig %postun -p %{_sbindir}/ldconfig %endif %post devel %{_sbindir}/install-info %{_infodir}/gmp.info.gz %{_infodir}/dir %preun devel if [ "$1" = 0 ]; then %{_sbindir}/install-info --delete %{_infodir}/gmp.info.gz %{_infodir}/dir fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %{__defattr} %doc COPYING NEWS README %ifos darwin %{_libdir}/libgmp.dylib %{_libdir}/libmp.dylib %else %{_libdir}/libgmp.so.* %{_libdir}/libmp.so.* %endif %files devel %{__defattr} %ifnos darwin %{_libdir}/libmp.so %{_libdir}/libgmp.so %endif %{_libdir}/libmp.a %{_libdir}/libgmp.a %{_includedir}/mp.h %{_includedir}/gmp.h %{_includedir}/gmp-mparam.h %{_infodir}/gmp.info* %changelog * Fri Jul 20 2001 Keisuke Fujii - 1st build on MacOS X. * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * 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