* New function mpfr_get_str_ndigits about conversion to a string of digits. * New function mpfr_dot for the dot product (incomplete, experimental). * New functions mpfr_get_decimal128 and mpfr_set_decimal128 (available only when MPFR has been built with decimal float support). * New function mpfr_cmpabs_ui. * New function mpfr_total_order_p for the IEEE 754 totalOrder predicate. * The mpfr_out_str function now accepts bases from -2 to -36, in order to follow mpfr_get_str and GMP's mpf_out_str functions (these cases gave an assertion failure, as with other invalid bases). * Shared caches: cleanup; really detect lock failures (abort in this case). * The behavior of the formatted output functions (mpfr_printf, etc.) with an empty precision field has improved: trailing zeros are kept in a way similar to the formatted output functions from C. * Improved mpfr_add and mpfr_sub when all operands have a precision equal to twice the number of bits per word, e.g., 128 bits on a 64-bit platform. * Optimized the tuning parameters for various architectures. * Improved test coverage to 98.6% of code for x86_64. * Bug fixes. * MPFR manual: corrected/completed the mpfr_get_str description in order to follow the historical behavior and GMP's mpf_get_str function. - Remove mpfr-4.0.2-p6.patch and floating-point-format-no-lto.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=62
111 lines
3.3 KiB
RPMSpec
111 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package mpfr
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: mpfr
|
|
Version: 4.1.0
|
|
Release: 0
|
|
Summary: The GNU multiple-precision floating-point library
|
|
License: LGPL-3.0-or-later
|
|
Group: Development/Libraries/C and C++
|
|
URL: http://www.mpfr.org/
|
|
Source0: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz
|
|
Source1: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz.sig
|
|
Source2: %{name}.keyring
|
|
Source3: baselibs.conf
|
|
BuildRequires: gmp-devel
|
|
BuildRequires: pkgconfig
|
|
|
|
%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).
|
|
|
|
%package -n libmpfr6
|
|
Summary: The GNU multiple-precision floating-point shared library
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libmpfr6
|
|
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.
|
|
|
|
%package devel
|
|
Summary: Development files for the GNU multiple-precision floating-point library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: gmp-devel
|
|
Requires: libmpfr6 = %{version}
|
|
Requires(post): %{install_info_prereq}
|
|
Requires(preun): %{install_info_prereq}
|
|
|
|
%description devel
|
|
Development files for the GNU multiple-precision floating-point library.
|
|
|
|
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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
%ifarch %{sparc} hppa
|
|
--disable-thread-safe \
|
|
%else
|
|
--enable-thread-safe \
|
|
%endif
|
|
--enable-shared \
|
|
--disable-static \
|
|
--docdir=%{_docdir}/%{name}
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make check %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libmpfr6 -p /sbin/ldconfig
|
|
%post devel
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%preun devel
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun -n libmpfr6 -p /sbin/ldconfig
|
|
|
|
%files -n libmpfr6
|
|
%{_libdir}/libmpfr.so.6*
|
|
|
|
%files devel
|
|
%doc %{_docdir}/mpfr
|
|
%{_infodir}/mpfr.info%{ext_info}
|
|
%{_libdir}/libmpfr.so
|
|
%{_includedir}/mpf2mpfr.h
|
|
%{_includedir}/mpfr.h
|
|
%{_libdir}/pkgconfig/mpfr.pc
|
|
|
|
%changelog
|