# # 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: 4.2.1 Release: 1 License: LGPL v3+ Group: Libraries Source0: https://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz # Source0-md5: 523c50c6318dde6f9dc523bc0244690a Patch0: %{name}-info.patch URL: https://www.mpfr.org/ BuildRequires: autoconf >= 2.50 BuildRequires: autoconf-archive BuildRequires: automake >= 1:1.13 BuildRequires: gmp-devel >= 5.0 BuildRequires: libtool BuildRequires: tar >= 1:1.22 BuildRequires: texinfo BuildRequires: xz Requires: gmp >= 5.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 >= 5.0 Obsoletes: libmpfr-devel < 4.2 %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 # obsoleted by pkg-config %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmpfr.la # move to PLD specific place install -d $RPM_BUILD_ROOT%{_examplesdir} %{__mv} $RPM_BUILD_ROOT%{_docdir}/mpfr/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} # packaged as %doc %{__rm} $RPM_BUILD_ROOT%{_docdir}/mpfr/* 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.6 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libmpfr.so %{_includedir}/mpfr.h %{_includedir}/mpf2mpfr.h %{_pkgconfigdir}/mpfr.pc %{_infodir}/mpfr.info* %{_examplesdir}/%{name}-%{version} %files static %defattr(644,root,root,755) %{_libdir}/libmpfr.a