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: 51bfdbf81553966c8d43808122cc81b3
14 Patch0: %{name}-info.patch
15 URL: http://www.mpfr.org/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake >= 1:1.13
18 BuildRequires: gmp-devel >= 4.1.0
19 BuildRequires: libtool
20 BuildRequires: tar >= 1:1.22
21 BuildRequires: texinfo
23 Requires: gmp >= 4.1.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The MPFR library is a C library for multiple-precision floating-point
28 computations with exact rounding (also called correct rounding). It is
29 based on the GMP multiple-precision library. The main goal of MPFR is
30 to provide a library for multiple-precision floating-point computation
31 which is both efficient and has a well-defined semantics. It copies
32 the good ideas from the ANSI/IEEE-754 standard for double-precision
33 floating-point arithmetic (53-bit mantissa).
35 %description -l pl.UTF-8
36 Biblioteka MPFR to biblioteka C do obliczeń zmiennoprzecinkowych z
37 wielokrotną precyzją i dokładnym zaokrąglaniem (zwanym także poprawnym
38 zaokrąglaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji.
39 Głównym celem MPFR jest dostarczenie biblioteki do obliczeń
40 zmiennoprzecinkowych wielokrotnej precyzji, która jest wydajna i ma
41 dobrze zdefiniowaną semantykę. Powiela dobre idee ze standardu
42 ANSI/IEEE-754 dla arytmetyki zmiennoprzecinkowej podwójnej precyzji (z
46 Summary: Header files for MPFR library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MPFR
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 Requires: gmp-devel >= 4.1.0
51 Obsoletes: libmpfr-devel
54 Header files for MPFR library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki MPFR.
60 Summary: Static MPFR library
61 Summary(pl.UTF-8): Statyczna biblioteka MPFR
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
68 %description static -l pl.UTF-8
69 Statyczna biblioteka MPFR.
75 # triggers bug in gold (as of binutils-2.21.53.0.2-1.i686)
77 if [ -x /usr/bin/ld.bfd ]; then
78 ln -s /usr/bin/ld.bfd my-ld/ld
82 export PATH=$PWD/my-ld:$PATH
90 # make -j4 creates truncated .lo files
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
111 %post devel -p /sbin/postshell
112 -/usr/sbin/fix-info-dir -c %{_infodir}
114 %postun devel -p /sbin/postshell
115 -/usr/sbin/fix-info-dir -c %{_infodir}
118 %defattr(644,root,root,755)
119 %doc AUTHORS BUGS ChangeLog NEWS README TODO doc/FAQ.html
120 %attr(755,root,root) %{_libdir}/libmpfr.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libmpfr.so.4
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libmpfr.so
126 %{_libdir}/libmpfr.la
127 %{_includedir}/mpfr.h
128 %{_includedir}/mpf2mpfr.h
129 %{_infodir}/mpfr.info*
132 %defattr(644,root,root,755)