diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-04-20 06:06:51 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-04-20 06:06:51 +0000 |
commit | 3f7a06d2b7d13412ea723f12bc27b7397e8b4ce1 (patch) | |
tree | 2835f15ba9c1230e7b87a573cd48320ba491c3c5 /contrib | |
parent | 2009-04-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-3f7a06d2b7d13412ea723f12bc27b7397e8b4ce1.tar.bz2 |
Experimental changes.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec | 54 |
1 files changed, 42 insertions, 12 deletions
diff --git a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec index b8ef14f43c..6488759fe0 100644 --- a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec +++ b/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec @@ -53,8 +53,6 @@ %define newlib_pkgvers 1.17.0 %define newlib_version 1.17.0 -%define mpfr_version 2.3.1 - Name: rtems-4.10-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 %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}" -BuildRequires: %{_host_rpmprefix}gmp-devel -BuildRequires: %{_host_rpmprefix}mpfr-devel +BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers} %endif -%if 0%{?fedora} >= 8 -BuildRequires: mpfr-devel >= 2.3.0 %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 -# These distros ship an insufficient mpfr -%{?el4:%define _build_mpfr 1} -%{?suse10_3:%define _build_mpfr 1} %endif %if "%{_build}" != "%{_host}" |