Changeset a7951dc0 in rtems


Ignore:
Timestamp:
Apr 20, 2009, 9:27:37 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
b77b3672
Parents:
3f7a06d2
Message:

rework mpfr handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/gcc/gccnewlib.add

    r3f7a06d2 ra7951dc0  
    88%define newlib_version          @NEWLIB_VERS@
    99%endif
    10 
    11 %define mpfr_version    2.3.1
    1210
    1311Name:           @rpmprefix@@tool_target@-gcc
     
    2624
    2725%if "%{gcc_version}" >= "4.3.0"
    28 BuildRequires:  gmp-devel >= 4.1
     26%define _gmp_minvers            4.1
     27%else
     28%if "%{gcc_version}" >= "4.2.0"
     29%if %build_f95
     30%define _gmp_minvers            4.1
     31%endif
     32%endif
     33%endif
     34
     35%if %{defined _gmp_minvers}
     36BuildRequires: gmp-devel >= %{_gmp_minvers}
    2937%if "%{_build}" != "%{_host}"
    30 BuildRequires:  %{_host_rpmprefix}gmp-devel
    31 BuildRequires:  %{_host_rpmprefix}mpfr-devel
     38BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
    3239%endif
    33 %if 0%{?fedora} >= 8
    34 BuildRequires:  mpfr-devel >= 2.3.0
    3540%endif
    36 %if "%{?suse}" > "10.3"
    37 BuildRequires:  mpfr-devel >= 2.3.0
     41
     42
     43%if "%{gcc_version}" >= "4.4.0"
     44%define _mpfr_minvers   2.3.2
     45%define mpfr_version    2.4.1
     46%else
     47%if "%{gcc_version}" >= "4.3.0"
     48%define _mpfr_minvers   2.3.1
     49%define mpfr_version    2.3.2
     50%else
     51%if "%{gcc_version}" >= "4.2.0"
     52%if %build_f95
     53%define _mpfr_minvers   2.2.1
     54%define mpfr_version    2.3.2
    3855%endif
    39 # These distros ship an insufficient mpfr
    40 %{?el4:%define  _build_mpfr     1}
    41 %{?suse10_3:%define     _build_mpfr     1}
     56%endif
     57%endif
     58%endif
     59
     60%if %{defined _mpfr_minvers}
     61%{?suse10_3:%global mpfr_provided 2.2.1}
     62%{?fc9:%global mpfr_provided 2.3.1}
     63%{?fc10:%global mpfr_provided 2.3.2}
     64%{?fc11:%global mpfr_provided 2.4.1}
     65
     66%if %{defined mpfr_provided}
     67%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
     68%define _build_mpfr 1
     69%else
     70BuildRequires: mpfr-devel >= %{_mpfr_minvers}
     71%endif
     72%else
     73%define _build_mpfr 1
     74%endif
     75
     76%if "%{_build}" != "%{_host}"
     77BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
     78%endif
    4279%endif
    4380
     
    4885%if "%{gcc_version}" >= "4.2.0"
    4986BuildRequires:  flex bison
    50 %if %build_f95
    51 BuildRequires:  gmp-devel >= 4.1
    52 %if 0%{?fedora} >= 8
    53 BuildRequires:  mpfr-devel >= 2.2.1
    54 %endif
    55 %endif
    5687%endif
    5788
     
    85116BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
    86117%endif
    87 %if %build_f95
    88 BuildRequires: gmp-devel
    89 %endif
    90118
    91119%if "%{gcc_version}" >= "3.4"
Note: See TracChangeset for help on using the changeset viewer.