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