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