163 lines
4.4 KiB
RPMSpec
163 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package mpfr (Version 2.3.0)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: mpfr
|
|
BuildRequires: gmp-devel
|
|
License: LGPL v2.1 or later
|
|
Group: Development/Libraries/C and C++
|
|
AutoReqProv: on
|
|
Requires: gmp
|
|
Version: 2.3.0
|
|
Release: 4
|
|
Summary: The MPFR multiple-precision floating-point library
|
|
Url: http://www.mpfr.org/
|
|
Source: mpfr-%{version}.tar.bz2
|
|
Patch: mpfr-%{version}-patches.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
|
|
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
|
|
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
|
|
%patch -p1
|
|
|
|
%build
|
|
%configure --enable-shared --enable-thread-safe
|
|
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
|
|
* 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.
|