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.bz2
20 # Source0-md5: 0bbaedc82fb30315b06b1588b9077cd3
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: texinfo
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The gmp package contains GNU MP, a library for arbitrary precision
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.
43 Install the gmp package if you need a fast arbitrary precision
46 %description -l de.UTF-8
47 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
48 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
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
52 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
53 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
54 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
56 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
57 beliebige Genauigket brauchen.
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
62 interfaces de alto o bajo nivel.
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.
73 Installez ce package si vous avez besoin d'une bibliothèque de calcul
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
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.
87 %description -l uk.UTF-8
88 Це бібліотека GNU довільної точності. Збірка програм з нею надає цим
89 програмам доступ до функцій для роботи з як завгодно великими числами
90 через інтерфейси як низького так і високого рівня.
92 %description -l ru.UTF-8
93 Это библиотека GNU произвольной точности. Сборка с ней предоставляет
94 доступ к функциям для работы со сколь угодно большими числами как
95 через низко-, так и через высокоуровневый интерфейс.
98 Summary: GNU Arbitrary Precision library header files and documentation
99 Summary(de.UTF-8): Entwicklungstools für GNU MP
100 Summary(es.UTF-8): Archivos de inclusión y documentación de la biblioteca gmp
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
103 Summary(pt_BR.UTF-8): Arquivos de inclusão e documentação da biblioteca gmp
104 Summary(uk.UTF-8): Інструменти розробки для бібліотеки GNU довільної точності
105 Summary(ru.UTF-8): Инструменты разработки для библиотеки GNU произвольной точности
106 Group: Development/Libraries
107 Requires: %{name} = %{version}-%{release}
108 Obsoletes: libgmp3-devel
111 The header files and documentation for using the GNU MP arbitrary
112 precision library in applications.
114 If you want to develop applications which will use the GNU MP library,
115 you'll need to install the gmp-devel package.
117 %description devel -l de.UTF-8
118 Header Files und Dokumentation zum Benutzen der GNU MP Library.
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.
124 %description devel -l fr.UTF-8
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
129 Vous n'avez besoin de ce package que si vous comptez programmer des
130 applications utilisant la bibliothèque GNU MP.
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.
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.
140 %description devel -l uk.UTF-8
141 Це бібліотека програміста, хедери та документація для використання
142 бібліотеки GNU довільної точності у ваших власних програмах.
144 %description devel -l ru.UTF-8
145 Это библиотека разработчика, хедеры и документация для использования
146 библиотеки GNU произвольной точности в ваших собственных программах.
149 Summary: GNU Arbitrary Precision static library
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 произвольной точности - статическая библиотека
154 Group: Development/Libraries
155 Requires: %{name}-devel = %{version}-%{release}
160 %description static -l pl.UTF-8
161 Biblioteka statyczna gmp.
163 %description static -l pt_BR.UTF-8
164 Bibliotecas estáticas para desenvolvimento com gmp.
166 %description static -l uk.UTF-8
167 Це статична бібліотека GNU довільної точності.
169 %description static -l ru.UTF-8
170 Это статическая библиотека GNU произвольной точности.
173 Summary: GNU arbitrary precision library - BSD-compatible MP library
174 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
176 # doesn't require base
179 This package contains BSD-compatible MP library based on GNU MP.
181 %description bsd -l pl.UTF-8
182 Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
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}
190 %description bsd-devel
191 This package contains BSD-compatible MP library header file.
193 %description bsd-devel -l pl.UTF-8
194 Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
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}
202 %description bsd-static
203 This package contains BSD-compatible MP static library based on GNU
206 %description bsd-static -l pl.UTF-8
207 Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
211 Summary: GNU arbitrary precision library - C++ interface
212 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - interfejs C++
214 Requires: %{name} = %{version}-%{release}
217 C++ class interface to GNU arbitrary precision library.
219 %description c++ -l pl.UTF-8
220 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
223 Summary: GNU arbitrary precition library - C++ interface headers
224 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - pliki nagłówkowe interfejsu C++
225 Group: Development/Libraries
226 Requires: %{name}-c++ = %{version}-%{release}
227 Requires: %{name}-devel = %{version}-%{release}
229 %description c++-devel
230 Header files for C++ class interface to GNU arbitrary precision
233 %description c++-devel -l pl.UTF-8
234 Pliki nagłówkowe interfejsu w postaci klas C++ do biblioteki
238 Summary: GNU arbitrary precition library - C++ static library
239 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - statyczna biblioteka C++
240 Group: Development/Libraries
241 Requires: %{name}-c++-devel = %{version}-%{release}
243 %description c++-static
244 Static version of C++ class interface to GNU arbitrary precision
247 %description c++-static -l pl.UTF-8
248 Statycza wersja interfejsu w postaci klas C++ do biblioteki
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)
267 --with-cpu=%{_target_cpu} \
268 %{?with_cxx:--enable-cxx} \
273 %{?with_tests:%{__make} check}
276 rm -rf $RPM_BUILD_ROOT
279 DESTDIR=$RPM_BUILD_ROOT
282 rm -rf $RPM_BUILD_ROOT
284 %post -p /sbin/ldconfig
285 %postun -p /sbin/ldconfig
287 %post devel -p /sbin/postshell
288 -/usr/sbin/fix-info-dir -c %{_infodir}
290 %postun devel -p /sbin/postshell
291 -/usr/sbin/fix-info-dir -c %{_infodir}
293 %post bsd -p /sbin/ldconfig
294 %postun bsd -p /sbin/ldconfig
296 %post c++ -p /sbin/ldconfig
297 %postun c++ -p /sbin/ldconfig
300 %defattr(644,root,root,755)
301 %doc AUTHORS ChangeLog NEWS README
302 %attr(755,root,root) %{_libdir}/libgmp.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libgmp.so.10
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libgmp.so
310 %{_infodir}/gmp.info*
313 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_libdir}/libmp.so.*.*.*
318 %attr(755,root,root) %ghost %{_libdir}/libmp.so.3
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/libmp.so
327 %defattr(644,root,root,755)
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*.*
334 %attr(755,root,root) %ghost %{_libdir}/libgmpxx.so.4
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libgmpxx.so
339 %{_libdir}/libgmpxx.la
340 %{_includedir}/gmpxx.h
343 %defattr(644,root,root,755)
344 %{_libdir}/libgmpxx.a