3 %bcond_without tests # don't perform make check
5 Summary: Multiple-precision floating-point computations library
6 Summary(pl.UTF-8): Biblioteka obliczeń zmiennoprzecinkowych wielokrotnej precyzji
12 Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz
13 # Source0-md5: 6e495841bb026481567006cec0f821c3
14 Patch0: %{name}-info.patch
15 Patch1: %{name}-automake-1_12.patch
16 URL: http://www.mpfr.org/
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake >= 1.6
19 BuildRequires: gmp-devel >= 4.1.0
20 BuildRequires: libtool
21 BuildRequires: tar >= 1:1.22
22 BuildRequires: texinfo
24 Requires: gmp >= 4.1.0
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The MPFR library is a C library for multiple-precision floating-point
29 computations with exact rounding (also called correct rounding). It is
30 based on the GMP multiple-precision library. The main goal of MPFR is
31 to provide a library for multiple-precision floating-point computation
32 which is both efficient and has a well-defined semantics. It copies
33 the good ideas from the ANSI/IEEE-754 standard for double-precision
34 floating-point arithmetic (53-bit mantissa).
36 %description -l pl.UTF-8
37 Biblioteka MPFR to biblioteka C do obliczeń zmiennoprzecinkowych z
38 wielokrotną precyzją i dokładnym zaokrąglaniem (zwanym także poprawnym
39 zaokrąglaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji.
40 Głównym celem MPFR jest dostarczenie biblioteki do obliczeń
41 zmiennoprzecinkowych wielokrotnej precyzji, która jest wydajna i ma
42 dobrze zdefiniowaną semantykę. Powiela dobre idee ze standardu
43 ANSI/IEEE-754 dla arytmetyki zmiennoprzecinkowej podwójnej precyzji (z
47 Summary: Header files for MPFR library
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MPFR
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
51 Requires: gmp-devel >= 4.1.0
52 Obsoletes: libmpfr-devel
55 Header files for MPFR library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki MPFR.
61 Summary: Static MPFR library
62 Summary(pl.UTF-8): Statyczna biblioteka MPFR
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
69 %description static -l pl.UTF-8
70 Statyczna biblioteka MPFR.
77 # triggers bug in gold (as of binutils-2.21.53.0.2-1.i686)
79 if [ -x /usr/bin/ld.bfd ]; then
80 ln -s /usr/bin/ld.bfd my-ld/ld
84 export PATH=$PWD/my-ld:$PATH
92 # make -j4 creates truncated .lo files
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
113 %post devel -p /sbin/postshell
114 -/usr/sbin/fix-info-dir -c %{_infodir}
116 %postun devel -p /sbin/postshell
117 -/usr/sbin/fix-info-dir -c %{_infodir}
120 %defattr(644,root,root,755)
121 %doc AUTHORS BUGS ChangeLog NEWS README TODO doc/FAQ.html
122 %attr(755,root,root) %{_libdir}/libmpfr.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libmpfr.so.4
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libmpfr.so
128 %{_libdir}/libmpfr.la
129 %{_includedir}/mpfr.h
130 %{_includedir}/mpf2mpfr.h
131 %{_infodir}/mpfr.info*
134 %defattr(644,root,root,755)