]> git.pld-linux.org Git - packages/gmp.git/blobdiff - gmp.spec
- acfix patch no longer needed with current autoconf+libtool
[packages/gmp.git] / gmp.spec
index 2834529d96ada19109f959b4e11f29d894f02d8b..ad1e98b19dd51ecabe02bbaeb4aece6dee66f091 100644 (file)
--- a/gmp.spec
+++ b/gmp.spec
-Summary: GNU arbitrary precision library
-Name: gmp
-Version: 2.0.2
-Release: 9
-URL: http://www.matematik.su.se/~tege/gmp/
-Source: ftp://ftp.gnu.org/pub/gnu/gmp-2.0.2.tar.gz
-Patch0: gmp-2.0.2-1.shared.patch
-Patch1: http://www.matematik.su.se/~tege/gmp/mpf-conversions.diff.gz
-Patch2: http://www.matematik.su.se/~tege/gmp/gmp2.0.2p2.txt
-Patch3: http://www.matematik.su.se/~tege/gmp/gmp2.0.2p3.txt
-Patch4: http://www.matematik.su.se/~tege/gmp/gmp2.0.2p4.txt
-Patch5: http://www.matematik.su.se/~tege/gmp/gmp2.0.2p5.txt
-Patch6: http://www.matematik.su.se/~tege/gmp/gmp2.0.2p6.txt
-Patch7: http://www.matematik.su.se/~tege/gmp/gmp2.0.2p7.txt
-Patch20: gmp-2.0.2-powerpc.patch
-Copyright: LGPL 
-Group: Libraries
-BuildRoot: /var/tmp/gmp-root
-Prefix: /usr
+#
+# Conditional build (only one option at time makes sense; if more specified
+#   - only "highest" is used):
+# _with_mmx    - with MMX instructions                 (i586, i686 targets)
+# _with_p3mmx  - with Pentium /// MMX instructions     (i686 target)
+# _with_k6     - with AMD K6 instructions              (i586 target)
+# _with_k62    - with AMD K6-2/K6-3 instructions       (i586 target)
+# _with_k7     - with AMD Athlon/Duron instructions    (i686 target)
+#
+Summary:       GNU arbitrary precision library
+Summary(de):   Beliebige Genauigkeits-Library
+Summary(es):   Biblioteca de precisión arbitraria de la GNU
+Summary(fr):   Bibliothèque de calcul de précision
+Summary(pl):   Biblioteka arytmetyczna GNU
+Summary(pt_BR):        Biblioteca de precisão arbitrária da GNU
+Summary(uk):   â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
+Summary(ru):   âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
+Name:          gmp
+Version:       4.1.2
+Release:       1
+License:       LGPL
+Group:         Libraries
+Source0:       ftp://ftp.gnu.org/pub/gnu/gmp/%{name}-%{version}.tar.gz
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-am_fix.patch
+Patch2:                %{name}-asmcpu.patch
+URL:           http://www.swox.com/gmp/
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake
+BuildRequires: libtool
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     libgmp3
+
+%ifarch i586
+%define _cpu %{?_with_k62:k62}%{!?_with_k62:%{?_with_k6:k6}%{!?_with_k6:%{?_with_mmx:pentiummmx}%{!?_with_mmx:i586}}}
+%else
+%ifarch i686
+%define _cpu %{?_with_p3mmx:pentium3}%{!?_with_p3mmx:%{?_with_k7:athlon}%{!?_with_k7:%{?_with_mmx:pentium2}%{!?_with_mmx:i686}}}
+%else
+%define _cpu %{_arch}
+%endif
+%endif
 
 %description
-This is the GNU arbitrary precision library.  Linking against it gives access
-to functions for handling arbitrarily large numbers with either a high level or
-a low level interface.
+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 for several reasons: 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.
+
+%description -l de
+Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
+beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
+Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
+Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
+optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
+fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
+Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
+legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
+
+Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
+beliebige Genauigket brauchen.
+
+%description -l es
+Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
+funciones para manipular arbitrariamente grandes números con
+interfaces de alto o bajo nivel.
+
+%description -l fr
+Ce package contient la bibliothèque GNU MP. Cette dernière permet de
+calculer avec une grande précision sur des nombres entiers, rationnels
+ou même des fractions, signés ou non. GNU MP a été conçue pour être
+rapide pour les petits nombres ainsi que les très grands grâce à
+plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
+algorithmes optimisés, utilisation de l'assembleur pour les routines
+critiques) parfois au détriment de la simplicité ou l'élégance.
+
+Installez ce package si vous avez besoin d'une bibliothèque de calcul
+de précision rapide
+
+%description -l pl
+Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
+dostêp do szerokiego grona szybkich funkcji arytmetycznych
+dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
+zmiennoprzecinkowych.
+
+%description -l pt_BR
+Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
+funções para manipular arbitrariamente grandes números com interfaces
+de alto ou baixo nível.
+
+%description -l uk
+㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
+ÐÒÏÇÒÁÍÁÍ ÄÏÓÔÕРÄÏ ÆÕÎËæʠÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
+ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
+
+%description -l ru
+üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
+ÄÏÓÔÕРˠÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
+ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
 
 %package devel
