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