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