]> git.pld-linux.org Git - packages/gmp.git/blob - gmp.spec
- changed [ -x ... ] && to [ ! -x ... ] ||
[packages/gmp.git] / gmp.spec
1 Summary:        GNU arbitrary precision library
2 Summary(de):    Beliebige Genauigkeits-Library
3 Summary(fr):    Bibliothèque de calcul de précision
4 Summary(pl):    Biblioteka arytmetyczna GNU
5 Name:           gmp
6 Version:        2.0.2
7 Release:        14
8 License:        LGPL
9 Group:          Libraries
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        ftp://ftp.gnu.org/pub/gnu/%{name}-%{version}.tar.gz
13 Patch0:         gmp-shared.patch
14 Patch1:         http://www.swox.com/gmp/mpf-conversions.diff.gz
15 Patch2:         http://www.swox.com/gmp/gmp2.0.2p2.txt
16 Patch3:         http://www.swox.com/gmp/gmp2.0.2p3.txt
17 Patch4:         http://www.swox.com/gmp/gmp2.0.2p4.txt
18 Patch5:         http://www.swox.com/gmp/gmp2.0.2p5.txt
19 Patch6:         http://www.swox.com/gmp/gmp2.0.2p6.txt
20 Patch7:         http://www.swox.com/gmp/gmp2.0.2p7.txt
21 Patch8:         http://www.swox.com/gmp/gmp2.0.2p8.txt
22 Patch9:         http://www.swox.com/gmp/gmp2.0.2p9.txt
23 Patch10:        gmp-powerpc.patch
24 Patch11:        gmp-info.patch
25 Patch12:        gmp-DESTDIR.patch
26 Patch13:        gmp-sparc.patch
27 URL:            http://www.swox.com/gmp/
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 The gmp package contains GNU MP, a library for arbitrary precision
32 arithmetic, signed integers operations, rational numbers and floating
33 point numbers. GNU MP is designed for speed, for both small and very
34 large operands. GNU MP is fast for several reasons: It uses fullwords
35 as the basic arithmetic type, it uses fast algorithms, it carefully
36 optimizes assembly code for many CPUs' most common inner loops and it
37 generally emphasizes speed over simplicity/elegance in its operations.
38
39 Install the gmp package if you need a fast arbitrary precision
40 library.
41
42 %description -l de
43 Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
44 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
45 Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
46 Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
47 optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
48 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
49 Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
50 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
51
52 Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
53 beliebige Genauigket brauchen.
54
55 %description -l fr
56 Ce package contient la bibliothèque GNU MP. Cette dernière permet de
57 calculer avec une grande précision sur des nombres entiers, rationnels
58 ou même des fractions, signés ou non. GNU MP a été conçue pour être
59 rapide pour les petits nombres ainsi que les très grands grâce à
60 plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
61 algorithmes optimisés, utilisation de l'assembleur pour les routines
62 critiques) parfois au détriment de la simplicité ou l'élégance.
63
64 Installez ce package si vous avez besoin d'une bibliothèque de calcul
65 de précision rapide
66
67 %description -l pl
68 Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
69 dostêp do szerokiego grona szybkich funkcji arytmetycznych
70 dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
71 zmiennoprzecinkowych.
72
73 %package devel
74 Summary:        GNU Arbitrary Precision header files, static libraries, and documentation.
75 Summary(de):    Entwicklungstools für GNU MP
76 Summary(fr):    Outils de développement pour la bibliothèque de calcul GMP
77 Summary(pl):    Pliki nag³ówkowe i dokumentacja.
78 Group:          Development/Libraries
79 Group(fr):      Development/Librairies
80 Group(pl):      Programowanie/Biblioteki
81
82 %description devel
83 The static libraries, header files and documentation for using the GNU
84 MP arbitrary precision library in applications.
85
86 If you want to develop applications which will use the GNU MP library,
87 you'll need to install the gmp-devel package.
88
89 %description -l de devel
90 Statische Libraries, Header Files und Dokumentation zum Benutzen der
91 GNU MP Library.
92
93 %description -l fr devel
94 Ce package comprend les bibliothèques statiques, les fichiers
95 d'en-tête et la documentation nécessaires pour utiliser la
96 bibliothèque de calcul de précision dans les applications.
97
98 Vous n'avez besoin de ce package que si vous comptez programmer des
99 applications utilisant la bibliothèque GNU MP.
100
101 %description -l pl devel
102 Pliko nag³ówkowe i dokumentacji do gmp. Dziêki temu pakietowi bêdziesz
103 móg³ tworzyæ w³asne programy z wykorzystaniem bblioteki arbitralnej z
104 GNU.
105
106 %package static
107 Summary:        GNU Arbitrary Precision static library.
108 Summary(pl):    Biblioteka statyczna.
109 Group:          Libraries
110 Group(fr):      Librairies
111 Requires:       %{name} = %{version} 
112
113 %description static
114 Static library
115
116 %description -l pl static
117 Biblioteka statyczna.
118
119 %prep
120 %setup -q
121 %patch0 -p1
122 %patch1 -p1
123 cd mpq
124 %patch2 -p0
125 cd ../mpn
126 %patch3 -p0
127 cd ../mpz/tests
128 %patch4 -p0
129 cd ../..
130 %patch5 -p1
131 cd mpq
132 %patch6 -p0
133 cd ../mpz
134 %patch7 -p0
135 cd ../mpf
136 %patch8 -p0
137 cd ../mpn/generic
138 %patch9 -p0
139 cd ../..
140 %patch10 -p1
141 %patch11 -p1
142 %patch12 -p1
143 %patch13 -p1
144
145 %build
146 libtoolize --copy --force
147 %configure 
148 make CC="gcc" CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
149
150 %install
151 rm -rf $RPM_BUILD_ROOT
152
153 make install \
154         DESTDIR=$RPM_BUILD_ROOT \
155         infodir=%{_infodir} \
156         libdir=%{_libdir} \
157         includedir=%{_includedir}
158
159 install mpn/gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir}/
160
161 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
162
163 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/gmp.info* \
164         SPEED NEWS README
165
166 %post   -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
168
169 %post devel
170 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
171
172 %postun devel
173 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
174
175 %clean
176 rm -rf $RPM_BUILD_ROOT
177
178 %files
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_libdir}/lib*.so.*.*
181
182 %files devel
183 %defattr(644,root,root,755)
184 %doc *.gz
185 %attr(755,root,root) %{_libdir}/lib*.so
186 %{_includedir}/*
187 %{_infodir}/gmp.info*
188
189 %files static
190 %defattr(644,root,root,755)
191 %{_libdir}/lib*.a
This page took 0.109366 seconds and 4 git commands to generate.