]> git.pld-linux.org Git - packages/gmp.git/blob - gmp.spec
- updated to 5.0.2
[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:        5.0.2
16 Release:        1
17 License:        LGPL v3+
18 Group:          Libraries
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
31 Obsoletes:      libgmp3
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
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.
42
43 Install the gmp package if you need a fast arbitrary precision
44 library.
45
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.
55
56 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
57 beliebige Genauigket brauchen.
58
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.
63
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.
72
73 Installez ce package si vous avez besoin d'une bibliothèque de calcul
74 de précision rapide
75
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
80 zmiennoprzecinkowych.
81
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.
86
87 %description -l uk.UTF-8
88 Це бібліотека GNU довільної точності. Збірка програм з нею надає цим
89 програмам доступ до функцій для роботи з як завгодно великими числами
90 через інтерфейси як низького так і високого рівня.
91
92 %description -l ru.UTF-8
93 Это библиотека GNU произвольной точности. Сборка с ней предоставляет
94 доступ к функциям для работы со сколь угодно большими числами как
95 через низко-, так и через высокоуровневый интерфейс.
96
97 %package devel
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
109
110 %description devel
111 The header files and documentation for using the GNU MP arbitrary
112 precision library in applications.
113
114 If you want to develop applications which will use the GNU MP library,
115 you'll need to install the gmp-devel package.
116
117 %description devel -l de.UTF-8
118 Header Files und Dokumentation zum Benutzen der GNU MP Library.
119
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.
123
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
127 les applications.
128
129 Vous n'avez besoin de ce package que si vous comptez programmer des
130 applications utilisant la bibliothèque GNU MP.
131
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.
135
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.
139
140 %description devel -l uk.UTF-8
141 Це бібліотека програміста, хедери та документація для використання
142 бібліотеки GNU довільної точності у ваших власних програмах.
143
144 %description devel -l ru.UTF-8
145 Это библиотека разработчика, хедеры и документация для использования
146 библиотеки GNU произвольной точности в ваших собственных программах.
147
148 %package static
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}
156
157 %description static
158 Static gmp library.
159
160 %description static -l pl.UTF-8
161 Biblioteka statyczna gmp.
162
163 %description static -l pt_BR.UTF-8
164 Bibliotecas estáticas para desenvolvimento com gmp.
165
166 %description static -l uk.UTF-8
167 Це статична бібліотека GNU довільної точності.
168
169 %description static -l ru.UTF-8
170 Это статическая библиотека GNU произвольной точности.
171
172 %package bsd
173 Summary:        GNU arbitrary precision library - BSD-compatible MP library
174 Summary(pl.UTF-8):      Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
175 Group:          Libraries
176 # doesn't require base
177
178 %description bsd
179 This package contains BSD-compatible MP library based on GNU MP.
180
181 %description bsd -l pl.UTF-8
182 Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
183
184 %package bsd-devel
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}
189
190 %description bsd-devel
191 This package contains BSD-compatible MP library header file.
192
193 %description bsd-devel -l pl.UTF-8
194 Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
195
196 %package bsd-static
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}
201
202 %description bsd-static
203 This package contains BSD-compatible MP static library based on GNU
204 MP.
205
206 %description bsd-static -l pl.UTF-8
207 Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
208 na GNU MP.
209
210 %package c++
211 Summary:        GNU arbitrary precision library - C++ interface
212 Summary(pl.UTF-8):      Biblioteka arytmetyczna GNU - interfejs C++
213 Group:          Libraries
214 Requires:       %{name} = %{version}-%{release}
215
216 %description c++
217 C++ class interface to GNU arbitrary precision library.
218
219 %description c++ -l pl.UTF-8
220 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
221
222 %package c++-devel
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}
228
229 %description c++-devel
230 Header files for C++ class interface to GNU arbitrary precision
231 library.
232
233 %description c++-devel -l pl.UTF-8
234 Pliki nagłówkowe interfejsu w postaci klas C++ do biblioteki
235 arytmetycznej GNU.
236
237 %package c++-static
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}
242
243 %description c++-static
244 Static version of C++ class interface to GNU arbitrary precision
245 library.
246
247 %description c++-static -l pl.UTF-8
248 Statycza wersja interfejsu w postaci klas C++ do biblioteki
249 arytmetycznej GNU.
250
251 %prep
252 %setup -q
253 %patch0 -p1
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
258 %patch2 -p1
259 %patch3 -p1
260
261 %build
262 %{__libtoolize}
263 %{__aclocal}
264 %{__autoconf}
265 %{__automake}
266 %configure \
267         --with-cpu=%{_target_cpu} \
268         %{?with_cxx:--enable-cxx} \
269         --enable-fft \
270         --enable-mpbsd
271
272 %{__make}
273 %{?with_tests:%{__make} check}
274
275 %install
276 rm -rf $RPM_BUILD_ROOT
277
278 %{__make} install \
279         DESTDIR=$RPM_BUILD_ROOT
280
281 %clean
282 rm -rf $RPM_BUILD_ROOT
283
284 %post   -p /sbin/ldconfig
285 %postun -p /sbin/ldconfig
286
287 %post   devel -p /sbin/postshell
288 -/usr/sbin/fix-info-dir -c %{_infodir}
289
290 %postun devel -p /sbin/postshell
291 -/usr/sbin/fix-info-dir -c %{_infodir}
292
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
299 %files
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
304
305 %files devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libgmp.so
308 %{_libdir}/libgmp.la
309 %{_includedir}/gmp.h
310 %{_infodir}/gmp.info*
311
312 %files static
313 %defattr(644,root,root,755)
314 %{_libdir}/libgmp.a
315
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
330 %if %{with cxx}
331 %files c++
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*.*
334 %attr(755,root,root) %ghost %{_libdir}/libgmpxx.so.4
335
336 %files c++-devel
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libgmpxx.so
339 %{_libdir}/libgmpxx.la
340 %{_includedir}/gmpxx.h
341
342 %files c++-static
343 %defattr(644,root,root,755)
344 %{_libdir}/libgmpxx.a
345 %endif
This page took 0.070203 seconds and 3 git commands to generate.