2007-01-16 00:25:46 +01:00
|
|
|
#
|
2011-04-11 08:59:12 +02:00
|
|
|
# spec file for package mpfr
|
2007-01-16 00:25:46 +01:00
|
|
|
#
|
2015-01-08 11:25:44 +01:00
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mpfr
|
|
|
|
BuildRequires: gmp-devel
|
2013-03-14 10:09:08 +01:00
|
|
|
Version: 3.1.2
|
2012-02-13 12:35:29 +01:00
|
|
|
Release: 0
|
2012-07-04 10:51:38 +02:00
|
|
|
Summary: The GNU multiple-precision floating-point library
|
2012-02-13 12:35:29 +01:00
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-10-03 01:07:23 +02:00
|
|
|
Url: http://www.mpfr.org/
|
2013-04-16 14:51:20 +02:00
|
|
|
Source: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.bz2
|
2010-09-20 16:33:18 +02:00
|
|
|
Source2: baselibs.conf
|
2015-01-08 11:25:44 +01:00
|
|
|
Patch1: mpfr-3.1.2-patch11.diff
|
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).
|
|
|
|
|
|
|
|
|
2011-04-08 15:59:32 +02:00
|
|
|
%package -n libmpfr4
|
2012-07-04 10:51:38 +02:00
|
|
|
Summary: The GNU multiple-precision floating-point shared library
|
2007-10-03 01:07:23 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2011-04-08 15:59:32 +02:00
|
|
|
%description -n libmpfr4
|
2007-10-03 01:07:23 +02:00
|
|
|
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
|
|
|
%package devel
|
2012-07-04 10:51:38 +02:00
|
|
|
Summary: Development files for the GNU multiple-precision floating-point library
|
2007-01-16 00:25:46 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-07-04 10:51:38 +02:00
|
|
|
Requires: gmp-devel
|
|
|
|
Requires: libmpfr4 = %{version}
|
2007-01-16 00:25:46 +01:00
|
|
|
PreReq: %install_info_prereq
|
|
|
|
|
|
|
|
%description devel
|
2012-07-04 10:51:38 +02:00
|
|
|
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.
|
2007-01-16 00:25:46 +01:00
|
|
|
|
2007-12-12 18:15:53 +01:00
|
|
|
|
2007-01-16 00:25:46 +01:00
|
|
|
%prep
|
2008-09-13 13:23:51 +02:00
|
|
|
%setup -q
|
2015-01-08 11:25:44 +01:00
|
|
|
%patch1 -p1
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
%build
|
2008-07-18 21:42:31 +02:00
|
|
|
%configure \
|
2011-10-11 14:49:40 +02:00
|
|
|
%ifarch %sparc hppa
|
|
|
|
--disable-thread-safe \
|
|
|
|
%else
|
2008-07-18 21:42:31 +02:00
|
|
|
--enable-thread-safe \
|
|
|
|
%endif
|
2009-12-04 09:51:45 +01:00
|
|
|
--enable-shared \
|
|
|
|
--docdir=%{_docdir}/mpfr
|
2011-04-08 15:59:32 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-10-03 01:07:23 +02:00
|
|
|
|
|
|
|
%check
|
2011-04-08 15:59:32 +02:00
|
|
|
make check %{?_smp_mflags}
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
2011-10-11 14:49:40 +02:00
|
|
|
%post -n libmpfr4 -p /sbin/ldconfig
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2011-10-11 14:49:40 +02:00
|
|
|
%postun -n libmpfr4 -p /sbin/ldconfig
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2011-04-08 15:59:32 +02:00
|
|
|
%files -n libmpfr4
|
2007-01-16 00:25:46 +01:00
|
|
|
%defattr(-,root,root)
|
2011-04-08 15:59:32 +02:00
|
|
|
%{_libdir}/libmpfr.so.4*
|
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
|