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