Ignore:
Timestamp:
Feb 27, 2008, 2:16:53 PM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
7cfcdc1
Parents:
8e6bf2b
Message:

Upgrade to gcc-4.3.0-RC-20080222.

File:
1 edited

Legend:

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

    r8e6bf2b rcaeacf7b  
    1515
    1616
    17 %define gcc_pkgvers 4.2.3
    18 %define gcc_version 4.2.3
    19 %define gcc_rpmvers %{expand:%(echo "4.2.3" | 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-powerpc-rtems4.9-gcc
    2527Summary:        powerpc-rtems4.9 gcc
     
    2729Group:          Development/Tools
    2830Version:        %{gcc_rpmvers}
    29 Release:        10%{?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
     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
    5674%if "%{gcc_version}" == "4.2.3"
    57 Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     75Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    5876Patch0:         gcc-core-4.2.3-rtems4.9-20080205.diff
    5977%endif
    6078%{?_without_sources:NoSource:   0}
    6179
    62 Source1:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
     80%if "%{gcc_version}" == "4.3.0"
     81Source1:        ftp://gcc.gnu.org/pub/gcc/snapshots/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
     82%endif
     83%if  "%{gcc_version}" == "4.2.3"
     84Source1:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
     85%endif
    6386%{?_without_sources:NoSource:   1}
    6487
     
    6891%endif
    6992%{?_without_sources:NoSource:   50}
     93
     94%if "%{gcc_version}" >= "4.3.0"
     95Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     96%endif
    7097
    7198%description
     
    91118  # Copy the C library into gcc's source tree
    92119  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
     120
     121%if 0%{?_build_mpfr}
     122%setup -q -T -D -n %{name}-%{version} -a60
     123%{?PATCH60:%patch60 -p1}
     124  # Build mpfr one-tree style
     125  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     126%endif
    93127
    94128%if "%{gcc_version}" < "4.1.0"
Note: See TracChangeset for help on using the changeset viewer.