]>
Commit | Line | Data |
---|---|---|
7bd00e38 PS |
1 | # |
2 | # Conditional build: | |
6c60bde1 | 3 | %bcond_without cxx # don't build C++ interface |
7bd00e38 PS |
4 | %bcond_without tests # don't perform tests |
5 | # | |
b1529702 | 6 | Summary: GNU arbitrary precision library |
2452f82c ER |
7 | Summary(de.UTF-8): Beliebige Genauigkeits-Library |
8 | Summary(es.UTF-8): Biblioteca de precisión arbitraria de la GNU | |
9 | Summary(fr.UTF-8): Bibliothèque de calcul de précision | |
10 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU | |
11 | Summary(pt_BR.UTF-8): Biblioteca de precisão arbitrária da GNU | |
12 | Summary(uk.UTF-8): Бібліотека GNU довільної точності | |
13 | Summary(ru.UTF-8): Библиотека GNU произвольной точности | |
b1529702 | 14 | Name: gmp |
d322ecbb | 15 | Version: 4.2.2 |
8db3d4fa | 16 | Release: 4 |
4370e270 | 17 | License: LGPL v3+ |
b1529702 | 18 | Group: Libraries |
74e07df9 | 19 | Source0: http://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.bz2 |
d322ecbb | 20 | # Source0-md5: 7ce52531644e6d12f16911b7e3151f3f |
9248a340 | 21 | Patch0: %{name}-info.patch |
682b5d05 | 22 | Patch1: %{name}-multilib.patch |
8db3d4fa | 23 | Patch2: %{name}-cstdio.patch |
1dbed2cf | 24 | URL: http://gmplib.org/ |
c9e7d452 | 25 | BuildRequires: autoconf >= 2.52 |
0bbd3ebd | 26 | BuildRequires: automake |
6c60bde1 | 27 | %{?with_cxx:BuildRequires: libstdc++-devel} |
b6632802 | 28 | BuildRequires: libtool >= 2:1.4d-3 |
d0f3522c | 29 | BuildRequires: texinfo |
303a0208 | 30 | Obsoletes: libgmp3 |
9330e4d8 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48e3f5b4 | 32 | |
1d86a3b7 PS |
33 | %define specflags -Wl,-z,-noexecstack |
34 | ||
48e3f5b4 | 35 | %description |
f9486ea3 | 36 | The gmp package contains GNU MP, a library for arbitrary precision |
18dd239c | 37 | arithmetic, signed integers operations, rational numbers and floating |
38 | point numbers. GNU MP is designed for speed, for both small and very | |
39 | large operands. GNU MP is fast for several reasons: It uses fullwords | |
40 | as the basic arithmetic type, it uses fast algorithms, it carefully | |
41 | optimizes assembly code for many CPUs' most common inner loops and it | |
42 | generally emphasizes speed over simplicity/elegance in its operations. | |
f9486ea3 | 43 | |
18dd239c | 44 | Install the gmp package if you need a fast arbitrary precision |
45 | library. | |
f9486ea3 | 46 | |
ebc931e1 JR |
47 | %description -l de.UTF-8 |
48 | Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei | |
18dd239c | 49 | beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen, |
ebc931e1 JR |
50 | Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für |
51 | Geschwindigkeit sowohl für kleine als auch für sehr große Operanden | |
52 | optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt | |
18dd239c | 53 | fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle |
ebc931e1 | 54 | Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und |
f9486ea3 | 55 | legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen. |
56 | ||
ebc931e1 | 57 | Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für |
18dd239c | 58 | beliebige Genauigket brauchen. |
f9486ea3 | 59 | |
ebc931e1 JR |
60 | %description -l es.UTF-8 |
61 | Esta es la biblioteca GNU de precisión arbitraria. Da acceso a | |
62 | funciones para manipular arbitrariamente grandes números con | |
8a3662ea | 63 | interfaces de alto o bajo nivel. |
64 | ||
ebc931e1 JR |
65 | %description -l fr.UTF-8 |
66 | Ce package contient la bibliothèque GNU MP. Cette dernière permet de | |
67 | calculer avec une grande précision sur des nombres entiers, rationnels | |
68 | ou même des fractions, signés ou non. GNU MP a été conçue pour être | |
69 | rapide pour les petits nombres ainsi que les très grands grâce à | |
70 | plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés, | |
71 | algorithmes optimisés, utilisation de l'assembleur pour les routines | |
72 | critiques) parfois au détriment de la simplicité ou l'élégance. | |
73 | ||
74 | Installez ce package si vous avez besoin d'une bibliothèque de calcul | |
75 | de précision rapide | |
76 | ||
77 | %description -l pl.UTF-8 | |
78 | Pakiet zawiera bibliotekę arytmetyczną wysokiej precyzji. Daje ona | |
79 | dostęp do szerokiego grona szybkich funkcji arytmetycznych | |
80 | działających na liczbach całkowitych, rzeczywistych i | |
18dd239c | 81 | zmiennoprzecinkowych. |
48e3f5b4 | 82 | |
ebc931e1 JR |
83 | %description -l pt_BR.UTF-8 |
84 | Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a | |
85 | funções para manipular arbitrariamente grandes números com interfaces | |
86 | de alto ou baixo nível. | |
8a3662ea | 87 | |
ebc931e1 JR |
88 | %description -l uk.UTF-8 |
89 | Це бібліотека GNU довільної точності. Збірка програм з нею надає цим | |
90 | програмам доступ до функцій для роботи з як завгодно великими числами | |
91 | через інтерфейси як низького так і високого рівня. | |
a57fd0b9 | 92 | |
ebc931e1 JR |
93 | %description -l ru.UTF-8 |
94 | Это библиотека GNU произвольной точности. Сборка с ней предоставляет | |
95 | доступ к функциям для работы со сколь угодно большими числами как | |
96 | через низко-, так и через высокоуровневый интерфейс. | |
a57fd0b9 | 97 | |
b1529702 | 98 | %package devel |
4370e270 | 99 | Summary: GNU Arbitrary Precision library header files and documentation |
2452f82c | 100 | Summary(de.UTF-8): Entwicklungstools für GNU MP |
4370e270 | 101 | Summary(es.UTF-8): Archivos de inclusión y documentación de la biblioteca gmp |
2452f82c ER |
102 | Summary(fr.UTF-8): Outils de développement pour la bibliothèque de calcul GMP |
103 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki gmp | |
4370e270 | 104 | Summary(pt_BR.UTF-8): Arquivos de inclusão e documentação da biblioteca gmp |
2452f82c ER |
105 | Summary(uk.UTF-8): Інструменти розробки для бібліотеки GNU довільної точності |
106 | Summary(ru.UTF-8): Инструменты разработки для библиотеки GNU произвольной точности | |
d281082a | 107 | Group: Development/Libraries |
9330e4d8 | 108 | Requires: %{name} = %{version}-%{release} |
303a0208 | 109 | Obsoletes: libgmp3-devel |
48e3f5b4 | 110 | |
b1529702 | 111 | %description devel |
4370e270 JB |
112 | The header files and documentation for using the GNU MP arbitrary |
113 | precision library in applications. | |
f9486ea3 | 114 | |
115 | If you want to develop applications which will use the GNU MP library, | |
116 | you'll need to install the gmp-devel package. | |
117 | ||
ebc931e1 | 118 | %description devel -l de.UTF-8 |
4370e270 | 119 | Header Files und Dokumentation zum Benutzen der GNU MP Library. |
f9486ea3 | 120 | |
ebc931e1 JR |
121 | %description devel -l es.UTF-8 |
122 | Estas son las bibliotecas, archivos de inclusión y documentación para | |
123 | usar la biblioteca GNU de precisión arbitraria en tus programas. | |
8a3662ea | 124 | |
ebc931e1 | 125 | %description devel -l fr.UTF-8 |
4370e270 JB |
126 | Ce package comprend les fichiers d'en-tête et la documentation |
127 | nécessaires pour utiliser la bibliothèque de calcul de précision dans | |
128 | les applications. | |
f9486ea3 | 129 | |
130 | Vous n'avez besoin de ce package que si vous comptez programmer des | |
ebc931e1 | 131 | applications utilisant la bibliothèque GNU MP. |
48e3f5b4 | 132 | |
ebc931e1 JR |
133 | %description devel -l pl.UTF-8 |
134 | Pliki nagłówkowe i dokumentacja do gmp. Dzięki temu pakietowi można | |
135 | tworzyć własne programy z wykorzystaniem tej biblioteki. | |
48e3f5b4 | 136 | |
ebc931e1 JR |
137 | %description devel -l pt_BR.UTF-8 |
138 | Estas são as bibliotecas, arquivos de inclusão e documentação para | |
139 | usar a biblioteca GNU de precisão arbitrária em seus programas. | |
8a3662ea | 140 | |
ebc931e1 JR |
141 | %description devel -l uk.UTF-8 |
142 | Це бібліотека програміста, хедери та документація для використання | |
143 | бібліотеки GNU довільної точності у ваших власних програмах. | |
a57fd0b9 | 144 | |
ebc931e1 JR |
145 | %description devel -l ru.UTF-8 |
146 | Это библиотека разработчика, хедеры и документация для использования | |
147 | библиотеки GNU произвольной точности в ваших собственных программах. | |
a57fd0b9 | 148 | |
b1529702 | 149 | %package static |
97d79ea4 | 150 | Summary: GNU Arbitrary Precision static library |
2452f82c ER |
151 | Summary(pl.UTF-8): Biblioteka statyczna gmp |
152 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gmp | |
153 | Summary(uk.UTF-8): Бібліотека GNU довільної точності - статична бібліотека | |
154 | Summary(ru.UTF-8): Библиотека GNU произвольной точности - статическая библиотека | |
97d79ea4 | 155 | Group: Development/Libraries |
9330e4d8 | 156 | Requires: %{name}-devel = %{version}-%{release} |
48e3f5b4 | 157 | |
b1529702 | 158 | %description static |
97d79ea4 | 159 | Static gmp library. |
48e3f5b4 | 160 | |
ebc931e1 | 161 | %description static -l pl.UTF-8 |
97d79ea4 | 162 | Biblioteka statyczna gmp. |
48e3f5b4 | 163 | |
ebc931e1 JR |
164 | %description static -l pt_BR.UTF-8 |
165 | Bibliotecas estáticas para desenvolvimento com gmp. | |
8a3662ea | 166 | |
ebc931e1 JR |
167 | %description static -l uk.UTF-8 |
168 | Це статична бібліотека GNU довільної точності. | |
a57fd0b9 | 169 | |
ebc931e1 JR |
170 | %description static -l ru.UTF-8 |
171 | Это статическая библиотека GNU произвольной точности. | |
a57fd0b9 | 172 | |
4370e270 JB |
173 | %package bsd |
174 | Summary: GNU arbitrary precision library - BSD-compatible MP library | |
175 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD | |
176 | Group: Libraries | |
177 | # doesn't require base | |
178 | ||
179 | %description bsd | |
180 | This package contains BSD-compatible MP library based on GNU MP. | |
181 | ||
182 | %description bsd -l pl.UTF-8 | |
183 | Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP. | |
184 | ||
185 | %package bsd-devel | |
186 | Summary: GNU arbitrary precision library - BSD-compatible MP API | |
187 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - API MP kompatybilne z BSD | |
188 | Group: Development/Libraries | |
189 | Requires: %{name}-bsd = %{version}-%{release} | |
190 | ||
191 | %description bsd-devel | |
192 | This package contains BSD-compatible MP library header file. | |
193 | ||
194 | %description bsd-devel -l pl.UTF-8 | |
195 | Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD. | |
196 | ||
197 | %package bsd-static | |
198 | Summary: GNU arbitrary precision library - BSD-compatible static MP library | |
199 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka statyczna MP kompatybilna z BSD | |
200 | Group: Development/Libraries | |
201 | Requires: %{name}-bsd-devel = %{version}-%{release} | |
202 | ||
203 | %description bsd-static | |
204 | This package contains BSD-compatible MP static library based on GNU | |
205 | MP. | |
206 | ||
207 | %description bsd-static -l pl.UTF-8 | |
208 | Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą | |
209 | na GNU MP. | |
210 | ||
7a11ed15 JB |
211 | %package c++ |
212 | Summary: GNU arbitrary precision library - C++ interface | |
2452f82c | 213 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - interfejs C++ |
7a11ed15 | 214 | Group: Libraries |
9330e4d8 | 215 | Requires: %{name} = %{version}-%{release} |
7a11ed15 JB |
216 | |
217 | %description c++ | |
218 | C++ class interface to GNU arbitrary precision library. | |
219 | ||
ebc931e1 | 220 | %description c++ -l pl.UTF-8 |
7a11ed15 JB |
221 | Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU. |
222 | ||
223 | %package c++-devel | |
224 | Summary: GNU arbitrary precition library - C++ interface headers | |
2452f82c | 225 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - pliki nagłówkowe interfejsu C++ |
7a11ed15 | 226 | Group: Development/Libraries |
9330e4d8 | 227 | Requires: %{name}-c++ = %{version}-%{release} |
228 | Requires: %{name}-devel = %{version}-%{release} | |
7a11ed15 JB |
229 | |
230 | %description c++-devel | |
231 | Header files for C++ class interface to GNU arbitrary precision | |
232 | library. | |
233 | ||
ebc931e1 JR |
234 | %description c++-devel -l pl.UTF-8 |
235 | Pliki nagłówkowe interfejsu w postaci klas C++ do biblioteki | |
7a11ed15 JB |
236 | arytmetycznej GNU. |
237 | ||
238 | %package c++-static | |
239 | Summary: GNU arbitrary precition library - C++ static library | |
2452f82c | 240 | Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - statyczna biblioteka C++ |
7a11ed15 | 241 | Group: Development/Libraries |
9330e4d8 | 242 | Requires: %{name}-c++-devel = %{version}-%{release} |
7a11ed15 JB |
243 | |
244 | %description c++-static | |
245 | Static version of C++ class interface to GNU arbitrary precision | |
246 | library. | |
247 | ||
ebc931e1 | 248 | %description c++-static -l pl.UTF-8 |
7a11ed15 JB |
249 | Statycza wersja interfejsu w postaci klas C++ do biblioteki |
250 | arytmetycznej GNU. | |
251 | ||
48e3f5b4 | 252 | %prep |
9248a340 | 253 | %setup -q |
254 | %patch0 -p1 | |
682b5d05 JB |
255 | %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64 |
256 | # ugly hack, don't apply on other archs (also recheck sizes on each upgrade) | |
257 | %patch1 -p1 | |
258 | %endif | |
8db3d4fa | 259 | %patch2 -p1 |
48e3f5b4 | 260 | |
261 | %build | |
e55933ee | 262 | %{__libtoolize} |
83ba0b0e | 263 | %{__aclocal} |
3850e6d4 | 264 | %{__autoconf} |
265 | %{__automake} | |
0bbd3ebd | 266 | %configure \ |
6c92ca7b | 267 | --with-cpu=%{_target_cpu} \ |
6c60bde1 | 268 | %{?with_cxx:--enable-cxx} \ |
4370e270 JB |
269 | --enable-fft \ |
270 | --enable-mpbsd | |
0bbd3ebd | 271 | |
b6d26140 | 272 | %{__make} |
7bd00e38 | 273 | %{?with_tests:%{__make} check} |
48e3f5b4 | 274 | |
275 | %install | |
e5b58aed | 276 | rm -rf $RPM_BUILD_ROOT |
277 | ||
93fa3154 | 278 | %{__make} install \ |
b6d26140 | 279 | DESTDIR=$RPM_BUILD_ROOT |
48e3f5b4 | 280 | |
0bbd3ebd JB |
281 | %clean |
282 | rm -rf $RPM_BUILD_ROOT | |
283 | ||
b1529702 | 284 | %post -p /sbin/ldconfig |
285 | %postun -p /sbin/ldconfig | |
48e3f5b4 | 286 | |
a1854ba5 ER |
287 | %post devel -p /sbin/postshell |
288 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
48e3f5b4 | 289 | |
a1854ba5 ER |
290 | %postun devel -p /sbin/postshell |
291 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
48e3f5b4 | 292 | |
4370e270 JB |
293 | %post bsd -p /sbin/ldconfig |
294 | %postun bsd -p /sbin/ldconfig | |
295 | ||
296 | %post c++ -p /sbin/ldconfig | |
297 | %postun c++ -p /sbin/ldconfig | |
298 | ||
48e3f5b4 | 299 | %files |
e5b58aed | 300 | %defattr(644,root,root,755) |
7a11ed15 | 301 | %doc AUTHORS ChangeLog NEWS README |
4370e270 JB |
302 | %attr(755,root,root) %{_libdir}/libgmp.so.*.*.* |
303 | %attr(755,root,root) %ghost %{_libdir}/libgmp.so.3 | |
48e3f5b4 | 304 | |
305 | %files devel | |
e5b58aed | 306 | %defattr(644,root,root,755) |
7a11ed15 | 307 | %attr(755,root,root) %{_libdir}/libgmp.so |
14aacb15 | 308 | %{_libdir}/libgmp.la |
7a11ed15 | 309 | %{_includedir}/gmp.h |
b25a5386 | 310 | %{_infodir}/gmp.info* |
b1529702 | 311 | |
e5b58aed | 312 | %files static |
313 | %defattr(644,root,root,755) | |
7a11ed15 JB |
314 | %{_libdir}/libgmp.a |
315 | ||
4370e270 JB |
316 | %files bsd |
317 | %attr(755,root,root) %{_libdir}/libmp.so.*.*.* | |
318 | %attr(755,root,root) %ghost %{_libdir}/libmp.so.3 | |
319 | ||
320 | %files bsd-devel | |
321 | %defattr(644,root,root,755) | |
322 | %attr(755,root,root) %{_libdir}/libmp.so | |
323 | %{_libdir}/libmp.la | |
324 | %{_includedir}/mp.h | |
325 | ||
326 | %files bsd-static | |
327 | %defattr(644,root,root,755) | |
328 | %{_libdir}/libmp.a | |
329 | ||
6c60bde1 | 330 | %if %{with cxx} |
7a11ed15 JB |
331 | %files c++ |
332 | %defattr(644,root,root,755) | |
4370e270 JB |
333 | %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*.* |
334 | %attr(755,root,root) %ghost %{_libdir}/libgmpxx.so.4 | |
7a11ed15 JB |
335 | |
336 | %files c++-devel | |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_libdir}/libgmpxx.so | |
14aacb15 | 339 | %{_libdir}/libgmpxx.la |
7a11ed15 JB |
340 | %{_includedir}/gmpxx.h |
341 | ||
342 | %files c++-static | |
343 | %defattr(644,root,root,755) | |
344 | %{_libdir}/libgmpxx.a | |
6c60bde1 | 345 | %endif |