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
|
|
|
#
|
2022-11-18 09:01:57 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-07-15 14:53:12 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:25:46 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mpfr
|
2022-11-18 09:01:57 +01:00
|
|
|
Version: 4.1.1
|
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
|
2019-07-15 14:53:12 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2012-02-13 12:35:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-07-14 08:34:38 +02:00
|
|
|
URL: https://www.mpfr.org/
|
|
|
|
Source0: https://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz
|
|
|
|
Source1: https://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz.asc
|
2015-03-01 13:25:00 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
|
|
|
BuildRequires: gmp-devel
|
2018-02-08 09:38:43 +01:00
|
|
|
BuildRequires: pkgconfig
|
2007-01-16 00:25:46 +01: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 13:43:08 +01:00
|
|
|
%package -n libmpfr6
|
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++
|
|
|
|
|
2018-01-02 13:43:08 +01:00
|
|
|
%description -n libmpfr6
|
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
|
2018-01-02 13:43:08 +01:00
|
|
|
Requires: libmpfr6 = %{version}
|
2022-11-18 09:01:57 +01:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun):%{install_info_prereq}
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%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 \
|
2018-02-08 09:38:43 +01:00
|
|
|
%ifarch %{sparc} hppa
|
2011-10-11 14:49:40 +02:00
|
|
|
--disable-thread-safe \
|
|
|
|
%else
|
2015-03-01 13:25:00 +01:00
|
|
|
--enable-thread-safe \
|
2008-07-18 21:42:31 +02:00
|
|
|
%endif
|
2009-12-04 09:51:45 +01:00
|
|
|
--enable-shared \
|
2016-11-14 10:57:41 +01:00
|
|
|
--disable-static \
|
2015-03-01 13:25:00 +01:00
|
|
|
--docdir=%{_docdir}/%{name}
|
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
|
2018-02-08 09:38:43 +01:00
|
|
|
%make_install
|
2015-03-01 13:25:00 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:25:46 +01:00
|
|
|
|
2018-01-02 13:43:08 +01:00
|
|
|
%post -n libmpfr6 -p /sbin/ldconfig
|
2022-11-18 09:01:57 +01:00
|
|
|
|
2007-01-16 00:25:46 +01:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2018-05-17 09:02:05 +02:00
|
|
|
%preun devel
|
2007-01-16 00:25:46 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2018-05-17 09:02:05 +02:00
|
|
|
%postun -n libmpfr6 -p /sbin/ldconfig
|
|
|
|
|
2018-01-02 13:43:08 +01:00
|
|
|
%files -n libmpfr6
|
|
|
|
%{_libdir}/libmpfr.so.6*
|
2007-01-16 00:25:46 +01:00
|
|
|
|
|
|
|
%files devel
|
2009-12-04 09:51:45 +01:00
|
|
|
%doc %{_docdir}/mpfr
|
2018-02-08 09:38:43 +01:00
|
|
|
%{_infodir}/mpfr.info%{ext_info}
|
2007-10-03 01:07:23 +02:00
|
|
|
%{_libdir}/libmpfr.so
|
2015-03-01 13:25:00 +01:00
|
|
|
%{_includedir}/mpf2mpfr.h
|
|
|
|
%{_includedir}/mpfr.h
|
2018-01-02 13:43:08 +01:00
|
|
|
%{_libdir}/pkgconfig/mpfr.pc
|
2007-12-12 18:15:53 +01:00
|
|
|
|
2007-10-03 01:07:23 +02:00
|
|
|
%changelog
|