2007-01-15 23:25:46 +00:00
|
|
|
#
|
2011-04-11 06:59:12 +00:00
|
|
|
# spec file for package mpfr
|
2007-01-15 23:25:46 +00:00
|
|
|
#
|
2019-02-01 08:38:10 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:25:46 +00:00
|
|
|
#
|
2008-08-08 15:22:44 +00: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.
|
|
|
|
|
2019-07-15 12:53:12 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:25:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mpfr
|
2019-02-01 08:38:10 +00:00
|
|
|
Version: 4.0.2
|
2012-02-13 11:35:29 +00:00
|
|
|
Release: 0
|
2012-07-04 08:51:38 +00:00
|
|
|
Summary: The GNU multiple-precision floating-point library
|
2019-07-15 12:53:12 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2012-02-13 11:35:29 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-10-02 23:07:23 +00:00
|
|
|
Url: http://www.mpfr.org/
|
2015-03-01 12:25:00 +00:00
|
|
|
Source0: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.bz2
|
|
|
|
Source1: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
2019-07-15 12:53:12 +00:00
|
|
|
Patch0: floating-point-format-no-lto.patch
|
2015-03-01 12:25:00 +00:00
|
|
|
BuildRequires: gmp-devel
|
2018-02-08 08:38:43 +00:00
|
|
|
BuildRequires: pkgconfig
|
2007-01-15 23:25:46 +00:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
2018-01-02 12:43:08 +00:00
|
|
|
%package -n libmpfr6
|
2012-07-04 08:51:38 +00:00
|
|
|
Summary: The GNU multiple-precision floating-point shared library
|
2007-10-02 23:07:23 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2018-01-02 12:43:08 +00:00
|
|
|
%description -n libmpfr6
|
2007-10-02 23:07:23 +00: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-15 23:25:46 +00:00
|
|
|
%package devel
|
2012-07-04 08:51:38 +00:00
|
|
|
Summary: Development files for the GNU multiple-precision floating-point library
|
2007-01-15 23:25:46 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-07-04 08:51:38 +00:00
|
|
|
Requires: gmp-devel
|
2018-01-02 12:43:08 +00:00
|
|
|
Requires: libmpfr6 = %{version}
|
2018-05-17 07:02:05 +00:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2007-01-15 23:25:46 +00:00
|
|
|
|
|
|
|
%description devel
|
2012-07-04 08:51:38 +00: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-15 23:25:46 +00:00
|
|
|
|
|
|
|
%prep
|
2008-09-13 11:23:51 +00:00
|
|
|
%setup -q
|
2019-07-15 12:53:12 +00:00
|
|
|
%patch0 -p1
|
2007-01-15 23:25:46 +00:00
|
|
|
|
|
|
|
%build
|
2008-07-18 19:42:31 +00:00
|
|
|
%configure \
|
2018-02-08 08:38:43 +00:00
|
|
|
%ifarch %{sparc} hppa
|
2011-10-11 12:49:40 +00:00
|
|
|
--disable-thread-safe \
|
|
|
|
%else
|
2015-03-01 12:25:00 +00:00
|
|
|
--enable-thread-safe \
|
2008-07-18 19:42:31 +00:00
|
|
|
%endif
|
2009-12-04 08:51:45 +00:00
|
|
|
--enable-shared \
|
2016-11-14 09:57:41 +00:00
|
|
|
--disable-static \
|
2015-03-01 12:25:00 +00:00
|
|
|
--docdir=%{_docdir}/%{name}
|
2011-04-08 13:59:32 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-10-02 23:07:23 +00:00
|
|
|
|
|
|
|
%check
|
2011-04-08 13:59:32 +00:00
|
|
|
make check %{?_smp_mflags}
|
2007-01-15 23:25:46 +00:00
|
|
|
|
|
|
|
%install
|
2018-02-08 08:38:43 +00:00
|
|
|
%make_install
|
2015-03-01 12:25:00 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:25:46 +00:00
|
|
|
|
2018-01-02 12:43:08 +00:00
|
|
|
%post -n libmpfr6 -p /sbin/ldconfig
|
2007-01-15 23:25:46 +00:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2018-05-17 07:02:05 +00:00
|
|
|
%preun devel
|
2007-01-15 23:25:46 +00:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2018-05-17 07:02:05 +00:00
|
|
|
%postun -n libmpfr6 -p /sbin/ldconfig
|
|
|
|
|
2018-01-02 12:43:08 +00:00
|
|
|
%files -n libmpfr6
|
|
|
|
%{_libdir}/libmpfr.so.6*
|
2007-01-15 23:25:46 +00:00
|
|
|
|
|
|
|
%files devel
|
2009-12-04 08:51:45 +00:00
|
|
|
%doc %{_docdir}/mpfr
|
2018-02-08 08:38:43 +00:00
|
|
|
%{_infodir}/mpfr.info%{ext_info}
|
2007-10-02 23:07:23 +00:00
|
|
|
%{_libdir}/libmpfr.so
|
2015-03-01 12:25:00 +00:00
|
|
|
%{_includedir}/mpf2mpfr.h
|
|
|
|
%{_includedir}/mpfr.h
|
2018-01-02 12:43:08 +00:00
|
|
|
%{_libdir}/pkgconfig/mpfr.pc
|
2007-12-12 17:15:53 +00:00
|
|
|
|
2007-10-02 23:07:23 +00:00
|
|
|
%changelog
|