# # Conditional build: %bcond_without tests # don't perform make check # Summary: Multiple-precision floating-point computations library Summary(pl.UTF-8): Biblioteka obliczeń zmiennoprzecinkowych wielokrotnej precyzji Name: mpfr Version: 3.1.1 Release: 1 License: LGPL v3+ Group: Libraries Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz # Source0-md5: 91d51c41fcf2799e4ee7a7126fc95c17 Patch0: %{name}-info.patch URL: http://www.mpfr.org/ BuildRequires: autoconf >= 2.50 BuildRequires: automake >= 1.6 BuildRequires: gmp-devel >= 4.1.0 BuildRequires: libtool BuildRequires: tar >= 1:1.22 BuildRequires: texinfo BuildRequires: xz Requires: gmp >= 4.1.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The MPFR library is a C library for multiple-precision floating-point computations with exact rounding (also called correct rounding). It is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit mantissa). %description -l pl.UTF-8 Biblioteka MPFR to biblioteka C do obliczeń zmiennoprzecinkowych z wielokrotną precyzją i dokładnym zaokrąglaniem (zwanym także poprawnym zaokrąglaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji. Głównym celem MPFR jest dostarczenie biblioteki do obliczeń zmiennoprzecinkowych wielokrotnej precyzji, która jest wydajna i ma dobrze zdefiniowaną semantykę. Powiela dobre idee ze standardu ANSI/IEEE-754 dla arytmetyki zmiennoprzecinkowej podwójnej precyzji (z 53-bitową mantysą). %package devel Summary: Header files for MPFR library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MPFR Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gmp-devel >= 4.1.0 Obsoletes: libmpfr-devel %description devel Header files for MPFR library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki MPFR. %package static Summary: Static MPFR library Summary(pl.UTF-8): Statyczna biblioteka MPFR Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static MPFR library. %description static -l pl.UTF-8 Statyczna biblioteka MPFR. %prep %setup -q %patch0 -p1 # triggers bug in gold (as of binutils-2.21.53.0.2-1.i686) mkdir my-ld if [ -x /usr/bin/ld.bfd ]; then ln -s /usr/bin/ld.bfd my-ld/ld fi %build export PATH=$PWD/my-ld:$PATH %{__libtoolize} %{__aclocal} -I m4 %{__autoconf} %{__automake} %configure \ --enable-shared # make -j4 creates truncated .lo files %{__make} -j1 all %if %{with tests} %{__make} check %endif %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_infodir}/dir %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel -p /sbin/postshell -/usr/sbin/fix-info-dir -c %{_infodir} %postun devel -p /sbin/postshell -/usr/sbin/fix-info-dir -c %{_infodir} %files %defattr(644,root,root,755) %doc AUTHORS BUGS ChangeLog NEWS README TODO doc/FAQ.html %attr(755,root,root) %{_libdir}/libmpfr.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libmpfr.so.4 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libmpfr.so %{_libdir}/libmpfr.la %{_includedir}/mpfr.h %{_includedir}/mpf2mpfr.h %{_infodir}/mpfr.info* %files static %defattr(644,root,root,755) %{_libdir}/libmpfr.a