2007-01-16 00:25:46 +01:00
|
|
|
|
#
|
2009-12-04 09:51:45 +01:00
|
|
|
|
# spec file for package mpfr (Version 2.4.2)
|
2007-01-16 00:25:46 +01:00
|
|
|
|
#
|
2010-01-14 15:15:37 +01:00
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:25:46 +01:00
|
|
|
|
#
|
2008-08-08 17:22:44 +02:00
|
|
|
|
# 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.
|
|
|
|
|
|
2007-01-16 00:25:46 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-10-23 01:27:56 +02:00
|
|
|
|
%define debug_package_requires libmpfr1 = %{version}-%{release}
|
2008-04-10 13:18:04 +02:00
|
|
|
|
|
2007-01-16 00:25:46 +01:00
|
|
|
|
Name: mpfr
|
|
|
|
|
BuildRequires: gmp-devel
|
2009-12-04 09:51:45 +01:00
|
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:25:46 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-10-03 01:07:23 +02:00
|
|
|
|
AutoReqProv: on
|
2009-12-04 09:51:45 +01:00
|
|
|
|
Version: 2.4.2
|
2010-01-14 15:15:37 +01:00
|
|
|
|
Release: 2
|
2007-10-03 01:07:23 +02:00
|
|
|
|
Summary: The MPFR multiple-precision floating-point library
|
|
|
|
|
Url: http://www.mpfr.org/
|
2008-02-01 19:48:02 +01:00
|
|
|
|
Source: mpfr-%{version}.tar.bz2
|
2010-01-14 15:15:37 +01:00
|
|
|
|
Source2: baselibs.conf
|
2007-01-16 00:25:46 +01:00
|
|
|
|
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-03 01:07:23 +02:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Guillaume Hanrot
|
|
|
|
|
Paul Zimmermann
|
|
|
|
|
Vincent Lef<EFBFBD>vre
|
|
|
|
|
Patrick P<EFBFBD>lissier
|
|
|
|
|
|
|
|
|
|
%package -n libmpfr1
|
2009-12-04 09:51:45 +01:00
|
|
|
|
License: LGPLv2.1+
|
2007-10-03 01:07:23 +02:00
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:25:46 +01:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Guillaume Hanrot
|
|
|
|
|
Paul Zimmermann
|
|
|
|
|
Vincent Lef<EFBFBD>vre
|
|
|
|
|
Patrick P<EFBFBD>lissier
|
|
|
|
|
|
|
|
|
|
%package devel
|
2009-12-04 09:51:45 +01:00
|
|
|
|
License: LGPLv2.1+
|
2007-10-03 01:07:23 +02:00
|
|
|
|
Summary: MPFR multiple-precision floating-point library development files
|
2007-01-16 00:25:46 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-10-03 01:07:23 +02:00
|
|
|
|
Requires: libmpfr1 = %{version} gmp-devel
|
2007-01-16 00:25:46 +01:00
|
|
|
|
Provides: gmp-devel:/usr/lib/libmpfr.a
|
2007-10-03 01:07:23 +02:00
|
|
|
|
AutoReqProv: on
|
2007-01-16 00:25:46 +01:00
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
|
|
|
|
|
|
%description devel
|
2007-10-03 01:07:23 +02:00
|
|
|
|
MPFR multiple-precision floating-point library development files
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
2007-12-12 18:15:53 +01:00
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:25:46 +01:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Guillaume Hanrot
|
|
|
|
|
Paul Zimmermann
|
|
|
|
|
Vincent Lef<EFBFBD>vre
|
|
|
|
|
Patrick P<EFBFBD>lissier
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-09-13 13:23:51 +02:00
|
|
|
|
%setup -q
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2008-07-18 21:42:31 +02:00
|
|
|
|
%configure \
|
|
|
|
|
%if 0%{suse_version} > 1000
|
2010-01-14 15:15:37 +01:00
|
|
|
|
%ifnarch %sparc
|
2008-07-18 21:42:31 +02:00
|
|
|
|
--enable-thread-safe \
|
2010-01-14 15:15:37 +01:00
|
|
|
|
%endif
|
2008-07-18 21:42:31 +02:00
|
|
|
|
%endif
|
2009-12-04 09:51:45 +01:00
|
|
|
|
--enable-shared \
|
|
|
|
|
--docdir=%{_docdir}/mpfr
|
2007-01-16 00:25:46 +01:00
|
|
|
|
make %{?jobs:-j%jobs}
|
2007-10-03 01:07:23 +02:00
|
|
|
|
|
|
|
|
|
%check
|
2007-01-16 00:25:46 +01:00
|
|
|
|
make check %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%makeinstall
|
2009-12-04 09:51:45 +01:00
|
|
|
|
rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
2007-10-03 01:07:23 +02:00
|
|
|
|
%post -n libmpfr1
|
2007-01-16 00:25:46 +01:00
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
2007-10-03 01:07:23 +02:00
|
|
|
|
%postun -n libmpfr1
|
2007-01-16 00:25:46 +01:00
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2007-10-03 01:07:23 +02:00
|
|
|
|
%files -n libmpfr1
|
2007-01-16 00:25:46 +01:00
|
|
|
|
%defattr(-,root,root)
|
2007-10-03 01:07:23 +02:00
|
|
|
|
%{_libdir}/libmpfr.so.1*
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2009-12-04 09:51:45 +01:00
|
|
|
|
%doc %{_docdir}/mpfr
|
2007-10-03 01:07:23 +02:00
|
|
|
|
%doc %{_infodir}/mpfr.info.gz
|
|
|
|
|
%{_libdir}/libmpfr.a
|
|
|
|
|
%{_libdir}/libmpfr.so
|
|
|
|
|
%{_prefix}/include/mpf2mpfr.h
|
|
|
|
|
%{_prefix}/include/mpfr.h
|
2007-12-12 18:15:53 +01:00
|
|
|
|
|
2007-10-03 01:07:23 +02:00
|
|
|
|
%changelog
|