238 lines
7.6 KiB
RPMSpec
238 lines
7.6 KiB
RPMSpec
#
|
|
# spec file for package mpfr (Version 2.4.1)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
%define debug_package_requires libmpfr1 = %{version}-%{release}
|
|
|
|
Name: mpfr
|
|
BuildRequires: gmp-devel
|
|
License: LGPL v2.1 or later
|
|
Group: Development/Libraries/C and C++
|
|
AutoReqProv: on
|
|
Version: 2.4.1
|
|
Release: 1
|
|
Summary: The MPFR multiple-precision floating-point library
|
|
Url: http://www.mpfr.org/
|
|
Source: mpfr-%{version}.tar.bz2
|
|
Patch1: mpfr-%{version}.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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).
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Guillaume Hanrot
|
|
Paul Zimmermann
|
|
Vincent Lefèvre
|
|
Patrick Pélissier
|
|
|
|
%package -n libmpfr1
|
|
License: LGPL v2.1 or later
|
|
Summary: MPFR multiple-precision floating-point computation shared library
|
|
Group: Development/Libraries/C and C++
|
|
AutoReqProv: on
|
|
# in openSUSE 10.2 and 10.3 the shared library was in the mpfr package itself
|
|
Provides: mpfr = 2.3.0
|
|
Obsoletes: mpfr < 2.3.0
|
|
|
|
%description -n libmpfr1
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Guillaume Hanrot
|
|
Paul Zimmermann
|
|
Vincent Lefèvre
|
|
Patrick Pélissier
|
|
|
|
%package devel
|
|
License: LGPL v2.1 or later
|
|
Summary: MPFR multiple-precision floating-point library development files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libmpfr1 = %{version} gmp-devel
|
|
Provides: gmp-devel:/usr/lib/libmpfr.a
|
|
AutoReqProv: on
|
|
PreReq: %install_info_prereq
|
|
|
|
%description devel
|
|
MPFR multiple-precision floating-point library development files
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Guillaume Hanrot
|
|
Paul Zimmermann
|
|
Vincent Lefèvre
|
|
Patrick Pélissier
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
%configure \
|
|
%if 0%{suse_version} > 1000
|
|
--enable-thread-safe \
|
|
%endif
|
|
--enable-shared
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%check
|
|
make check %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
rm ${RPM_BUILD_ROOT}/%{_libdir}/lib*.la
|
|
|
|
%post -n libmpfr1
|
|
%run_ldconfig
|
|
|
|
%post devel
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun -n libmpfr1
|
|
%run_ldconfig
|
|
|
|
%postun devel
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -n libmpfr1
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmpfr.so.1*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS NEWS COPYING.LIB
|
|
%doc %{_infodir}/mpfr.info.gz
|
|
%{_libdir}/libmpfr.a
|
|
%{_libdir}/libmpfr.so
|
|
%{_prefix}/include/mpf2mpfr.h
|
|
%{_prefix}/include/mpfr.h
|
|
|
|
%changelog
|
|
* Mon Mar 16 2009 rguenther@suse.de
|
|
- Update to version 2.4.1 (no changes).
|
|
- Apply current cummulative bugfixing patch.
|
|
* mpfr_fmod, mpfr_remainder and mpfr_remquo rounding issues.
|
|
* incorrect type in vasprintf.c.
|
|
* wrong type in mpfr_zeta_ui.
|
|
* Wed Feb 25 2009 rguenther@suse.de
|
|
- Apply current cummulative bugfixing patch.
|
|
* Fixes mpfr_snprintf and mpfr_vsnprintf buffer overflows.
|
|
* Tue Jan 27 2009 rguenther@suse.de
|
|
- Update to version 2.4.0.
|
|
* Function mpfr_init_gmp_rand is no longer defined.
|
|
* New functions:
|
|
- between a MPFR number and a double: mpfr_add_d, mpfr_sub_d, mpfr_d_sub,
|
|
mpfr_mul_d, mpfr_div_d, mpfr_d_div;
|
|
- formatted input/output: mpfr_printf, mpfr_fprintf, mpfr_vprintf,
|
|
mpfr_vfprintf, mpfr_sprintf, mpfr_snprintf, mpfr_vsprintf,
|
|
mpfr_vsnprintf, mpfr_asprintf, mpfr_vasprintf;
|
|
- mpfr_sinh_cosh, mpfr_li2, mpfr_modf, mpfr_fmod, mpfr_rec_sqrt.
|
|
* Documented the fact that mpfr_random and mpfr_random2 will be suppressed
|
|
in the next release, and that the specification of mpfr_eq may change in
|
|
the next release (for compatibility with the mpf layer of GMP).
|
|
* Bug fixes.
|
|
* Thu Nov 27 2008 ro@suse.de
|
|
- update baselibs.conf
|
|
* Wed Oct 22 2008 mrueckert@suse.de
|
|
- fix debug_packages_requires define
|
|
* Sat Sep 13 2008 rguenther@suse.de
|
|
- Update to version 2.3.2. Includes fixes for
|
|
* Functions mpfr_pow_ui, mpfr_pow_si and mpfr_pow_z (but not mpfr_pow)
|
|
on NaN^0 return NaN instead of 1.
|
|
* Underflow bug in function mpfr_div.
|
|
* Underflow bug due to double-rounding in functions mpfr_mul_2si,
|
|
mpfr_div_2si and mpfr_div_2ui.
|
|
* mpfr_exp problems.
|
|
* The overflow flag can be lost in many functions called with the
|
|
maximum exponent equal to MPFR_EMAX_MAX.
|
|
* assertion/overflow/underflow issues with MPFR's power functions
|
|
(mpfr_pow, mpfr_pow_ui, mpfr_pow_si, mpfr_pow_z).
|
|
* Inifinite looping in mpfr_hypot.
|
|
* Hide internal symbol mpfr_init_gmp_rand.
|
|
* Sat Aug 02 2008 rguenther@suse.de
|
|
- make mpfr-debuginfo depend on libmpfr1 instead of mpfr
|
|
* Tue Jul 15 2008 rguenther@suse.de
|
|
- allow build on SLES9 by disabling TLS usage there
|
|
* Tue Apr 29 2008 cthiel@suse.de
|
|
- obsolete mpfr-<arch> via baselibs.conf
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
- added baselibs.conf file to build xxbit packages
|
|
for multilib support
|
|
* Tue Jan 29 2008 rguenther@suse.de
|
|
- Update to final version 2.3.1.
|
|
* Changes in the behavior of mpfr_strtofr and in its documentation
|
|
concerning particular cases where the code and the documentation
|
|
did not match.
|
|
* Bug fixes; see <http://www.mpfr.org/mpfr-2.3.0/#bugs>.
|
|
* Configure test for TLS support.
|
|
* Improved MPFR manual.
|
|
* Sun Jan 13 2008 rguenther@suse.de
|
|
- Update to 2.3.1 release candidate 1.
|
|
* Fixes various bugs.
|
|
* Wed Dec 12 2007 rguenther@suse.de
|
|
- Apply bugfixes from upstream, up to patch 4. [#343720]
|
|
* Tue Oct 02 2007 ro@suse.de
|
|
- added provides mpfr to libmpfr1 package
|
|
* Wed Aug 29 2007 rguenther@suse.de
|
|
- New upstream version 2.3.0.
|
|
* New functions mpfr_j0, mpfr_j1, mpfr_jn, mpfr_y0, mpfr_y1, mpfr_yn,
|
|
mpfr_lgamma, mpfr_remainder, mpfr_remquo, mpfr_fms, mpfr_signbit,
|
|
mpfr_setsign, mpfr_copysign, mpfr_get_patches.
|
|
* Improved testsuite.
|
|
* Bug fixes.
|
|
- Rename shared library package to libmfpr1 according to policy.
|
|
- Move AUTHORS and NEWS to mpfr-devel package.
|
|
- Package COPYING.LIB.
|
|
- Do not package CVS ChangeLog and README files.
|
|
* Wed Nov 29 2006 rguenther@suse.de
|
|
- New upstream version 2.2.1.
|
|
* Mon Oct 09 2006 rguenther@suse.de
|
|
- Apply bugfixes from upstream, up to patch 16.
|
|
* Wed Jun 07 2006 rguenther@suse.de
|
|
- Apply bugfixes from upstream, up to patch 12.
|
|
* Fri May 26 2006 rguenther@suse.de
|
|
- Fix the real bug, re-enable testsuite on s390.
|
|
* Fri May 26 2006 rguenther@suse.de
|
|
- Skip testsuite for s390.
|
|
* Mon May 15 2006 rguenther@suse.de
|
|
- Add provides to mpfr-devel to fix updating from gmp-devel.
|
|
* Sat May 13 2006 rguenther@suse.de
|
|
- New packages mpfr and mpfr-devel split from the gmp package as
|
|
gmp no longer comes with the mpfr library included. Version 2.2.0.
|