3 %bcond_without cxx # don't build C++ interface
4 %bcond_without tests # don't perform tests
6 Summary: GNU arbitrary precision library
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 произвольной точности
19 Source0: http://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.xz
20 # Source0-md5: 1e8edebe33bc3ac6de17df3201732825
21 Patch0: %{name}-info.patch
22 Patch1: %{name}-multilib.patch
23 Patch2: %{name}-cpu.patch
24 Patch3: %{name}-tinfo.patch
25 URL: http://gmplib.org/
26 BuildRequires: autoconf >= 2.59
27 BuildRequires: automake >= 1:1.8
28 %{?with_cxx:BuildRequires: libstdc++-devel}
29 BuildRequires: libtool >= 2:1.4d-3
30 BuildRequires: tar >= 1:1.22
31 BuildRequires: texinfo
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 The gmp package contains GNU MP, a library for arbitrary precision
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.
45 Install the gmp package if you need a fast arbitrary precision
48 %description -l de.UTF-8
49 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
50 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
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
54 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
55 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
56 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
58 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
59 beliebige Genauigket brauchen.
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
64 interfaces de alto o bajo nivel.
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.
75 Installez ce package si vous avez besoin d'une bibliothèque de calcul
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
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.
89 %description -l uk.UTF-8
90 Це бібліотека GNU довільної точності. Збірка програм з нею надає цим
91 програмам доступ до функцій для роботи з як завгодно великими числами
92 через інтерфейси як низького так і високого рівня.
94 %description -l ru.UTF-8
95 Это библиотека GNU произвольной точности. Сборка с ней предоставляет
96 доступ к функциям для работы со сколь угодно большими числами как
97 через низко-, так и через высокоуровневый интерфейс.
100 Summary: GNU Arbitrary Precision library header files and documentation
101 Summary(de.UTF-8): Entwicklungstools für GNU MP
102 Summary(es.UTF-8): Archivos de inclusión y documentación de la biblioteca gmp
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
105 Summary(pt_BR.UTF-8): Arquivos de inclusão e documentação da biblioteca gmp
106 Summary(uk.UTF-8): Інструменти розробки для бібліотеки GNU довільної точності
107 Summary(ru.UTF-8): Инструменты разработки для библиотеки GNU произвольной точности
108 Group: Development/Libraries
109 Requires: %{name} = %{version}-%{release}
110 Obsoletes: libgmp3-devel
113 The header files and documentation for using the GNU MP arbitrary
114 precision library in applications.
116 If you want to develop applications which will use the GNU MP library,
117 you'll need to install the gmp-devel package.
119 %description devel -l de.UTF-8
120 Header Files und Dokumentation zum Benutzen der GNU MP Library.
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.
126 %description devel -l fr.UTF-8
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
131 Vous n'avez besoin de ce package que si vous comptez programmer des
132 applications utilisant la bibliothèque GNU MP.
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.
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.
142 %description devel -l uk.UTF-8
143 Це бібліотека програміста, хедери та документація для використання
144 бібліотеки GNU довільної точності у ваших власних програмах.
146 %description devel -l ru.UTF-8
147 Это библиотека разработчика, хедеры и документация для использования
148 библиотеки GNU произвольной точности в ваших собственных программах.
151 Summary: GNU Arbitrary Precision static library
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 произвольной точности - статическая библиотека
156 Group: Development/Libraries
157 Requires: %{name}-devel = %{version}-%{release}
162 %description static -l pl.UTF-8
163 Biblioteka statyczna gmp.
165 %description static -l pt_BR.UTF-8
166 Bibliotecas estáticas para desenvolvimento com gmp.
168 %description static -l uk.UTF-8
169 Це статична бібліотека GNU довільної точності.
171 %description static -l ru.UTF-8
172 Это статическая библиотека GNU произвольной точности.
175 Summary: GNU arbitrary precision library - BSD-compatible MP library
176 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
178 # doesn't require base
181 This package contains BSD-compatible MP library based on GNU MP.
183 %description bsd -l pl.UTF-8
184 Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
187 Summary: GNU arbitrary precision library - BSD-compatible MP API
188 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - API MP kompatybilne z BSD
189 Group: Development/Libraries
190 Requires: %{name}-bsd = %{version}-%{release}
192 %description bsd-devel
193 This package contains BSD-compatible MP library header file.
195 %description bsd-devel -l pl.UTF-8
196 Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
199 Summary: GNU arbitrary precision library - BSD-compatible static MP library
200 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka statyczna MP kompatybilna z BSD
201 Group: Development/Libraries
202 Requires: %{name}-bsd-devel = %{version}-%{release}
204 %description bsd-static
205 This package contains BSD-compatible MP static library based on GNU
208 %description bsd-static -l pl.UTF-8
209 Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
213 Summary: GNU arbitrary precision library - C++ interface
214 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - interfejs C++
216 Requires: %{name} = %{version}-%{release}
219 C++ class interface to GNU arbitrary precision library.
221 %description c++ -l pl.UTF-8
222 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
225 Summary: GNU arbitrary precition library - C++ interface headers
226 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - pliki nagłówkowe interfejsu C++
227 Group: Development/Libraries
228 Requires: %{name}-c++ = %{version}-%{release}
229 Requires: %{name}-devel = %{version}-%{release}
231 %description c++-devel
232 Header files for C++ class interface to GNU arbitrary precision
235 %description c++-devel -l pl.UTF-8
236 Pliki nagłówkowe interfejsu w postaci klas C++ do biblioteki
240 Summary: GNU arbitrary precition library - C++ static library
241 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - statyczna biblioteka C++
242 Group: Development/Libraries
243 Requires: %{name}-c++-devel = %{version}-%{release}
245 %description c++-static
246 Static version of C++ class interface to GNU arbitrary precision
249 %description c++-static -l pl.UTF-8
250 Statycza wersja interfejsu w postaci klas C++ do biblioteki
256 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
257 # ugly hack, don't apply on other archs (also recheck sizes on each upgrade)
269 --with-cpu=%{_target_cpu} \
270 %{?with_cxx:--enable-cxx} \
275 %{?with_tests:%{__make} check}
278 rm -rf $RPM_BUILD_ROOT
281 DESTDIR=$RPM_BUILD_ROOT
284 rm -rf $RPM_BUILD_ROOT
286 %post -p /sbin/ldconfig
287 %postun -p /sbin/ldconfig
289 %post devel -p /sbin/postshell
290 -/usr/sbin/fix-info-dir -c %{_infodir}
292 %postun devel -p /sbin/postshell
293 -/usr/sbin/fix-info-dir -c %{_infodir}
295 %post bsd -p /sbin/ldconfig
296 %postun bsd -p /sbin/ldconfig
298 %post c++ -p /sbin/ldconfig
299 %postun c++ -p /sbin/ldconfig
302 %defattr(644,root,root,755)
303 %doc AUTHORS ChangeLog NEWS README
304 %attr(755,root,root) %{_libdir}/libgmp.so.*.*.*
305 %attr(755,root,root) %ghost %{_libdir}/libgmp.so.10
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/libgmp.so
312 %{_infodir}/gmp.info*
315 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/libmp.so.*.*.*
320 %attr(755,root,root) %ghost %{_libdir}/libmp.so.3
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/libmp.so
329 %defattr(644,root,root,755)
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*.*
336 %attr(755,root,root) %ghost %{_libdir}/libgmpxx.so.4
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/libgmpxx.so
341 %{_libdir}/libgmpxx.la
342 %{_includedir}/gmpxx.h
345 %defattr(644,root,root,755)
346 %{_libdir}/libgmpxx.a