Summary:	Functions for multiple precision math
Name:		mpfr
Version:	3.1.5
Release:	1%{?dist}
License:	GPLv3+
URL:		http://www.mpfr.org
Group:		Applications/System
Vendor:		VMware, Inc.
Distribution:   Photon
Source0:	http://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.gz
%define sha1 mpfr=2a2118179f8f3c682389dcddc800d30132e8794a
Requires:	gmp
%description
The MPFR package contains functions for multiple precision math.
%package	devel
Summary:	Header and development files for mpfr
Requires:	%{name} = %{version}

%description	devel
It contains the libraries and header files to create applications 

%prep
%setup -q
%build
./configure \
	--prefix=%{_prefix} \
	--enable-thread-safe \
	--docdir=%{_defaultdocdir}/%{name}-%{version} \
	--disable-silent-rules
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
find %{buildroot}%{_libdir} -name '*.la' -delete
rm -rf %{buildroot}%{_infodir}

%check
make %{?_smp_mflags} check

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libmpfr.so.4.1.5
%{_libdir}/libmpfr.so.4

%files devel
%{_includedir}/mpf2mpfr.h
%{_includedir}/mpfr.h
%{_libdir}/libmpfr.a
%{_libdir}/libmpfr.so
%{_docdir}/mpfr-3.1.5/NEWS
%{_docdir}/mpfr-3.1.5/FAQ.html
%{_docdir}/mpfr-3.1.5/examples/version.c
%{_docdir}/mpfr-3.1.5/examples/rndo-add.c
%{_docdir}/mpfr-3.1.5/examples/ReadMe
%{_docdir}/mpfr-3.1.5/examples/sample.c
%{_docdir}/mpfr-3.1.5/examples/divworst.c
%{_docdir}/mpfr-3.1.5/COPYING.LESSER
%{_docdir}/mpfr-3.1.5/TODO
%{_docdir}/mpfr-3.1.5/BUGS
%{_docdir}/mpfr-3.1.5/AUTHORS
%{_docdir}/mpfr-3.1.5/COPYING

%changelog
*       Fri Mar 31 2017 Michelle Wang <michellew@vmware.com> 3.1.5-1
-       Update package version
*       Mon Oct 03 2016 ChangLee <changlee@vmware.com> 3.1.3-3
-       Modified %check
*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.1.3-2
-	GA - Bump release of all rpms
*       Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com>  3.1.3-1
-       Update version.
*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com>> 3.1.2-1
-	Initial build.	First version