mpfr/mpfr.spec

110 lines
3.1 KiB
RPMSpec

#
# spec file for package mpfr
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mpfr
BuildRequires: gmp-devel
Version: 3.1.0
Release: 0
Summary: The MPFR multiple-precision floating-point library
License: LGPL-3.0+
Group: Development/Libraries/C and C++
Url: http://www.mpfr.org/
Source: mpfr-%{version}.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: %{name}-%{version}-patch01.diff
%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).
%package -n libmpfr4
Summary: MPFR multiple-precision floating-point computation shared library
Group: Development/Libraries/C and C++
%description -n libmpfr4
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.
%package devel
Summary: MPFR multiple-precision floating-point library development files
Group: Development/Libraries/C and C++
Requires: libmpfr4 = %{version} gmp-devel
PreReq: %install_info_prereq
%description devel
MPFR multiple-precision floating-point library development files
%prep
%setup -q
%patch1 -p1
%build
%configure \
%ifarch %sparc hppa
--disable-thread-safe \
%else
--enable-thread-safe \
%endif
--enable-shared \
--docdir=%{_docdir}/mpfr
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
%makeinstall
rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
%post -n libmpfr4 -p /sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun -n libmpfr4 -p /sbin/ldconfig
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files -n libmpfr4
%defattr(-,root,root)
%{_libdir}/libmpfr.so.4*
%files devel
%defattr(-,root,root)
%doc %{_docdir}/mpfr
%doc %{_infodir}/mpfr.info.gz
%{_libdir}/libmpfr.a
%{_libdir}/libmpfr.so
%{_prefix}/include/mpf2mpfr.h
%{_prefix}/include/mpfr.h
%changelog