Add cygwin/mingw hack.

This commit is contained in:
Ralf Corsepius
2009-04-21 05:24:00 +00:00
parent 8c40f6e16b
commit d9e2c20b8e
+8 -4
View File
@@ -58,24 +58,28 @@ BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
%endif
%if %{defined _mpfr_minvers}
%{?suse10_3:%global mpfr_provided 2.2.1}
# FIXME: This is an ugly cludge
%{?fc9:%global mpfr_provided 2.3.1}
%{?fc10:%global mpfr_provided 2.3.2}
%{?fc11:%global mpfr_provided 2.4.1}
%{?suse10_3:%global mpfr_provided 2.2.1}
%{?cygwin:%global mpfr_provided 2.4.1}
%{?mingw32:%global mpfr_provided %{nil}}
%if %{defined mpfr_provided}
%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
%define _build_mpfr 1
%else
%if "%{_build}" != "%{_host}"
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
%else
BuildRequires: mpfr-devel >= %{_mpfr_minvers}
%endif
%endif
%else
%define _build_mpfr 1
%endif
%if "%{_build}" != "%{_host}"
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
%endif
%endif
%if "%{_build}" != "%{_host}"