]> git.pld-linux.org Git - packages/gmp.git/blob - gmp.spec
- added mpfr fix to info patch, fix-info-dir in libmpfr-devel post/postun
[packages/gmp.git] / gmp.spec
1 Summary:        GNU arbitrary precision library
2 Summary(de):    Beliebige Genauigkeits-Library
3 Summary(es):    Biblioteca de precisión arbitraria de la GNU
4 Summary(fr):    Bibliothèque de calcul de précision
5 Summary(pl):    Biblioteka arytmetyczna GNU
6 Summary(pt_BR): Biblioteca de precisão arbitrária da GNU
7 Summary(uk):    â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
8 Summary(ru):    âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
9 Name:           gmp
10 Version:        4.1.4
11 Release:        3
12 License:        LGPL
13 Group:          Libraries
14 Source0:        ftp://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.gz
15 # Source0-md5:  aa5e5fb3a7cdebe8c5b681a6cf4a670e
16 Patch0:         %{name}-info.patch
17 Patch1:         %{name}-gcc-version.patch
18 Patch2:         %{name}-amd64.patch
19 Patch3:         %{name}-acinclude.patch
20 Patch4:         %{name}-sparc64.patch
21 Patch5:         %{name}-cmpi.patch
22 # http://www.swox.com/gmp/#STATUS
23 Patch6:         %{name}-site.patch
24 URL:            http://www.swox.com/gmp/
25 BuildRequires:  autoconf >= 2.52
26 BuildRequires:  automake
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  libtool >= 2:1.4d-3
29 BuildRequires:  texinfo
30 Obsoletes:      libgmp3
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 The gmp package contains GNU MP, a library for arbitrary precision
35 arithmetic, signed integers operations, rational numbers and floating
36 point numbers. GNU MP is designed for speed, for both small and very
37 large operands. GNU MP is fast for several reasons: It uses fullwords
38 as the basic arithmetic type, it uses fast algorithms, it carefully
39 optimizes assembly code for many CPUs' most common inner loops and it
40 generally emphasizes speed over simplicity/elegance in its operations.
41
42 Install the gmp package if you need a fast arbitrary precision
43 library.
44
45 %description -l de
46 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
47 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
48 Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
49 Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
50 optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
51 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
52 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
53 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
54
55 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
56 beliebige Genauigket brauchen.
57
58 %description -l es
59 Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
60 funciones para manipular arbitrariamente grandes números con
61 interfaces de alto o bajo nivel.
62
63 %description -l fr
64 Ce package contient la bibliothèque GNU MP. Cette dernière permet de
65 calculer avec une grande précision sur des nombres entiers, rationnels
66 ou même des fractions, signés ou non. GNU MP a été conçue pour être
67 rapide pour les petits nombres ainsi que les très grands grâce à
68 plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
69 algorithmes optimisés, utilisation de l'assembleur pour les routines
70 critiques) parfois au détriment de la simplicité ou l'élégance.
71
72 Installez ce package si vous avez besoin d'une bibliothèque de calcul
73 de précision rapide
74
75 %description -l pl
76 Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
77 dostêp do szerokiego grona szybkich funkcji arytmetycznych
78 dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
79 zmiennoprzecinkowych.
80
81 %description -l pt_BR
82 Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
83 funções para manipular arbitrariamente grandes números com interfaces
84 de alto ou baixo nível.
85
86 %description -l uk
87 ㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
88 ÐÒÏÇÒÁÍÁÍ ÄÏÓÔÕРÄÏ ÆÕÎËæʠÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
89 ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
90
91 %description -l ru
92 üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
93 ÄÏÓÔÕРˠÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
94 ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
95
96 %package devel
97 Summary:        GNU Arbitrary Precision header files, static libraries, and documentation
98 Summary(de):    Entwicklungstools für GNU MP
99 Summary(es):    Archivos de inclusión, bibliotecas y documentación de la biblioteca gmp
100 Summary(fr):    Outils de développement pour la bibliothèque de calcul GMP
101 Summary(pl):    Pliki nag³ówkowe i dokumentacja do biblioteki gmp
102 Summary(pt_BR): Arquivos de inclusão, bibliotecas e documentação da biblioteca gmp
103 Summary(uk):    ¶ÎÓÔÒÕÍÅÎÔÉ ÒÏÚÒÏÂËÉ ÄÌѠ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
104 Summary(ru):    éÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
105 Group:          Development/Libraries
106 Requires:       %{name} = %{version}-%{release}
107 Obsoletes:      libgmp3-devel
108
109 %description devel
110 The static libraries, header files and documentation for using the GNU
111 MP arbitrary precision library in applications.
112
113 If you want to develop applications which will use the GNU MP library,
114 you'll need to install the gmp-devel package.
115
116 %description devel -l de
117 Statische Libraries, Header Files und Dokumentation zum Benutzen der
118 GNU MP Library.
119
120 %description devel -l es
121 Estas son las bibliotecas, archivos de inclusión y documentación para
122 usar la biblioteca GNU de precisión arbitraria en tus programas.
123
124 %description devel -l fr
125 Ce package comprend les bibliothèques statiques, les fichiers
126 d'en-tête et la documentation nécessaires pour utiliser la
127 bibliothèque de calcul de précision dans les applications.
128
129 Vous n'avez besoin de ce package que si vous comptez programmer des
130 applications utilisant la bibliothèque GNU MP.
131
132 %description devel -l pl
133 Pliki nag³ówkowe i dokumentacja do gmp. Dziêki temu pakietowi mo¿na
134 tworzyæ w³asne programy z wykorzystaniem tej biblioteki.
135
136 %description devel -l pt_BR
137 Estas são as bibliotecas, arquivos de inclusão e documentação para
138 usar a biblioteca GNU de precisão arbitrária em seus programas.
139
140 %description devel -l uk
141 ㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁæѠÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
142 ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
143
144 %description devel -l ru
145 üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
146 ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
147
148 %package static
149 Summary:        GNU Arbitrary Precision static library
150 Summary(pl):    Biblioteka statyczna gmp
151 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com gmp
152 Summary(uk):    â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ - ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ
153 Summary(ru):    âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ - ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ
154 Group:          Development/Libraries
155 Requires:       %{name}-devel = %{version}-%{release}
156
157 %description static
158 Static gmp library.
159
160 %description static -l pl
161 Biblioteka statyczna gmp.
162
163 %description static -l pt_BR
164 Bibliotecas estáticas para desenvolvimento com gmp.
165
166 %description static -l uk
167 ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
168
169 %description static -l ru
170 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
171
172 %package c++
173 Summary:        GNU arbitrary precision library - C++ interface
174 Summary(pl):    Biblioteka arytmetyczna GNU - interfejs C++
175 Group:          Libraries
176 Requires:       %{name} = %{version}-%{release}
177
178 %description c++
179 C++ class interface to GNU arbitrary precision library.
180
181 %description c++ -l pl
182 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
183
184 %package c++-devel
185 Summary:        GNU arbitrary precition library - C++ interface headers
186 Summary(pl):    Biblioteka arytmetyczna GNU - pliki nag³ówkowe interfejsu C++
187 Group:          Development/Libraries
188 Requires:       %{name}-c++ = %{version}-%{release}
189 Requires:       %{name}-devel = %{version}-%{release}
190
191 %description c++-devel
192 Header files for C++ class interface to GNU arbitrary precision
193 library.
194
195 %description c++-devel -l pl
196 Pliki nag³ówkowe interfejsu w postaci klas C++ do biblioteki
197 arytmetycznej GNU.
198
199 %package c++-static
200 Summary:        GNU arbitrary precition library - C++ static library
201 Summary(pl):    Biblioteka arytmetyczna GNU - statyczna biblioteka C++
202 Group:          Development/Libraries
203 Requires:       %{name}-c++-devel = %{version}-%{release}
204
205 %description c++-static
206 Static version of C++ class interface to GNU arbitrary precision
207 library.
208
209 %description c++-static -l pl
210 Statycza wersja interfejsu w postaci klas C++ do biblioteki
211 arytmetycznej GNU.
212
213 %package -n libmpfr-devel
214 Summary:        A library for multiple-precision floating-point computations with exact rounding
215 Summary(pl):    Biblioteka obliczeñ zmiennoprzecinkowych z wielokrotn± precyzj± i dok³adnym zaokr±glaniem
216 Group:          Development/Libraries
217
218 %description -n libmpfr-devel
219 The MPFR library is a C library for multiple-precision floating-point
220 computations with exact rounding (also called correct rounding). It is
221 based on the GMP multiple-precision library and should replace the MPF
222 class in further releases of GMP. The main goal of MPFR is to provide
223 a library for multiple-precision floating-point computation which is
224 both efficient and has a well-defined semantics. It copies the good
225 ideas from the ANSI/IEEE-754 standard for double-precision
226 floating-point arithmetic (53-bit mantissa).
227
228 %description -n libmpfr-devel -l pl
229 Biblioteka MPFR to biblioteka C do obliczeñ zmiennoprzecinkowych z
230 wielokrotn± precyzj± i dok³adnym zaokr±glaniem (zwanym tak¿e poprawnym
231 zaokr±glaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji i
232 powinna zast±piæ klasê MPF w kolejnych wydaniach GMP. G³ównym celem
233 MPFR jest dostarczenie biblioteki do obliczeñ zmiennoprzecinkowych
234 wielokrotnej precyzji, która jest wydajna i ma dobrze zdefiniowan±
235 semantykê. Powiela dobre idee ze standardu ANSI/IEEE-754 dla
236 arytmetyki zmiennoprzecinkowej podwójnej precyzji (z 53-bitow±
237 mantys±).
238
239 %prep
240 %setup -q
241 %patch0 -p1
242 %patch1 -p1
243 %patch2 -p1
244 %patch3 -p1
245 %patch4 -p1
246 %patch5 -p1
247 %patch6 -p0
248
249 %build
250 %{__libtoolize}
251 %{__aclocal} -I mpfr
252 %{__autoconf}
253 %{__automake}
254 %configure \
255         --with-cpu=%{_target_cpu} \
256         --enable-cxx \
257         --enable-fft \
258         --enable-mpfr
259
260 %{__make}
261
262 %install
263 rm -rf $RPM_BUILD_ROOT
264
265 %{__make} install \
266         DESTDIR=$RPM_BUILD_ROOT
267
268 %clean
269 rm -rf $RPM_BUILD_ROOT
270
271 %post   -p /sbin/ldconfig
272 %postun -p /sbin/ldconfig
273 %post   c++ -p /sbin/ldconfig
274 %postun c++ -p /sbin/ldconfig
275
276 %post devel
277 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
278
279 %postun devel
280 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
281
282 %post -n libmpfr-devel
283 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
284
285 %postun -n libmpfr-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.282159 seconds and 4 git commands to generate.