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