2 # Conditional build (only one option at time makes sense; if more specified
3 # - only "highest" is used):
4 %bcond_with mmx # with MMX instructions (i586, i686 targets)
5 %bcond_with p3mmx # with Pentium /// MMX instructions (i686 target)
6 %bcond_with k6 # with AMD K6 instructions (i586 target)
7 %bcond_with k62 # with AMD K6-2/K6-3 instructions (i586 target)
8 %bcond_with k7 # with AMD Athlon/Duron instructions (i686 target)
10 Summary: GNU arbitrary precision library
11 Summary(de): Beliebige Genauigkeits-Library
12 Summary(es): Biblioteca de precisión arbitraria de la GNU
13 Summary(fr): Bibliothèque de calcul de précision
14 Summary(pl): Biblioteka arytmetyczna GNU
15 Summary(pt_BR): Biblioteca de precisão arbitrária da GNU
16 Summary(uk): â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
17 Summary(ru): âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
23 Source0: ftp://ftp.gnu.org/pub/gnu/gmp/%{name}-%{version}.tar.gz
24 # Source0-md5: bdbb9136fa22a0ccf028d0f87aae1dd2
25 Patch0: %{name}-info.patch
26 Patch1: %{name}-asmcpu.patch
27 Patch2: %{name}-gcc-version.patch
28 Patch3: %{name}-amd64.patch
29 Patch4: %{name}-acinclude.patch
30 Patch5: %{name}-sparc64.patch
31 Patch6: http://www.swox.com/gmp/patches/mpf_sub.c.diff
32 URL: http://www.swox.com/gmp/
33 BuildRequires: autoconf >= 2.52
34 BuildRequires: automake
35 BuildRequires: libstdc++-devel
36 BuildRequires: libtool >= 2:1.4d-3
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _cpu %{?with_k62:k62}%{!?with_k62:%{?with_k6:k6}%{!?with_k6:%{?with_mmx:pentiummmx}%{!?with_mmx:i586}}}
44 %define _cpu %{?with_p3mmx:pentium3}%{!?with_p3mmx:%{?with_k7:athlon}%{!?with_k7:%{?with_mmx:pentium2}%{!?with_mmx:i686}}}
46 %define _cpu %{_target_cpu}
51 The gmp package contains GNU MP, a library for arbitrary precision
52 arithmetic, signed integers operations, rational numbers and floating
53 point numbers. GNU MP is designed for speed, for both small and very
54 large operands. GNU MP is fast for several reasons: It uses fullwords
55 as the basic arithmetic type, it uses fast algorithms, it carefully
56 optimizes assembly code for many CPUs' most common inner loops and it
57 generally emphasizes speed over simplicity/elegance in its operations.
59 Install the gmp package if you need a fast arbitrary precision
63 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
64 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
65 Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
66 Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
67 optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
68 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
69 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
70 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
72 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
73 beliebige Genauigket brauchen.
76 Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
77 funciones para manipular arbitrariamente grandes números con
78 interfaces de alto o bajo nivel.
81 Ce package contient la bibliothèque GNU MP. Cette dernière permet de
82 calculer avec une grande précision sur des nombres entiers, rationnels
83 ou même des fractions, signés ou non. GNU MP a été conçue pour être
84 rapide pour les petits nombres ainsi que les très grands grâce à
85 plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
86 algorithmes optimisés, utilisation de l'assembleur pour les routines
87 critiques) parfois au détriment de la simplicité ou l'élégance.
89 Installez ce package si vous avez besoin d'une bibliothèque de calcul
93 Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
94 dostêp do szerokiego grona szybkich funkcji arytmetycznych
95 dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
99 Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
100 funções para manipular arbitrariamente grandes números com interfaces
101 de alto ou baixo nível.
104 ㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
105 ÐÒÏÇÒÁÍÁÍ ÄÏÓÔÕÐ ÄÏ ÆÕÎËÃ¦Ê ÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
106 ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
109 üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
110 ÄÏÓÔÕÐ Ë ÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
111 ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
114 Summary: GNU Arbitrary Precision header files, static libraries, and documentation
115 Summary(de): Entwicklungstools für GNU MP
116 Summary(es): Archivos de inclusión, bibliotecas y documentación de la biblioteca gmp
117 Summary(fr): Outils de développement pour la bibliothèque de calcul GMP
118 Summary(pl): Pliki nag³ówkowe i dokumentacja do biblioteki gmp
119 Summary(pt_BR): Arquivos de inclusão, bibliotecas e documentação da biblioteca gmp
120 Summary(uk): ¶ÎÓÔÒÕÍÅÎÔÉ ÒÏÚÒÏÂËÉ ÄÌÑ Â¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
121 Summary(ru): éÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
122 Group: Development/Libraries
123 Requires: %{name} = %{version}-%{release}
124 Obsoletes: libgmp3-devel
127 The static libraries, header files and documentation for using the GNU
128 MP arbitrary precision library in applications.
130 If you want to develop applications which will use the GNU MP library,
131 you'll need to install the gmp-devel package.
133 %description devel -l de
134 Statische Libraries, Header Files und Dokumentation zum Benutzen der
137 %description devel -l es
138 Estas son las bibliotecas, archivos de inclusión y documentación para
139 usar la biblioteca GNU de precisión arbitraria en tus programas.
141 %description devel -l fr
142 Ce package comprend les bibliothèques statiques, les fichiers
143 d'en-tête et la documentation nécessaires pour utiliser la
144 bibliothèque de calcul de précision dans les applications.
146 Vous n'avez besoin de ce package que si vous comptez programmer des
147 applications utilisant la bibliothèque GNU MP.
149 %description devel -l pl
150 Pliki nag³ówkowe i dokumentacja do gmp. Dziêki temu pakietowi bêdziesz
151 móg³ tworzyæ w³asne programy z wykorzystaniem tej biblioteki.
153 %description devel -l pt_BR
154 Estas são as bibliotecas, arquivos de inclusão e documentação para
155 usar a biblioteca GNU de precisão arbitrária em seus programas.
157 %description devel -l uk
158 ㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁÃ¦Ñ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
159 ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
161 %description devel -l ru
162 üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
163 ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
166 Summary: GNU Arbitrary Precision static library
167 Summary(pl): Biblioteka statyczna gmp
168 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com gmp
169 Summary(uk): â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ - ÓÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ
170 Summary(ru): âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ - ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ
171 Group: Development/Libraries
172 Requires: %{name}-devel = %{version}-%{release}
177 %description static -l pl
178 Biblioteka statyczna gmp.
180 %description static -l pt_BR
181 Bibliotecas estáticas para desenvolvimento com gmp.
183 %description static -l uk
184 ãÅ ÓÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
186 %description static -l ru
187 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
190 Summary: GNU arbitrary precision library - C++ interface
191 Summary(pl): Biblioteka arytmetyczna GNU - interfejs C++
193 Requires: %{name} = %{version}-%{release}
196 C++ class interface to GNU arbitrary precision library.
198 %description c++ -l pl
199 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
202 Summary: GNU arbitrary precition library - C++ interface headers
203 Summary(pl): Biblioteka arytmetyczna GNU - pliki nag³ówkowe interfejsu C++
204 Group: Development/Libraries
205 Requires: %{name}-c++ = %{version}-%{release}
206 Requires: %{name}-devel = %{version}-%{release}
208 %description c++-devel
209 Header files for C++ class interface to GNU arbitrary precision
212 %description c++-devel -l pl
213 Pliki nag³ówkowe interfejsu w postaci klas C++ do biblioteki
217 Summary: GNU arbitrary precition library - C++ static library
218 Summary(pl): Biblioteka arytmetyczna GNU - statyczna biblioteka C++
219 Group: Development/Libraries
220 Requires: %{name}-c++-devel = %{version}-%{release}
222 %description c++-static
223 Static version of C++ class interface to GNU arbitrary precision
226 %description c++-static -l pl
227 Statycza wersja interfejsu w postaci klas C++ do biblioteki
230 %package -n libmpfr-devel
231 Summary: A library for multiple-precision floating-point computations with exact rounding
232 Group: Development/Libraries
234 %description -n libmpfr-devel
235 The MPFR library is a C library for multiple-precision floating-point
236 computations with exact rounding (also called correct rounding). It is
237 based on the GMP multiple-precision library and should replace the MPF
238 class in further releases of GMP. The main goal of MPFR is to provide
239 a library for multiple-precision floating-point computation which is
240 both efficient and has a well-defined semantics. It copies the good
241 ideas from the ANSI/IEEE-754 standard for double-precision
242 floating-point arithmetic (53-bit mantissa).
252 patch mpf/sub.c %{PATCH6}
269 rm -rf $RPM_BUILD_ROOT
272 DESTDIR=$RPM_BUILD_ROOT
275 rm -rf $RPM_BUILD_ROOT
277 %post -p /sbin/ldconfig
278 %postun -p /sbin/ldconfig
279 %post c++ -p /sbin/ldconfig
280 %postun c++ -p /sbin/ldconfig
283 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
286 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
289 %defattr(644,root,root,755)
290 %doc AUTHORS ChangeLog NEWS README
291 %attr(755,root,root) %{_libdir}/libgmp.so.*.*
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/libgmp.so
298 %{_infodir}/gmp.info*
301 %defattr(644,root,root,755)
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*
309 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_libdir}/libgmpxx.so
311 %{_libdir}/libgmpxx.la
312 %{_includedir}/gmpxx.h
315 %defattr(644,root,root,755)
316 %{_libdir}/libgmpxx.a
318 %files -n libmpfr-devel
319 %defattr(644,root,root,755)
320 %{_includedir}/mpf2mpfr.h
321 %{_includedir}/mpfr*.h
323 %{_infodir}/mpfr.info*