Ignore:
Timestamp:
Feb 27, 2008, 9:09:49 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
1a2b747
Parents:
ce4d33f
Message:

Upgrade to gcc-4.3.0-RC-20080222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec

    rce4d33f r3c7a743  
    1515
    1616
    17 %define gcc_pkgvers 4.0.4
    18 %define gcc_version 4.0.4
    19 %define gcc_rpmvers %{expand:%(echo "4.0.4" | tr - _ )}
     17%define gcc_pkgvers 4.3.0-RC-20080222
     18%define gcc_version 4.3.0
     19%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
    2020
    2121%define newlib_version          1.16.0
    2222%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2323
     24%define mpfr_version    2.3.1
     25
    2426Name:           rtems-4.9-avr-rtems4.9-gcc
    2527Summary:        avr-rtems4.9 gcc
     
    2729Group:          Development/Tools
    2830Version:        %{gcc_rpmvers}
    29 Release:        5%{?dist}
     31Release:        0.20080222.1%{?dist}
    3032License:        GPL
    3133URL:            http://gcc.gnu.org
     
    3335
    3436%define _use_internal_dependency_generator 0
     37
     38%if "%{gcc_version}" >= "4.3.0"
     39BuildRequires:  gmp-devel >= 4.1
     40%if "%{?fedora}" >= "8"
     41BuildRequires:  mpfr-devel >= 2.3.0
     42%endif
     43%if "%{?suse}" >= "10.3"
     44BuildRequires:  mpfr-devel >= 2.3.0
     45%endif
     46# These distros ship an insufficient mpfr
     47%{?el4:%define  _build_mpfr     1}
     48%endif
    3549
    3650%if "%{gcc_version}" >= "4.2.0"
     
    5468%endif
    5569
    56 %if "%{gcc_version}" == "4.0.4"
    57 Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
     70%if "%{gcc_version}" == "4.3.0"
     71Source0:        ftp://gcc.gnu.org/pub/gcc/snapshots/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     72Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.9-20080225.diff
     73%endif
     74%if "%{gcc_version}" == "4.2.3"
     75Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     76Patch0:         gcc-core-4.2.3-rtems4.9-20080205.diff
     77%endif
     78%if "%{gcc_version}" == "4.0.4"
     79Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
    5880Patch0:         gcc-core-4.0.4-rtems4.9-20071111.diff
    59 %endif
    60 %if "%{gcc_version}" == "4.2.3"
    61 Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    62 Patch0:         gcc-core-4.2.3-rtems4.9-20080205.diff
    6381%endif
    6482%{?_without_sources:NoSource:   0}
     
    6987%endif
    7088%{?_without_sources:NoSource:   50}
     89
     90%if "%{gcc_version}" >= "4.3.0"
     91Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     92%endif
    7193
    7294%description
     
    90112  # Copy the C library into gcc's source tree
    91113  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
     114
     115%if 0%{?_build_mpfr}
     116%setup -q -T -D -n %{name}-%{version} -a60
     117%{?PATCH60:%patch60 -p1}
     118  # Build mpfr one-tree style
     119  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     120%endif
    92121
    93122%if "%{gcc_version}" < "4.1.0"
Note: See TracChangeset for help on using the changeset viewer.