]> git.pld-linux.org Git - packages/gmp.git/blob - gmp.spec
- updated to 4.1.2
[packages/gmp.git] / gmp.spec
1 #
2 # FYI: gmp didn't compile with devel version of libtool (1.4e)
3 #
4 # Conditional build (only one option at time makes sense; if more specified
5 #   - only "highest" is used):
6 # _with_mmx     - with MMX instructions                 (i586, i686 targets)
7 # _with_p3mmx   - with Pentium /// MMX instructions     (i686 target)
8 # _with_k6      - with AMD K6 instructions              (i586 target)
9 # _with_k62     - with AMD K6-2/K6-3 instructions       (i586 target)
10 # _with_k7      - with AMD Athlon/Duron instructions    (i686 target)
11
12 Summary:        GNU arbitrary precision library
13 Summary(de):    Beliebige Genauigkeits-Library
14 Summary(es):    Biblioteca de precisión arbitraria de la GNU
15 Summary(fr):    Bibliothèque de calcul de précision
16 Summary(pl):    Biblioteka arytmetyczna GNU
17 Summary(pt_BR): Biblioteca de precisão arbitrária da GNU
18 Summary(uk):    â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
19 Summary(ru):    âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
20 Name:           gmp
21 Version:        4.1.2
22 Release:        1
23 License:        LGPL
24 Group:          Libraries
25 Source0:        ftp://ftp.gnu.org/pub/gnu/gmp/%{name}-%{version}.tar.gz
26 Patch0:         %{name}-info.patch
27 Patch1:         %{name}-am_fix.patch
28 Patch2:         %{name}-asmcpu.patch
29 URL:            http://www.swox.com/gmp/
30 BuildRequires:  autoconf
31 BuildRequires:  automake
32 BuildRequires:  libtool
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Obsoletes:      libgmp3
35
36 %ifarch i586
37 %define _cpu %{?_with_k62:k62}%{!?_with_k62:%{?_with_k6:k6}%{!?_with_k6:%{?_with_mmx:pentiummmx}%{!?_with_mmx:i586}}}
38 %else
39 %ifarch i686
40 %define _cpu %{?_with_p3mmx:pentium3}%{!?_with_p3mmx:%{?_with_k7:athlon}%{!?_with_k7:%{?_with_mmx:pentium2}%{!?_with_mmx:i686}}}
41 %else
42 %define _cpu %{_arch}
43 %endif
44 %endif
45
46 %description
47 The gmp package contains GNU MP, a library for arbitrary precision
48 arithmetic, signed integers operations, rational numbers and floating
49 point numbers. GNU MP is designed for speed, for both small and very
50 large operands. GNU MP is fast for several reasons: It uses fullwords
51 as the basic arithmetic type, it uses fast algorithms, it carefully
52 optimizes assembly code for many CPUs' most common inner loops and it
53 generally emphasizes speed over simplicity/elegance in its operations.
54
55 Install the gmp package if you need a fast arbitrary precision
56 library.
57
58 %description -l de
59 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
60 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
61 Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
62 Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
63 optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
64 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
65 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
66 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
67
68 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
69 beliebige Genauigket brauchen.
70
71 %description -l es
72 Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
73 funciones para manipular arbitrariamente grandes números con
74 interfaces de alto o bajo nivel.
75
76 %description -l fr
77 Ce package contient la bibliothèque GNU MP. Cette dernière permet de
78 calculer avec une grande précision sur des nombres entiers, rationnels
79 ou même des fractions, signés ou non. GNU MP a été conçue pour être
80 rapide pour les petits nombres ainsi que les très grands grâce à
81 plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
82 algorithmes optimisés, utilisation de l'assembleur pour les routines
83 critiques) parfois au détriment de la simplicité ou l'élégance.
84
85 Installez ce package si vous avez besoin d'une bibliothèque de calcul
86 de précision rapide
87
88 %description -l pl
89 Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
90 dostêp do szerokiego grona szybkich funkcji arytmetycznych
91 dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
92 zmiennoprzecinkowych.
93
94 %description -l pt_BR
95 Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
96 funções para manipular arbitrariamente grandes números com interfaces
97 de alto ou baixo nível.
98
99 %description -l uk
100 ㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
101 ÐÒÏÇÒÁÍÁÍ ÄÏÓÔÕРÄÏ ÆÕÎËæʠÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
102 ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
103
104 %description -l ru
105 üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
106 ÄÏÓÔÕРˠÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
107 ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
108
109 %package devel
110 Summary:        GNU Arbitrary Precision header files, static libraries, and documentation
111 Summary(de):    Entwicklungstools für GNU MP
112 Summary(es):    Archivos de inclusión, bibliotecas y documentación de la biblioteca gmp
113 Summary(fr):    Outils de développement pour la bibliothèque de calcul GMP
114 Summary(pl):    Pliki nag³ówkowe i dokumentacja do biblioteki gmp
115 Summary(pt_BR): Arquivos de inclusão, bibliotecas e documentação da biblioteca gmp
116 Summary(uk):    ¶ÎÓÔÒÕÍÅÎÔÉ ÒÏÚÒÏÂËÉ ÄÌѠ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
117 Summary(ru):    éÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
118 Group:          Development/Libraries
119 Requires:       %{name} = %{version}
120 Obsoletes:      libgmp3-devel
121
122 %description devel
123 The static libraries, header files and documentation for using the GNU
124 MP arbitrary precision library in applications.
125
126 If you want to develop applications which will use the GNU MP library,
127 you'll need to install the gmp-devel package.
128
129 %description devel -l de
130 Statische Libraries, Header Files und Dokumentation zum Benutzen der
131 GNU MP Library.
132
133 %description devel -l es
134 Estas son las bibliotecas, archivos de inclusión y documentación para
135 usar la biblioteca GNU de precisión arbitraria en tus programas.
136
137 %description devel -l fr
138 Ce package comprend les bibliothèques statiques, les fichiers
139 d'en-tête et la documentation nécessaires pour utiliser la
140 bibliothèque de calcul de précision dans les applications.
141
142 Vous n'avez besoin de ce package que si vous comptez programmer des
143 applications utilisant la bibliothèque GNU MP.
144
145 %description devel -l pl
146 Pliki nag³ówkowe i dokumentacja do gmp. Dziêki temu pakietowi bêdziesz
147 móg³ tworzyæ w³asne programy z wykorzystaniem tej biblioteki.
148
149 %description devel -l pt_BR
150 Estas são as bibliotecas, arquivos de inclusão e documentação para
151 usar a biblioteca GNU de precisão arbitrária em seus programas.
152
153 %description devel -l uk
154 ㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁæѠÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
155 ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
156
157 %description devel -l ru
158 üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
159 ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
160
161 %package static
162 Summary:        GNU Arbitrary Precision static library
163 Summary(pl):    Biblioteka statyczna gmp
164 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com gmp
165 Summary(uk):    â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ - ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ
166 Summary(ru):    âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ - ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ
167 Group:          Development/Libraries
168 Requires:       %{name}-devel = %{version}
169
170 %description static
171 Static gmp library.
172
173 %description static -l pl
174 Biblioteka statyczna gmp.
175
176 %description static -l pt_BR
177 Bibliotecas estáticas para desenvolvimento com gmp.
178
179 %description static -l uk
180 ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
181
182 %description static -l ru
183 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
184
185 %package c++
186 Summary:        GNU arbitrary precision library - C++ interface
187 Summary(pl):    Biblioteka arytmetyczna GNU - interfejs C++
188 Group:          Libraries
189 Requires:       %{name} = %{version}
190
191 %description c++
192 C++ class interface to GNU arbitrary precision library.
193
194 %description c++ -l pl
195 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
196
197 %package c++-devel
198 Summary:        GNU arbitrary precition library - C++ interface headers
199 Summary(pl):    Biblioteka arytmetyczna GNU - pliki nag³ówkowe interfejsu C++
200 Group:          Development/Libraries
201 Requires:       %{name}-c++ = %{version}
202 Requires:       %{name}-devel = %{version}
203
204 %description c++-devel
205 Header files for C++ class interface to GNU arbitrary precision
206 library.
207
208 %description c++-devel -l pl
209 Pliki nag³ówkowe interfejsu w postaci klas C++ do biblioteki
210 arytmetycznej GNU.
211
212 %package c++-static
213 Summary:        GNU arbitrary precition library - C++ static library
214 Summary(pl):    Biblioteka arytmetyczna GNU - statyczna biblioteka C++
215 Group:          Development/Libraries
216 Requires:       %{name}-c++-devel = %{version}
217
218 %description c++-static
219 Static version of C++ class interface to GNU arbitrary precision
220 library.
221
222 %description c++-static -l pl
223 Statycza wersja interfejsu w postaci klas C++ do biblioteki
224 arytmetycznej GNU.
225
226 %prep
227 %setup -q
228 %patch0 -p1
229 %if %(grep -q -e '--tag' `which libtool`; echo $?)
230 %patch1 -p1
231 %endif
232 %patch2 -p1
233
234 %build
235 rm -f missing
236 %{__libtoolize}
237 %{__aclocal} -I mpfr
238 %{__autoconf}
239 %{__automake}
240 %configure \
241         --with-cpu=%{_cpu} \
242         --enable-cxx \
243         --enable-fft
244
245 %{__make}
246
247 %install
248 rm -rf $RPM_BUILD_ROOT
249
250 %{__make} install \
251         DESTDIR=$RPM_BUILD_ROOT
252
253 %clean
254 rm -rf $RPM_BUILD_ROOT
255
256 %post   -p /sbin/ldconfig
257 %postun -p /sbin/ldconfig
258 %post   c++ -p /sbin/ldconfig
259 %postun c++ -p /sbin/ldconfig
260
261 %post devel
262 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
263
264 %postun devel
265 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
266
267 %files
268 %defattr(644,root,root,755)
269 %doc AUTHORS ChangeLog NEWS README
270 %attr(755,root,root) %{_libdir}/libgmp.so.*.*
271
272 %files devel
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libgmp.so
275 %{_libdir}/libgmp.la
276 %{_includedir}/gmp.h
277 %{_infodir}/gmp.info*
278
279 %files static
280 %defattr(644,root,root,755)
281 %{_libdir}/libgmp.a
282
283 %files c++
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*
286
287 %files c++-devel
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libgmpxx.so
290 %{_libdir}/libgmpxx.la
291 %{_includedir}/gmpxx.h
292
293 %files c++-static
294 %defattr(644,root,root,755)
295 %{_libdir}/libgmpxx.a
This page took 0.368522 seconds and 4 git commands to generate.