mpfr/mpfr.spec

116 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package mpfr
#
# Copyright (c) 2023 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.2.1
Release: 0
Summary: The GNU multiple-precision floating-point library
License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://www.mpfr.org/
Source0: https://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz
Source1: https://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz.asc
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).
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
%package -n libmpfr6
Summary: The GNU multiple-precision floating-point shared library
Group: Development/Libraries/C and C++
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
%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
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
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
# installed via macro
rm %{buildroot}%{_docdir}/mpfr/COPYING*
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
%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
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
%files -n libmpfr6
%license COPYING*
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
%{_libdir}/libmpfr.so.6*
%files devel
%license COPYING*
%doc %{_docdir}/mpfr
%{_infodir}/mpfr.info%{?ext_info}
%{_libdir}/libmpfr.so
%{_includedir}/mpf2mpfr.h
%{_includedir}/mpfr.h
- Update to mpfr 4.0.0 * The "dinde aux marrons" release. * MPFR now depends on GMP 5.0+ instead of 4.1+. * API change: Applications that call GMP's mp_set_memory_functions function to change the allocators must first call the new function mpfr_mp_memory_cleanup in all threads where MPFR is potentially used; this new function is currently equivalent to mpfr_free_cache. The reason is that the way memory allocation is done by MPFR has changed (again), so that the current GMP allocators are used (since for some applications, the old allocators may become invalid). Note: Freeing the caches like this might have a performance impact on some particular applications; if this is an issue, this could be handled for a future MPFR version. * Mini-gmp support via the --enable-mini-gmp configure option (experimental). * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as in the errata of IEEE 754-2008 and in the following IEEE 754 revision (ties rounded away from zero). * Shared caches for multithreaded applications. New function mpfr_free_cache2. * Partial support of MPFR_RNDF (faithful rounding). * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. * New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 13:43:08 +01:00
%{_libdir}/pkgconfig/mpfr.pc
%changelog