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