Experimental changes.

This commit is contained in:
Ralf Corsepius
2009-04-20 06:06:51 +00:00
parent 967eceb2b3
commit 3f7a06d2b7

View File

@@ -53,8 +53,6 @@
%define newlib_pkgvers 1.17.0 %define newlib_pkgvers 1.17.0
%define newlib_version 1.17.0 %define newlib_version 1.17.0
%define mpfr_version 2.3.1
Name: rtems-4.10-avr-rtems4.10-gcc Name: rtems-4.10-avr-rtems4.10-gcc
Summary: avr-rtems4.10 gcc Summary: avr-rtems4.10 gcc
@@ -70,20 +68,52 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{_host_rpmprefix}gcc BuildRequires: %{_host_rpmprefix}gcc
%if "%{gcc_version}" >= "4.3.0" %if "%{gcc_version}" >= "4.3.0"
BuildRequires: gmp-devel >= 4.1 %define _gmp_minvers 4.1
%else
%if "%{gcc_version}" >= "4.2.0"
%endif
%endif
%if %{defined _gmp_minvers}
BuildRequires: gmp-devel >= %{_gmp_minvers}
%if "%{_build}" != "%{_host}" %if "%{_build}" != "%{_host}"
BuildRequires: %{_host_rpmprefix}gmp-devel BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif %endif
%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif %endif
%if "%{?suse}" > "10.3"
BuildRequires: mpfr-devel >= 2.3.0
%if "%{gcc_version}" >= "4.4.0"
%define _mpfr_minvers 2.3.2
%define mpfr_version 2.4.1
%else
%if "%{gcc_version}" >= "4.3.0"
%define _mpfr_minvers 2.3.1
%define mpfr_version 2.3.2
%else
%if "%{gcc_version}" >= "4.2.0"
%endif
%endif
%endif
%if %{defined _mpfr_minvers}
%{?suse10_3:%global mpfr_provided 2.2.1}
%{?fc9:%global mpfr_provided 2.3.1}
%{?fc10:%global mpfr_provided 2.3.2}
%{?fc11:%global mpfr_provided 2.4.1}
%if %{defined mpfr_provided}
%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
%define _build_mpfr 1
%else
BuildRequires: mpfr-devel >= %{_mpfr_minvers}
%endif
%else
%define _build_mpfr 1
%endif
%if "%{_build}" != "%{_host}"
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
%endif %endif
# These distros ship an insufficient mpfr
%{?el4:%define _build_mpfr 1}
%{?suse10_3:%define _build_mpfr 1}
%endif %endif
%if "%{_build}" != "%{_host}" %if "%{_build}" != "%{_host}"