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