-Summary: GNU Arbitrary Precision header files, static libraries, and documentation.
-Group: Libraries
-PreReq: /sbin/install-info
+Summary:       GNU Arbitrary Precision header files, static libraries, and documentation
+Summary(de):   Entwicklungstools für GNU MP
+Summary(es):   Archivos de inclusión, bibliotecas y documentación de la biblioteca gmp
+Summary(fr):   Outils de développement pour la bibliothèque de calcul GMP
+Summary(pl):   Pliki nag³ówkowe i dokumentacja do biblioteki gmp
+Summary(pt_BR):        Arquivos de inclusão, bibliotecas e documentação da biblioteca gmp
+Summary(uk):   ¶ÎÓÔÒÕÍÅÎÔÉ ÒÏÚÒÏÂËÉ ÄÌѠ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
+Summary(ru):   éÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+Obsoletes:     libgmp3-devel
 
 %description devel
-These are the static libraries, header files, and documentation for using the
-GNU arbitrary precision library in your own programs.  With these, you can
-create your own own programs that use this library.
+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.
+
+%description devel -l de
+Statische Libraries, Header Files und Dokumentation zum Benutzen der
+GNU MP Library.
+
+%description devel -l es
+Estas son las bibliotecas, archivos de inclusión y documentación para
+usar la biblioteca GNU de precisión arbitraria en tus programas.
+
+%description devel -l fr
+Ce package comprend les bibliothèques statiques, les fichiers
+d'en-tête et la documentation nécessaires pour utiliser la
+bibliothèque de calcul de précision dans les applications.
+
+Vous n'avez besoin de ce package que si vous comptez programmer des
+applications utilisant la bibliothèque GNU MP.
+
+%description devel -l pl
+Pliki nag³ówkowe i dokumentacja do gmp. Dziêki temu pakietowi bêdziesz
+móg³ tworzyæ w³asne programy z wykorzystaniem tej biblioteki.
+
+%description devel -l pt_BR
+Estas são as bibliotecas, arquivos de inclusão e documentação para
+usar a biblioteca GNU de precisão arbitrária em seus programas.
 
-%changelog
-* Sat Mar 14 1999 David Kuestler <kuestler@zeta.org.au>
-- Patch for PowerPC ( Power Mac )
+%description devel -l uk
+㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁæѠÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
+¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
 
-* Thu Feb 18 1999 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
-- Add bugfix patches from gmp homepage. (These are supposed to go into
-  gmp-2.0.3 when it is finally released.)
-- Change the files section to use %attr tags (now buildable by non-root)
-- Add a Prefix: tag.
-- Change the Copyright to LGPL.
-- Change the URL to the gmp homepage.
+%description devel -l ru
+üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
+ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
 
-* Thu Feb 11 1999 Michael Johnson <johnsonm@redhat.com>
-- 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.
+%package static
+Summary:       GNU Arbitrary Precision static library
+Summary(pl):   Biblioteka statyczna gmp
+Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com gmp
+Summary(uk):   â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ - ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ
+Summary(ru):   âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ - ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
 
-* Tue Jan 12 1999 Michael K. Johnson <johnsonm@redhat.com>
-- libtoolize to work on arm
+%description static
+Static gmp library.
 
-* Thu Sep 10 1998 Cristian Gafton <gafton@redhat.com>
-- yet another touch of the spec file
+%description static -l pl
+Biblioteka statyczna gmp.
 
-* Wed Sep  2 1998 Michael Fulbright <msf@redhat.com>
-- looked over before inclusion in RH 5.2
+%description static -l pt_BR
+Bibliotecas estáticas para desenvolvimento com gmp.
 
-* Sat May 24 1998 Dick Porter <dick@cymru.net>
-- Patch Makefile.in, not Makefile
-- Don't specify i586, let configure decide the arch
+%description static -l uk
+ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
 
