]> git.pld-linux.org Git - packages/gmp.git/blob - gmp.spec
- mpfr (static version) added.
[packages/gmp.git] / gmp.spec
1 #
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)
9 #
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 ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
18 Name:           gmp
19 Version:        4.1.3
20 Release:        2
21 License:        LGPL
22 Group:          Libraries
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
37 Obsoletes:      libgmp3
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %ifarch i586
41 %define _cpu %{?with_k62:k62}%{!?with_k62:%{?with_k6:k6}%{!?with_k6:%{?with_mmx:pentiummmx}%{!?with_mmx:i586}}}
42 %else
43 %ifarch i686
44 %define _cpu %{?with_p3mmx:pentium3}%{!?with_p3mmx:%{?with_k7:athlon}%{!?with_k7:%{?with_mmx:pentium2}%{!?with_mmx:i686}}}
45 %else
46 %define _cpu %{_target_cpu}
47 %endif
48 %endif
49
50 %description
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.
58
59 Install the gmp package if you need a fast arbitrary precision
60 library.
61
62 %description -l de
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.
71
72 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
73 beliebige Genauigket brauchen.
74
75 %description -l es
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.
79
80 %description -l fr
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.
88
89 Installez ce package si vous avez besoin d'une bibliothèque de calcul
90 de précision rapide
91
92 %description -l pl
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
96 zmiennoprzecinkowych.
97
98 %description -l pt_BR
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.
102
103 %description -l uk
104 ㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
105 ÐÒÏÇÒÁÍÁÍ ÄÏÓÔÕРÄÏ ÆÕÎËæʠÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
106 ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
107
108 %description -l ru
109 üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
110 ÄÏÓÔÕРˠÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
111 ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
112
113 %package devel
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
125
126 %description devel
127 The static libraries, header files and documentation for using the GNU
128 MP arbitrary precision library in applications.
129
130 If you want to develop applications which will use the GNU MP library,
131 you'll need to install the gmp-devel package.
132
133 %description devel -l de
134 Statische Libraries, Header Files und Dokumentation zum Benutzen der
135 GNU MP Library.
136
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.
140
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.
145
146 Vous n'avez besoin de ce package que si vous comptez programmer des
147 applications utilisant la bibliothèque GNU MP.
148
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.
152
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.
156
157 %description devel -l uk
158 ㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁæѠÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
159 ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
160
161 %description devel -l ru
162 üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
163 ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
164
165 %package static
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}
173
174 %description static
175 Static gmp library.
176
177 %description static -l pl
178 Biblioteka statyczna gmp.
179
180 %description static -l pt_BR
181 Bibliotecas estáticas para desenvolvimento com gmp.
182
183 %description static -l uk
184 ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
185
186 %description static -l ru
187 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
188
189 %package c++
190 Summary:        GNU arbitrary precision library - C++ interface
191 Summary(pl):    Biblioteka arytmetyczna GNU - interfejs C++
192 Group:          Libraries
193 Requires:       %{name} = %{version}-%{release}
194
195 %description c++
196 C++ class interface to GNU arbitrary precision library.
197
198 %description c++ -l pl
199 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
200
201 %package c++-devel
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}
207
208 %description c++-devel
209 Header files for C++ class interface to GNU arbitrary precision
210 library.
211
212 %description c++-devel -l pl
213 Pliki nag³ówkowe interfejsu w postaci klas C++ do biblioteki
214 arytmetycznej GNU.
215
216 %package c++-static
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}
221
222 %description c++-static
223 Static version of C++ class interface to GNU arbitrary precision
224 library.
225
226 %description c++-static -l pl
227 Statycza wersja interfejsu w postaci klas C++ do biblioteki
228 arytmetycznej GNU.
229
230 %package -n libmpfr-devel
231 Summary:        A library for multiple-precision floating-point computations with exact rounding
232 Group:          Development/Libraries
233
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).
243
244 %prep
245 %setup -q
246 %patch0 -p1
247 %patch1 -p1
248 %patch2 -p1
249 %patch3 -p1
250 %patch4 -p1
251 %patch5 -p1
252 patch mpf/sub.c %{PATCH6}
253
254 %build
255 rm -f missing
256 %{__libtoolize}
257 %{__aclocal} -I mpfr
258 %{__autoconf}
259 %{__automake}
260 %configure \
261         --with-cpu=%{_cpu} \
262         --enable-cxx \
263         --enable-fft \
264         --enable-mpfr
265
266 %{__make}
267
268 %install
269 rm -rf $RPM_BUILD_ROOT
270
271 %{__make} install \
272         DESTDIR=$RPM_BUILD_ROOT
273
274 %clean
275 rm -rf $RPM_BUILD_ROOT
276
277 %post   -p /sbin/ldconfig
278 %postun -p /sbin/ldconfig
279 %post   c++ -p /sbin/ldconfig
280 %postun c++ -p /sbin/ldconfig
281
282 %post devel
283 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
284
285 %postun devel
286 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
287
288 %files
289 %defattr(644,root,root,755)
290 %doc AUTHORS ChangeLog NEWS README
291 %attr(755,root,root) %{_libdir}/libgmp.so.*.*
292
293 %files devel
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/libgmp.so
296 %{_libdir}/libgmp.la
297 %{_includedir}/gmp.h
298 %{_infodir}/gmp.info*
299
300 %files static
301 %defattr(644,root,root,755)
302 %{_libdir}/libgmp.a
303
304 %files c++
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*
307
308 %files c++-devel
309 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_libdir}/libgmpxx.so
311 %{_libdir}/libgmpxx.la
312 %{_includedir}/gmpxx.h
313
314 %files c++-static
315 %defattr(644,root,root,755)
316 %{_libdir}/libgmpxx.a
317
318 %files -n libmpfr-devel
319 %defattr(644,root,root,755)
320 %{_includedir}/mpf2mpfr.h
321 %{_includedir}/mpfr*.h
322 %{_libdir}/libmpfr.a
323 %{_infodir}/mpfr.info*
This page took 0.063839 seconds and 3 git commands to generate.