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