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