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