File mingw32-mpfr.spec of Package mingw32-mpfr

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-mpfr
Version:        3.1.0
Release:        0
Summary:        The MPFR multiple-precision floating-point library

License:        LGPLv2.1+
Url:            http://www.mpfr.org/
Group:          Development/Libraries
Source:         mpfr-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-gmp-devel


%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 mingw32-libmpfr
Summary:        MPFR multiple-precision floating-point computation shared library
Group:          Development/Libraries

%description -n mingw32-libmpfr
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
Requires:       mingw32(lib:gmp)

%description devel
MPFR multiple-precision floating-point library development files.


%{_mingw32_debug_package}

%prep
%setup -q -n mpfr-%{version}


%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--enable-thread-safe

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
make DESTDIR=$RPM_BUILD_ROOT install


%clean
rm -rf $RPM_BUILD_ROOT


%files -n mingw32-libmpfr
%defattr(755,root,root,755)
%{_mingw32_bindir}/libmpfr-4.dll

%files devel
%defattr(644,root,root,755)
%{_mingw32_libdir}/libmpfr.dll.a
%{_mingw32_includedir}/mpfr.h
%{_mingw32_includedir}/mpf2mpfr.h
%{_mingw32_infodir}
%exclude %{_mingw32_infodir}/dir*
%{_mingw32_datadir}/doc/mpfr


%changelog