]>
Commit | Line | Data |
---|---|---|
6ee01af0 | 1 | Summary: Multiple-precision floating-point computations library |
93e5165e | 2 | Summary(pl.UTF-8): Biblioteka obliczeń zmiennoprzecinkowych wielokrotnej precyzji |
6ee01af0 | 3 | Name: mpfr |
edea4840 | 4 | Version: 2.2.1 |
6ee01af0 JB |
5 | Release: 1 |
6 | License: LGPL | |
7 | Group: Libraries | |
8 | Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.bz2 | |
edea4840 | 9 | # Source0-md5: 40bf06f8081461d8db7d6f4ad5b9f6bd |
6ee01af0 | 10 | Patch0: %{name}-info.patch |
6ee01af0 | 11 | URL: http://www.mpfr.org/ |
6642e189 JB |
12 | BuildRequires: autoconf >= 2.50 |
13 | BuildRequires: automake >= 1.6 | |
6ee01af0 | 14 | BuildRequires: gmp-devel >= 4.1.0 |
6642e189 | 15 | BuildRequires: libtool |
6ee01af0 JB |
16 | BuildRequires: texinfo |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | The MPFR library is a C library for multiple-precision floating-point | |
21 | computations with exact rounding (also called correct rounding). It is | |
22 | based on the GMP multiple-precision library. The main goal of MPFR is | |
23 | to provide a library for multiple-precision floating-point computation | |
24 | which is both efficient and has a well-defined semantics. It copies | |
25 | the good ideas from the ANSI/IEEE-754 standard for double-precision | |
26 | floating-point arithmetic (53-bit mantissa). | |
27 | ||
93e5165e JR |
28 | %description -l pl.UTF-8 |
29 | Biblioteka MPFR to biblioteka C do obliczeń zmiennoprzecinkowych z | |
30 | wielokrotną precyzją i dokładnym zaokrąglaniem (zwanym także poprawnym | |
31 | zaokrąglaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji. | |
32 | Głównym celem MPFR jest dostarczenie biblioteki do obliczeń | |
33 | zmiennoprzecinkowych wielokrotnej precyzji, która jest wydajna i ma | |
34 | dobrze zdefiniowaną semantykę. Powiela dobre idee ze standardu | |
35 | ANSI/IEEE-754 dla arytmetyki zmiennoprzecinkowej podwójnej precyzji (z | |
36 | 53-bitową mantysą). | |
6ee01af0 JB |
37 | |
38 | %package devel | |
39 | Summary: Header files for MPFR library | |
93e5165e | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MPFR |
6ee01af0 JB |
41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: gmp-devel >= 4.1.0 | |
44 | Obsoletes: libmpfr-devel | |
45 | ||
46 | %description devel | |
47 | Header files for MPFR library. | |
48 | ||
93e5165e JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe biblioteki MPFR. | |
6ee01af0 JB |
51 | |
52 | %package static | |
53 | Summary: Static MPFR library | |
93e5165e | 54 | Summary(pl.UTF-8): Statyczna biblioteka MPFR |
6ee01af0 JB |
55 | Group: Development/Libraries |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static MPFR library. | |
60 | ||
93e5165e | 61 | %description static -l pl.UTF-8 |
6ee01af0 JB |
62 | Statyczna biblioteka MPFR. |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | %patch0 -p1 | |
6ee01af0 JB |
67 | |
68 | %build | |
6642e189 JB |
69 | %{__libtoolize} |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | %{__automake} | |
6ee01af0 JB |
73 | %configure \ |
74 | --enable-shared | |
edea4840 | 75 | |
102da87d ER |
76 | # make -j4 creates truncated .lo files |
77 | %{__make} -j1 all | |
78 | %{__make} check | |
6ee01af0 JB |
79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
102da87d ER |
86 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
87 | ||
6ee01af0 JB |
88 | %clean |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %post devel | |
95 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
96 | ||
97 | %postun devel | |
98 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %doc AUTHORS BUGS ChangeLog FAQ.html NEWS README TODO | |
103 | %attr(755,root,root) %{_libdir}/libmpfr.so.*.*.* | |
104 | ||
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libmpfr.so | |
108 | %{_libdir}/libmpfr.la | |
109 | %{_includedir}/mpfr.h | |
110 | %{_includedir}/mpf2mpfr.h | |
111 | %{_infodir}/mpfr.info* | |
112 | ||
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libmpfr.a |