]> git.pld-linux.org Git - packages/gmp.git/blob - gmp.spec
- massive attack: no need for 755 for *.la
[packages/gmp.git] / gmp.spec
1 #
2 # Conditional build (only one option at time makes sense; if more specified
3 #   - only "highest" is used):
4 # _with_mmx     - with MMX instructions                 (i586, i686 targets)
5 # _with_p3mmx   - with Pentium /// MMX instructions     (i686 target)
6 # _with_k6      - with AMD K6 instructions              (i586 target)
7 # _with_k62     - with AMD K6-2/K6-3 instructions       (i586 target)
8 # _with_k7      - with AMD Athlon/Duron instructions    (i686 target)
9
10 Summary:        GNU arbitrary precision library
11 Summary(de):    Beliebige Genauigkeits-Library
12 Summary(es):    Biblioteca de precisión arbitraria de la GNU
13 Summary(fr):    Bibliothèque de calcul de précision
14 Summary(pl):    Biblioteka arytmetyczna GNU
15 Summary(pt_BR): Biblioteca de precisão arbitrária da GNU
16 Summary(uk):    â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
17 Summary(ru):    âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
18 Name:           gmp
19 Version:        4.1
20 Release:        3
21 License:        LGPL
22 Group:          Libraries
23 Source0:        ftp://ftp.gnu.org/pub/gnu/gmp/%{name}-%{version}.tar.gz
24 Patch0:         %{name}-info.patch
25 Patch1:         %{name}-am_fix.patch
26 Patch2:         %{name}-asmcpu.patch
27 Patch3:         http://www.swox.com/gmp/gmp-impl.h.sparc.diff
28 Patch4:         http://www.swox.com/gmp/gmpxx.h.getnum.diff
29 Patch5:         http://www.swox.com/gmp/randraw.c.41.diff
30 URL:            http://www.swox.com/gmp/
31 BuildRequires:  autoconf
32 BuildRequires:  automake
33 BuildRequires:  libtool
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Obsoletes:      libgmp3
36
37 %ifarch i586
38 %define _cpu %{?_with_k62:k62}%{!?_with_k62:%{?_with_k6:k6}%{!?_with_k6:%{?_with_mmx:pentiummmx}%{!?_with_mmx:i586}}}
39 %else
40 %ifarch i686
41 %define _cpu %{?_with_p3mmx:pentium3}%{!?_with_p3mmx:%{?_with_k7:athlon}%{!?_with_k7:%{?_with_mmx:pentium2}%{!?_with_mmx:i686}}}
42 %else
43 %define _cpu %{_arch}
44 %endif
45 %endif
46
47 %description
48 The gmp package contains GNU MP, a library for arbitrary precision
49 arithmetic, signed integers operations, rational numbers and floating
50 point numbers. GNU MP is designed for speed, for both small and very
51 large operands. GNU MP is fast for several reasons: It uses fullwords
52 as the basic arithmetic type, it uses fast algorithms, it carefully
53 optimizes assembly code for many CPUs' most common inner loops and it
54 generally emphasizes speed over simplicity/elegance in its operations.
55
56 Install the gmp package if you need a fast arbitrary precision
57 library.
58
59 %description -l de
60 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
61 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
62 Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
63 Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
64 optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
65 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
66 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
67 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
68
69 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
70 beliebige Genauigket brauchen.
71
72 %description -l es
73 Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
74 funciones para manipular arbitrariamente grandes números con
75 interfaces de alto o bajo nivel.
76
77 %description -l fr
78 Ce package contient la bibliothèque GNU MP. Cette dernière permet de
79 calculer avec une grande précision sur des nombres entiers, rationnels
80 ou même des fractions, signés ou non. GNU MP a été conçue pour être
81 rapide pour les petits nombres ainsi que les très grands grâce à
82 plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
83 algorithmes optimisés, utilisation de l'assembleur pour les routines
84 critiques) parfois au détriment de la simplicité ou l'élégance.
85
86 Installez ce package si vous avez besoin d'une bibliothèque de calcul
87 de précision rapide
88
89 %description -l pl
90 Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
91 dostêp do szerokiego grona szybkich funkcji arytmetycznych
92 dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
93 zmiennoprzecinkowych.
94
95 %description -l pt_BR
96 Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
97 funções para manipular arbitrariamente grandes números com interfaces
98 de alto ou baixo nível.
99
100 %description -l uk
101 ㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
102 ÐÒÏÇÒÁÍÁÍ ÄÏÓÔÕРÄÏ ÆÕÎËæʠÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
103 ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
104
105 %description -l ru
106 üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
107 ÄÏÓÔÕРˠÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
108 ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
109
110 %package devel
111 Summary:        GNU Arbitrary Precision header files, static libraries, and documentation
112 Summary(de):    Entwicklungstools für GNU MP
113 Summary(es):    Archivos de inclusión, bibliotecas y documentación de la biblioteca gmp
114 Summary(fr):    Outils de développement pour la bibliothèque de calcul GMP
115 Summary(pl):    Pliki nag³ówkowe i dokumentacja do biblioteki gmp
116 Summary(pt_BR): Arquivos de inclusão, bibliotecas e documentação da biblioteca gmp
117 Summary(uk):    ¶ÎÓÔÒÕÍÅÎÔÉ ÒÏÚÒÏÂËÉ ÄÌѠ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
118 Summary(ru):    éÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
119 Group:          Development/Libraries
120 Requires:       %{name} = %{version}
121 Obsoletes:      libgmp3-devel
122
123 %description devel
124 The static libraries, header files and documentation for using the GNU
125 MP arbitrary precision library in applications.
126
127 If you want to develop applications which will use the GNU MP library,
128 you'll need to install the gmp-devel package.
129
130 %description devel -l de
131 Statische Libraries, Header Files und Dokumentation zum Benutzen der
132 GNU MP Library.
133
134 %description devel -l es
135 Estas son las bibliotecas, archivos de inclusión y documentación para
136 usar la biblioteca GNU de precisión arbitraria en tus programas.
137
138 %description devel -l fr
139 Ce package comprend les bibliothèques statiques, les fichiers
140 d'en-tête et la documentation nécessaires pour utiliser la
141 bibliothèque de calcul de précision dans les applications.
142
143 Vous n'avez besoin de ce package que si vous comptez programmer des
144 applications utilisant la bibliothèque GNU MP.
145
146 %description devel -l pl
147 Pliki nag³ówkowe i dokumentacja do gmp. Dziêki temu pakietowi bêdziesz
148 móg³ tworzyæ w³asne programy z wykorzystaniem tej biblioteki.
149
150 %description devel -l pt_BR
151 Estas são as bibliotecas, arquivos de inclusão e documentação para
152 usar a biblioteca GNU de precisão arbitrária em seus programas.
153
154 %description devel -l uk
155 ㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁæѠÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
156 ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
157
158 %description devel -l ru
159 üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
160 ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
161
162 %package static
163 Summary:        GNU Arbitrary Precision static library
164 Summary(pl):    Biblioteka statyczna gmp
165 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com gmp
166 Summary(uk):    â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ - ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ
167 Summary(ru):    âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ - ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ
168 Group:          Development/Libraries
169 Requires:       %{name}-devel = %{version}
170
171 %description static
172 Static gmp library.
173
174 %description static -l pl
175 Biblioteka statyczna gmp.
176
177 %description static -l pt_BR
178 Bibliotecas estáticas para desenvolvimento com gmp.
179
180 %description static -l uk
181 ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
182
183 %description static -l ru
184 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
185
186 %package c++
187 Summary:        GNU arbitrary precision library - C++ interface
188 Summary(pl):    Biblioteka arytmetyczna GNU - interfejs C++
189 Group:          Libraries
190 Requires:       %{name} = %{version}
191
192 %description c++
193 C++ class interface to GNU arbitrary precision library.
194
195 %description c++ -l pl
196 Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
197
198 %package c++-devel
199 Summary:        GNU arbitrary precition library - C++ interface headers
200 Summary(pl):    Biblioteka arytmetyczna GNU - pliki nag³ówkowe interfejsu C++
201 Group:          Development/Libraries
202 Requires:       %{name}-c++ = %{version}
203 Requires:       %{name}-devel = %{version}
204
205 %description c++-devel
206 Header files for C++ class interface to GNU arbitrary precision
207 library.
208
209 %description c++-devel -l pl
210 Pliki nag³ówkowe interfejsu w postaci klas C++ do biblioteki
211 arytmetycznej GNU.
212
213 %package c++-static
214 Summary:        GNU arbitrary precition library - C++ static library
215 Summary(pl):    Biblioteka arytmetyczna GNU - statyczna biblioteka C++
216 Group:          Development/Libraries
217 Requires:       %{name}-c++-devel = %{version}
218
219 %description c++-static
220 Static version of C++ class interface to GNU arbitrary precision
221 library.
222
223 %description c++-static -l pl
224 Statycza wersja interfejsu w postaci klas C++ do biblioteki
225 arytmetycznej GNU.
226
227 %prep
228 %setup -q
229 %patch0 -p1
230 %if %(grep -q -e '--tag' `which libtool`; echo $?)
231 %patch1 -p1
232 %endif
233 %patch2 -p1
234 %patch3 -p0
235 %patch4 -p0
236 %patch5 -p0
237
238 %build
239 rm -f missing
240 %{__libtoolize}
241 %{__aclocal} -I mpfr
242 %{__autoconf}
243 %{__automake}
244 %configure \
245         --with-cpu=%{_cpu} \
246         --enable-cxx \
247         --enable-fft
248
249 %{__make}
250
251 %install
252 rm -rf $RPM_BUILD_ROOT
253
254 %{__make} install \
255         DESTDIR=$RPM_BUILD_ROOT
256
257 %clean
258 rm -rf $RPM_BUILD_ROOT
259
260 %post   -p /sbin/ldconfig
261 %postun -p /sbin/ldconfig
262 %post   c++ -p /sbin/ldconfig
263 %postun c++ -p /sbin/ldconfig
264
265 %post devel
266 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
267
268 %postun devel
269 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
270
271 %files
272 %defattr(644,root,root,755)
273 %doc AUTHORS ChangeLog NEWS README
274 %attr(755,root,root) %{_libdir}/libgmp.so.*.*
275
276 %files devel
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_libdir}/libgmp.so
279 %{_libdir}/libgmp.la
280 %{_includedir}/gmp.h
281 %{_infodir}/gmp.info*
282
283 %files static
284 %defattr(644,root,root,755)
285 %{_libdir}/libgmp.a
286
287 %files c++
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libgmpxx.so.*.*
290
291 %files c++-devel
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_libdir}/libgmpxx.so
294 %{_libdir}/libgmpxx.la
295 %{_includedir}/gmpxx.h
296
297 %files c++-static
298 %defattr(644,root,root,755)
299 %{_libdir}/libgmpxx.a
This page took 0.09189 seconds and 4 git commands to generate.