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
Summary: The MPFR multiple-precision floating-point library
Version: 3.0.0
Release: 0
Source: mpfr-%{version}.tar.bz2
Source1000: %{name}-rpmlintrc
Group: Development/Libraries
URL: http://mpfrlib.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
License: LGPL v2.1 or later

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

BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-gmp-devel
BuildRequires: autoconf automake libtool


%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-gmp-devel

%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_CFLAGS="%{_mingw32_cflags} --std=gnu99" \
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--enable-thread-safe

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

%install
rm -rf $RPM_BUILD_ROOT
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
openSUSE Build Service is sponsored by