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