Changeset 3f7a06d2 in rtems


Ignore:
Timestamp:
Apr 20, 2009, 6:06:51 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
a7951dc0
Parents:
967eceb
Message:

Experimental changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec

    r967eceb r3f7a06d2  
    5454%define newlib_version          1.17.0
    5555
    56 %define mpfr_version    2.3.1
    57 
    5856Name:           rtems-4.10-avr-rtems4.10-gcc
    5957Summary:        avr-rtems4.10 gcc
     
    7169
    7270%if "%{gcc_version}" >= "4.3.0"
    73 BuildRequires:  gmp-devel >= 4.1
     71%define _gmp_minvers            4.1
     72%else
     73%if "%{gcc_version}" >= "4.2.0"
     74%endif
     75%endif
     76
     77%if %{defined _gmp_minvers}
     78BuildRequires: gmp-devel >= %{_gmp_minvers}
    7479%if "%{_build}" != "%{_host}"
    75 BuildRequires:  %{_host_rpmprefix}gmp-devel
    76 BuildRequires:  %{_host_rpmprefix}mpfr-devel
    77 %endif
    78 %if 0%{?fedora} >= 8
    79 BuildRequires:  mpfr-devel >= 2.3.0
    80 %endif
    81 %if "%{?suse}" > "10.3"
    82 BuildRequires:  mpfr-devel >= 2.3.0
    83 %endif
    84 # These distros ship an insufficient mpfr
    85 %{?el4:%define  _build_mpfr     1}
    86 %{?suse10_3:%define     _build_mpfr     1}
     80BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
     81%endif
     82%endif
     83
     84
     85%if "%{gcc_version}" >= "4.4.0"
     86%define _mpfr_minvers   2.3.2
     87%define mpfr_version    2.4.1
     88%else
     89%if "%{gcc_version}" >= "4.3.0"
     90%define _mpfr_minvers   2.3.1
     91%define mpfr_version    2.3.2
     92%else
     93%if "%{gcc_version}" >= "4.2.0"
     94%endif
     95%endif
     96%endif
     97
     98%if %{defined _mpfr_minvers}
     99%{?suse10_3:%global mpfr_provided 2.2.1}
     100%{?fc9:%global mpfr_provided 2.3.1}
     101%{?fc10:%global mpfr_provided 2.3.2}
     102%{?fc11:%global mpfr_provided 2.4.1}
     103
     104%if %{defined mpfr_provided}
     105%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
     106%define _build_mpfr 1
     107%else
     108BuildRequires: mpfr-devel >= %{_mpfr_minvers}
     109%endif
     110%else
     111%define _build_mpfr 1
     112%endif
     113
     114%if "%{_build}" != "%{_host}"
     115BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
     116%endif
    87117%endif
    88118
Note: See TracChangeset for help on using the changeset viewer.