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