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: 8aef50959acec2a1ad41d144ffe0f3b5
21 Patch0: %{name}-info.patch
22 Patch1: %{name}-multilib.patch
23 Patch2: %{name}-cpu.patch
24 Patch3: %{name}-tinfo.patch
25 Patch4: %{name}-am.patch
26 URL: http://gmplib.org/
27 BuildRequires: autoconf >= 2.59
28 BuildRequires: automake >= 1:1.8
29 %{?with_cxx:BuildRequires: libstdc++-devel}
30 BuildRequires: libtool >= 2:1.4d-3
31 BuildRequires: tar >= 1:1.22
32 BuildRequires: texinfo
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The gmp package contains GNU MP, a library for arbitrary precision
39 arithmetic, signed integers operations, rational numbers and floating
40 point numbers. GNU MP is designed for speed, for both small and very
41 large operands. GNU MP is fast for several reasons: It uses fullwords
42 as the basic arithmetic type, it uses fast algorithms, it carefully
43 optimizes assembly code for many CPUs' most common inner loops and it
44 generally emphasizes speed over simplicity/elegance in its operations.
46 Install the gmp package if you need a fast arbitrary precision
49 %description -l de.UTF-8
50 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
51 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
52 Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
53 Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
54 optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
55 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
56 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
57 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
59 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
60 beliebige Genauigket brauchen.
62 %description -l es.UTF-8
63 Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
64 funciones para manipular arbitrariamente grandes números con
65 interfaces de alto o bajo nivel.
67 %description -l fr.UTF-8
68 Ce package contient la bibliothèque GNU MP. Cette dernière permet de
69 calculer avec une grande précision sur des nombres entiers, rationnels
70 ou même des fractions, signés ou non. GNU MP a été conçue pour être
71 rapide pour les petits nombres ainsi que les très grands grâce à
72 plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
73 algorithmes optimisés, utilisation de l'assembleur pour les routines
74 critiques) parfois au détriment de la simplicité ou l'élégance.
76 Installez ce package si vous avez besoin d'une bibliothèque de calcul
79 %description -l pl.UTF-8
80 Pakiet zawiera bibliotekę arytmetyczną wysokiej precyzji. Daje ona
81 dostęp do szerokiego grona szybkich funkcji arytmetycznych
82 działających na liczbach całkowitych, rzeczywistych i
85 %description -l pt_BR.UTF-8
86 Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
87 funções para manipular arbitrariamente grandes números com interfaces
88 de alto ou baixo nível.
90 %description -l uk.UTF-8
91 Це бібліотека GNU довільної точності. Збірка програм з нею надає цим
92 програмам доступ до функцій для роботи з як завгодно великими числами
93 через інтерфейси як низького так і високого рівня.
95 %description -l ru.UTF-8
96 Это библиотека GNU произвольной точности. Сборка с ней предоставляет
97 доступ к функциям для работы со сколь угодно большими числами как
98 через низко-, так и через высокоуровневый интерфейс.
101 Summary: GNU Arbitrary Precision library header files and documentation
102 Summary(de.UTF-8): Entwicklungstools für GNU MP
103 Summary(es.UTF-8): Archivos de inclusión y documentación de la biblioteca gmp
104 Summary(fr.UTF-8): Outils de développement pour la bibliothèque de calcul GMP
105 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki gmp
106 Summary(pt_BR.UTF-8): Arquivos de inclusão e documentação da biblioteca gmp
107 Summary(uk.UTF-8): Інструменти розробки для бібліотеки GNU довільної точності
108 Summary(ru.UTF-8): Инструменты разработки для библиотеки GNU произвольной точности
109 Group: Development/Libraries
110 Requires: %{name} = %{version}-%{release}
111 Obsoletes: libgmp3-devel
114 The header files and documentation for using the GNU MP arbitrary
115 precision library in applications.
117 If you want to develop applications which will use the GNU MP library,
118 you'll need to install the gmp-devel package.
120 %description devel -l de.UTF-8
121 Header Files und Dokumentation zum Benutzen der GNU MP Library.
123 %description devel -l es.UTF-8
124 Estas son las bibliotecas, archivos de inclusión y documentación para
125 usar la biblioteca GNU de precisión arbitraria en tus programas.
127 %description devel -l fr.UTF-8
128 Ce package comprend les fichiers d'en-tête et la documentation
129 nécessaires pour utiliser la bibliothèque de calcul de précision dans
132 Vous n'avez besoin de ce package que si vous comptez programmer des
133 applications utilisant la bibliothèque GNU MP.
135 %description devel -l pl.UTF-8
136 Pliki nagłówkowe i dokumentacja do gmp. Dzięki temu pakietowi można
137 tworzyć własne programy z wykorzystaniem tej biblioteki.
139 %description devel -l pt_BR.UTF-8
140 Estas são as bibliotecas, arquivos de inclusão e documentação para
141 usar a biblioteca GNU de precisão arbitrária em seus programas.
143 %description devel -l uk.UTF-8
144 Це бібліотека програміста, хедери та документація для використання
145 бібліотеки GNU довільної точності у ваших власних програмах.
147 %description devel -l ru.UTF-8
148 Это библиотека разработчика, хедеры и документация для использования
149 библиотеки GNU произвольной точности в ваших собственных программах.
152 Summary: GNU Arbitrary Precision static library
153 Summary(pl.UTF-8): Biblioteka statyczna gmp
154 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gmp
155 Summary(uk.UTF-8): Бібліотека GNU довільної точності - статична бібліотека
156 Summary(ru.UTF-8): Библиотека GNU произвольной точности - статическая библиотека
157 Group: Development/Libraries
158 Requires: %{name}-devel = %{version}-%{release}
163 %description static -l pl.UTF-8
164 Biblioteka statyczna gmp.
166 %description static -l pt_BR.UTF-8
167 Bibliotecas estáticas para desenvolvimento com gmp.
169 %description static -l uk.UTF-8
170 Це статична бібліотека GNU довільної точності.
172 %description static -l ru.UTF-8
173 Это статическая библиотека GNU произвольной точности.
176 Summary: GNU arbitrary precision library - BSD-compatible MP library
177 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
179 # doesn't require base
182 This package contains BSD-compatible MP library based on GNU MP.
184 %description bsd -l pl.UTF-8
185 Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
188 Summary: GNU arbitrary precision library - BSD-compatible MP API
189 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - API MP kompatybilne z BSD
190 Group: Development/Libraries
191 Requires: %{name}-bsd = %{version}-%{release}
193 %description bsd-devel
194 This package contains BSD-compatible MP library header file.
196 %description bsd-devel -l pl.UTF-8
197 Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
200 Summary: GNU arbitrary precision library - BSD-compatible static MP library
201 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka statyczna MP kompatybilna z BSD
202 Group: Development/Libraries
203 Requires: %{name}-bsd-devel = %{version}-%{release}
205 %description bsd-static
206 This package contains BSD-compatible MP static library based on GNU
209 %description bsd-static -l pl.UTF-8
210 Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
214 Summary: GNU arbitrary precision library - C++ interface
215 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - interfejs C++
217 Requires: %{name} = %{version}-%{release}
220 C++ class interface to GNU arbitrary precision library.
222 %description c++ -l pl.UTF-8
223 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
226 Summary: GNU arbitrary precition library - C++ interface headers
227 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - pliki nagłówkowe interfejsu C++
228 Group: Development/Libraries
229 Requires: %{name}-c++ = %{version}-%{release}
230 Requires: %{name}-devel = %{version}-%{release}
232 %description c++-devel
233 Header files for C++ class interface to GNU arbitrary precision
236 %description c++-devel -l pl.UTF-8
237 Pliki nagłówkowe interfejsu w postaci klas C++ do biblioteki
241 Summary: GNU arbitrary precition library - C++ static library
242 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - statyczna biblioteka C++
243 Group: Development/Libraries
244 Requires: %{name}-c++-devel = %{version}-%{release}
246 %description c++-static
247 Static version of C++ class interface to GNU arbitrary precision
250 %description c++-static -l pl.UTF-8
251 Statycza wersja interfejsu w postaci klas C++ do biblioteki
257 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
258 # ugly hack, don't apply on other archs (also recheck sizes on each upgrade)
271 --with-cpu=%{_target_cpu} \
272 %{?with_cxx:--enable-cxx} \
277 %{?with_tests:%{__make} check}
280 rm -rf $RPM_BUILD_ROOT
283 DESTDIR=$RPM_BUILD_ROOT
286 rm -rf $RPM_BUILD_ROOT
288 %post -p /sbin/ldconfig
289 %postun -p /sbin/ldconfig
291 %post devel -p /sbin/postshell
292 -/usr/sbin/fix-info-dir -c %{_infodir}
294 %postun devel -p /sbin/postshell
295 -/usr/sbin/fix-info-dir -c %{_infodir}
297 %post bsd -p /sbin/ldconfig
298 %postun bsd -p /sbin/ldconfig
300 %post c++ -p /sbin/ldconfig
301 %postun c++ -p /sbin/ldconfig
304 %defattr(644,root,root,755)
305 %doc AUTHORS ChangeLog NEWS README
306 %attr(755,root,root) %{_libdir}/libgmp.so.*.*.*
307 %attr(755,root,root) %ghost %{_libdir}/libgmp.so.10
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libgmp.so
314 %{_infodir}/gmp.info*
317 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/libmp.so.*.*.*
322 %attr(755,root,root) %ghost %{_libdir}/libmp.so.3
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/libmp.so
331 %defattr(644,root,root,755)
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*.*
338 %attr(755,root,root) %ghost %{_libdir}/libgmpxx.so.4
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/libgmpxx.so
343 %{_libdir}/libgmpxx.la
344 %{_includedir}/gmpxx.h
347 %defattr(644,root,root,755)
348 %{_libdir}/libgmpxx.a