Changeset 8683760 in rtems


Ignore:
Timestamp:
Sep 3, 2008, 9:30:34 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.8
Children:
43db3c8
Parents:
63d7971
Message:

Regenerate.

Location:
contrib/crossrpms/rtems4.8
Files:
47 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.8/arm/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/arm/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "arm-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-arm-rtems4.8-binutils
    171 
    172185GNU binutils targetting arm-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-arm-rtems4.8-gcc
    2539Summary:        arm-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-arm-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-arm-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-arm-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-arm-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/bfin/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    1919GDB_VERS = 6.5
    2020GDB_PKGVERS = $(GDB_VERS)
    21 GDB_RPMREL = 4%{?dist}
     21GDB_RPMREL = 5%{?dist}
    2222include ../gdb.am
    2323GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/bfin/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "bfin-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-bfin-rtems4.8-binutils
    171 
    172185GNU binutils targetting bfin-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-bfin-rtems4.8-gcc
    2539Summary:        bfin-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-bfin-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
    62113Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    63114%if "%{newlib_version}" == "1.15.0"
    64 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     115Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    65116%endif
    66117%{?_without_sources:NoSource:   50}
     118
     119%if "%{gcc_version}" >= "4.3.0"
     120Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     121%endif
    67122
    68123%description
     
    87142  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    88143
     144%if 0%{?_build_mpfr}
     145%setup -q -T -D -n %{name}-%{version} -a60
     146%{?PATCH60:%patch60 -p1}
     147  # Build mpfr one-tree style
     148  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     149%endif
     150
    89151%if "%{gcc_version}" < "4.1.0"
    90152  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    108170  languages="c"
    109171  export PATH="%{_bindir}:${PATH}"
    110 
     172%if "%{_build}" != "%{_host}"
     173  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     174  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     175%else
    111176  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     177%endif
    112178  ../gcc-%{gcc_pkgvers}/configure \
    113179    --prefix=%{_prefix} \
     
    380446
    381447%description -n rtems-4.8-gcc-common
    382 
    383448GCC files that are shared by all targets.
    384449
  • contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        4%{?dist}
     35Release:        5%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    103103    --disable-werror \
    104104    --enable-sim \
     105%if "%{gdb_version}" >= "6.7"
     106    --with-system-readline \
     107%endif
    105108%if "%{gdb_version}" >= "6.6"
    106     --with-system-readline \
    107109    --with-expat \
    108110%endif
  • contrib/crossrpms/rtems4.8/h8300/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/h8300/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "h8300-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-h8300-rtems4.8-binutils
    171 
    172185GNU binutils targetting h8300-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-h8300-rtems4.8-gcc
    2539Summary:        h8300-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-h8300-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-h8300-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-h8300-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-h8300-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/i386/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/i386/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "i386-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-i386-rtems4.8-binutils
    171 
    172185GNU binutils targetting i386-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-i386-rtems4.8-gcc
    2539Summary:        i386-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-i386-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-i386-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-i386-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-i386-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/m68k/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/m68k/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "m68k-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-m68k-rtems4.8-binutils
    171 
    172185GNU binutils targetting m68k-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-m68k-rtems4.8-gcc
    2539Summary:        m68k-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-m68k-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-m68k-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-m68k-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-m68k-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/mips/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/mips/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "mips-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-mips-rtems4.8-binutils
    171 
    172185GNU binutils targetting mips-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-mips-rtems4.8-gcc
    2539Summary:        mips-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-mips-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-mips-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-mips-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-mips-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/mipstx39/Makefile.am

    r63d7971 r8683760  
    88GDB_VERS = 6.6
    99GDB_PKGVERS = $(GDB_VERS)
    10 GDB_RPMREL = 12%{?dist}
     10GDB_RPMREL = 13%{?dist}
    1111include ../gdb.am
    1212GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/mipstx39/rtems-4.8-mipstx39-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/powerpc/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/powerpc/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "powerpc-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-powerpc-rtems4.8-binutils
    171 
    172185GNU binutils targetting powerpc-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-powerpc-rtems4.8-gcc
    2539Summary:        powerpc-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-powerpc-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-powerpc-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-powerpc-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-powerpc-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/sh/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.6
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 12%{?dist}
     22GDB_RPMREL = 13%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/sh/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "sh-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-sh-rtems4.8-binutils
    171 
    172185GNU binutils targetting sh-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-sh-rtems4.8-gcc
    2539Summary:        sh-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-sh-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-sh-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-sh-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-sh-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        12%{?dist}
     35Release:        13%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
  • contrib/crossrpms/rtems4.8/sparc/Makefile.am

    r63d7971 r8683760  
    77BINUTILS_VERS = 2.18
    88BINUTILS_PKGVERS = $(BINUTILS_VERS)
    9 BINUTILS_RPMREL = 3%{?dist}
     9BINUTILS_RPMREL = 4%{?dist}
    1010include ../binutils.am
    1111BINUTILS_OPTS +=
     
    1313GCC_VERS = 4.2.4
    1414GCC_PKGVERS = $(GCC_VERS)
    15 GCC_RPMREL = 30%{?dist}
     15GCC_RPMREL = 31%{?dist}
    1616NEWLIB_VERS = 1.15.0
    1717include ../gcc.am
     
    2020GDB_VERS = 6.8
    2121GDB_PKGVERS = $(GDB_VERS)
    22 GDB_RPMREL = 1%{?dist}
     22GDB_RPMREL = 2%{?dist}
    2323include ../gdb.am
    2424GDB_OPTS +=
  • contrib/crossrpms/rtems4.8/sparc/gcc-sources.add

    r63d7971 r8683760  
    4545Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    4646%if "%{newlib_version}" == "1.15.0"
    47 Patch50:        newlib-1.15.0-rtems4.8-20080508.diff
     47Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    4848%endif
    4949%{?_without_sources:NoSource:   50}
  • contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-binutils.spec

    r63d7971 r8683760  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define binutils_pkgvers 2.18
    1729%define binutils_version 2.18
     
    2234Group:          Development/Tools
    2335Version:        %{binutils_rpmvers}
    24 Release:        3%{?dist}
     36Release:        4%{?dist}
    2537License:        GPL/LGPL
    2638URL:            http://sources.redhat.com/binutils
    2739BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     40
     41%if "%{_build}" != "%{_host}"
     42BuildRequires:  rtems-4.8-%{_host}-gcc
     43%endif
    2844
    2945%if "%{binutils_version}" >= "2.18"
     
    5773
    5874%build
     75  export PATH="%{_bindir}:${PATH}"
    5976%if "sparc-rtems4.8" == "i686-pc-cygwin"
    6077# The cygwin sources are leaking memory
     
    6380  mkdir -p build
    6481  cd build
     82%if "%{_build}" != "%{_host}"
     83  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     84%endif
    6585  CFLAGS="$RPM_OPT_FLAGS" \
    6686  ../binutils-%{binutils_pkgvers}/configure \
     
    81101
    82102%install
     103  export PATH="%{_bindir}:${PATH}"
    83104  rm -rf $RPM_BUILD_ROOT
    84105
    85106  cd build
    86   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    87     bindir=$RPM_BUILD_ROOT%{_bindir} \
    88     includedir=$RPM_BUILD_ROOT%{_includedir} \
    89     libdir=$RPM_BUILD_ROOT%{_libdir} \
    90     infodir=$RPM_BUILD_ROOT%{_infodir} \
    91     mandir=$RPM_BUILD_ROOT%{_mandir} \
    92     exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
    93     install
     107  make DESTDIR=$RPM_BUILD_ROOT install
    94108
    95109  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     
    169183
    170184%description -n rtems-4.8-sparc-rtems4.8-binutils
    171 
    172185GNU binutils targetting sparc-rtems4.8.
    173186
  • contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gcc.spec

    r63d7971 r8683760  
    1414%endif
    1515
    16 
    17 %define gcc_pkgvers 4.2.2
    18 %define gcc_version 4.2.2
    19 %define gcc_rpmvers %{expand:%(echo "4.2.2" | tr - _ )}
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28
     29%define gcc_pkgvers 4.2.4
     30%define gcc_version 4.2.4
     31%define gcc_rpmvers %{expand:%(echo "4.2.4" | tr - _ )}
    2032
    2133%define newlib_version          1.15.0
    2234%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
    2335
     36%define mpfr_version    2.3.1
     37
    2438Name:           rtems-4.8-sparc-rtems4.8-gcc
    2539Summary:        sparc-rtems4.8 gcc
     
    2741Group:          Development/Tools
    2842Version:        %{gcc_rpmvers}
    29 Release:        28%{?dist}
     43Release:        31%{?dist}
    3044License:        GPL
    3145URL:            http://gcc.gnu.org
     
    3448%define _use_internal_dependency_generator 0
    3549
     50BuildRequires:  %{_host_rpmprefix}gcc
     51
     52%if "%{gcc_version}" >= "4.3.0"
     53BuildRequires:  gmp-devel >= 4.1
     54%if "%{_build}" != "%{_host}"
     55BuildRequires:  %{_host_rpmprefix}gmp-devel
     56BuildRequires:  %{_host_rpmprefix}mpfr-devel
     57%endif
     58%if "%{?fedora}" >= "8"
     59BuildRequires:  mpfr-devel >= 2.3.0
     60%endif
     61%if "%{?suse}" > "10.3"
     62BuildRequires:  mpfr-devel >= 2.3.0
     63%endif
     64# These distros ship an insufficient mpfr
     65%{?el4:%define  _build_mpfr     1}
     66%{?suse10_2:%define     _build_mpfr     1}
     67%{?suse10_3:%define     _build_mpfr     1}
     68%endif
     69
     70%if "%{_build}" != "%{_host}"
     71BuildRequires:  rtems-4.8-sparc-rtems4.8-gcc
     72%endif
     73
    3674%if "%{gcc_version}" >= "4.2.0"
    3775BuildRequires:  flex bison
    3876%endif
     77
    3978
    4079BuildRequires:  texinfo >= 4.2
     
    5493%endif
    5594
     95%if "%{gcc_version}" == "4.3.0"
     96Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     97Patch0:         gcc-core-%{gcc_pkgvers}-rtems4.8-20080417.diff
     98%endif
    5699%if "%{gcc_version}" == "4.2.2"
    57100Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
    58101Patch0:         gcc-core-4.2.2-rtems4.8-20071127.diff
    59102%endif
     103%if "%{gcc_version}" == "4.2.3"
     104Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     105Patch0:         gcc-core-4.2.3-rtems4.8-20080508.diff
     106%endif
     107%if "%{gcc_version}" == "4.2.4"
     108Source0:        ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
     109Patch0:         gcc-core-4.2.4-rtems4.8-20080526.diff
     110%endif
    60111%{?_without_sources:NoSource:   0}
    61112
     
    65116Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
    66117%if "%{newlib_version}" == "1.15.0"
    67 Patch50:        newlib-1.15.0-rtems4.8-20071221.diff
     118Patch50:        newlib-1.15.0-rtems4.8-20080903.diff
    68119%endif
    69120%{?_without_sources:NoSource:   50}
     121
     122%if "%{gcc_version}" >= "4.3.0"
     123Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     124%endif
    70125
    71126%description
     
    92147  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
    93148
     149%if 0%{?_build_mpfr}
     150%setup -q -T -D -n %{name}-%{version} -a60
     151%{?PATCH60:%patch60 -p1}
     152  # Build mpfr one-tree style
     153  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     154%endif
     155
    94156%if "%{gcc_version}" < "4.1.0"
    95157  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
     
    114176  languages="$languages,c++"
    115177  export PATH="%{_bindir}:${PATH}"
    116 
     178%if "%{_build}" != "%{_host}"
     179  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     180  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
     181%else
    117182  CC="%{__cc} ${RPM_OPT_FLAGS}" \
     183%endif
    118184  ../gcc-%{gcc_pkgvers}/configure \
    119185    --prefix=%{_prefix} \
     
    386452
    387453%description -n rtems-4.8-gcc-common
    388 
    389454GCC files that are shared by all targets.
    390455
     
    441506License:        GPL
    442507
     508%if "%{_build}" != "%{_host}"
     509BuildRequires:  rtems-4.8-sparc-rtems4.8-gcc-c++
     510%endif
    443511Provides:       rtems-4.8-sparc-rtems4.8-c++ = %{gcc_rpmvers}-%{release}
    444512Obsoletes:      rtems-4.8-sparc-rtems4.8-c++ < %{gcc_rpmvers}-%{release}
  • contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gdb.spec

    r63d7971 r8683760  
    3333Group:          Development/Tools
    3434Version:        %{gdb_rpmvers}
    35 Release:        1%{?dist}
     35Release:        2%{?dist}
    3636License:        GPL/LGPL
    3737URL:            http://sources.redhat.com/gdb
     
    105105    --disable-werror \
    106106    --enable-sim \
     107%if "%{gdb_version}" >= "6.7"
     108    --with-system-readline \
     109%endif
    107110%if "%{gdb_version}" >= "6.6"
    108     --with-system-readline \
    109111    --with-expat \
    110112%endif
Note: See TracChangeset for help on using the changeset viewer.