File mingw32-gmp.spec of Package mingw32-gmp

%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-gmp
Summary: The GNU MP Library
Version: 5.0.1
Release: 0
Source: gmp-%{version}.tar.bz2
Source1000: %{name}-rpmlintrc
Patch1: gmp.m4.patch
Group: Development/Libraries
URL: http://gmplib.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
License: GPL v3 or later; LGPL v3 or later

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

BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: autoconf automake libtool


%description
A library for calculating huge numbers (integer and floating point).


%package -n mingw32-libgmp
Summary: Shared library for the GNU MP Library
Group: Development/Libraries

%description -n mingw32-libgmp
Shared library for the GNU MP Library.


%package -n mingw32-libgmpxx
Summary: C++ bindings for the GNU MP Library
Group: Development/Libraries

%description -n mingw32-libgmpxx
C++ bindings for the GNU MP Library.

%package devel
Summary: Include Files and Libraries for Development with the GNU MP Library
Group: Development/Libraries

%description devel
These libraries are needed to develop programs which calculate with
huge numbers (integer and floating point).


%{_mingw32_debug_package}

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

%patch1 -p2 -b .m4__


%build
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--enable-cxx

%{_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-libgmp
%defattr(755,root,root,755)
%{_mingw32_bindir}/libgmp-10.dll

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

%files devel
%defattr(644,root,root,755)
%{_mingw32_libdir}/libgmp.dll.a
%{_mingw32_libdir}/libgmpxx.dll.a
%{_mingw32_includedir}/gmp.h
%{_mingw32_includedir}/gmpxx.h
%{_mingw32_infodir}
%exclude %{_mingw32_infodir}/dir*


%changelog
openSUSE Build Service is sponsored by