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