-* Sat Jan 24 1998 Marc Ewing <marc@redhat.com>
-- started with package from Toshio Kuratomi <toshiok@cats.ucsc.edu>
-- cleaned up file list
-- fixed up install-info support
+%description static -l ru
+üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
+
+%package c++
+Summary:       GNU arbitrary precision library - C++ interface
+Summary(pl):   Biblioteka arytmetyczna GNU - interfejs C++
+Group:         Libraries
+Requires:      %{name} = %{version}
+
+%description c++
+C++ class interface to GNU arbitrary precision library.
+
+%description c++ -l pl
+Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
+
+%package c++-devel
+Summary:       GNU arbitrary precition library - C++ interface headers
+Summary(pl):   Biblioteka arytmetyczna GNU - pliki nag³ówkowe interfejsu C++
+Group:         Development/Libraries
+Requires:      %{name}-c++ = %{version}
+Requires:      %{name}-devel = %{version}
+
+%description c++-devel
+Header files for C++ class interface to GNU arbitrary precision
+library.
+
+%description c++-devel -l pl
+Pliki nag³ówkowe interfejsu w postaci klas C++ do biblioteki
+arytmetycznej GNU.
+
+%package c++-static
+Summary:       GNU arbitrary precition library - C++ static library
+Summary(pl):   Biblioteka arytmetyczna GNU - statyczna biblioteka C++
+Group:         Development/Libraries
+Requires:      %{name}-c++-devel = %{version}
+
+%description c++-static
+Static version of C++ class interface to GNU arbitrary precision
+library.
+
+%description c++-static -l pl
+Statycza wersja interfejsu w postaci klas C++ do biblioteki
+arytmetycznej GNU.
 
 %prep
-%setup
+%setup -q
 %patch0 -p1
-%patch20 -p1
-
-# The patches from the gmp homepage are a bit messy to include via the %patch
-# macro.  If anyone knows a better way, they're welcome to change this...
+%if %(grep -q -e '--tag' `which libtool`; echo $?)
 %patch1 -p1
-cd mpq
-%patch2 -p0
-cd ../mpn
-%patch3 -p0
-cd ../mpz/tests
-%patch4 -p0
-cd ../..
-%patch5 -p1
-cd mpq
-%patch6 -p0
-cd ../mpz
-%patch7 -p0
+%endif
+%patch2 -p1
 
 %build
-libtoolize --copy --force
-./configure --prefix=/usr
-make CFLAGS="${RPM_OPT_FLAGS}"
+rm -f missing
+%{__libtoolize}
+%{__aclocal} -I mpfr
+%{__autoconf}
+%{__automake}
+%configure \
+       --with-cpu=%{_cpu} \
+       --enable-cxx \
+       --enable-fft
+
+%{__make}
 
 %install
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-mkdir -p ${RPM_BUILD_ROOT}/usr/lib ${RPM_BUILD_ROOT}/usr/info \
-         ${RPM_BUILD_ROOT}/usr/include
+rm -rf $RPM_BUILD_ROOT
 
-make CFLAGS="${RPM_OPT_FLAGS}" prefix=${RPM_BUILD_ROOT}/usr install
-gzip -9nf ${RPM_BUILD_ROOT}/usr/info/gmp.info*
-install -m 644 mpn/gmp-mparam.h ${RPM_BUILD_ROOT}/usr/include/
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-%postun
-/sbin/ldconfig
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%post  c++ -p /sbin/ldconfig
+%postun        c++ -p /sbin/ldconfig
 
 %post devel
-/sbin/install-info /usr/info/gmp.info.gz /usr/info/dir
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%preun devel
-if [ "$1" = 0 ]; then
-    /sbin/install-info --delete /usr/info/gmp.info.gz /usr/info/dir
-fi
-
-%clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+%postun devel
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %files
-%defattr ( - root root -)
-%doc COPYING
-/usr/lib/libgmp.so.2.0.2
-/usr/lib/libgmp.so.2
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libgmp.so.*.*
 
 %files devel
-%defattr ( - root root -)
-%doc SPEED NEWS README
-/usr/lib/libgmp.so
-/usr/lib/libgmp.a
-/usr/include/gmp.h
-/usr/include/gmp-mparam.h
-/usr/info/gmp.info*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmp.so
+%{_libdir}/libgmp.la
+%{_includedir}/gmp.h
+%{_infodir}/gmp.info*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgmp.a
+
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmpxx.so.*.*
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmpxx.so
+%{_libdir}/libgmpxx.la
+%{_includedir}/gmpxx.h
+
+%files c++-static
+%defattr(644,root,root,755)
+%{_libdir}/libgmpxx.a
This page took 0.073701 seconds and 4 git commands to generate.