Ignore:
Timestamp:
Apr 28, 2008, 2:32:07 PM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
7cdaed0d
Parents:
7df9456
Message:

Regenerate.

File:
1 edited

Legend:

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

    r7df9456 rea7a607  
    2020%endif
    2121
    22 %define gdb_version 6.7.1
    23 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)}
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.9-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
     28%define gdb_version 6.8
     29%define gdb_rpmvers %{expand:%(echo 6.8 | tr - _)}
    2430
    2531Name:           rtems-4.9-powerpc-rtems4.9-gdb
     
    2733Group:          Development/Tools
    2834Version:        %{gdb_rpmvers}
    29 Release:        6%{?dist}
     35Release:        2%{?dist}
    3036License:        GPL/LGPL
    3137URL:            http://sources.redhat.com/gdb
    3238BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    3339
    34 %if "%{_build}" != "%{_host}"
    35 BuildRequires:  rtems-4.9-%{_host}-gcc
    36 %endif
     40BuildRequires:  %{_host_rpmprefix}gcc
    3741
    3842%if "%{gdb_version}" >= "6.6"
     
    4549%endif
    4650%else
    47 # fedora/redhat
    48 BuildRequires:  expat-devel
    49 %endif
    50 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.6"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    5164# Required for building the infos
    5265BuildRequires:  /sbin/install-info
     
    5568BuildConflicts: libtermcap-devel termcap-devel
    5669%endif
    57 BuildRequires:  readline-devel
    58 BuildRequires:  ncurses-devel
     70
    5971
    6072Requires:       rtems-4.9-gdb-common
     
    6274Source0:        ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
    6375%{?_without_sources:NoSource:   0}
    64 %if "%{gdb_version}" == "6.7.1"
    65 Patch0:         gdb-6.7.1-rtems4.9-20080324.diff
    66 Patch1:         gdb-6.7.1-gdb-6.7.90-config.diff
     76%if "%{gdb_version}" == "6.8"
     77Patch0:         gdb-6.8-rtems4.9-20080428.diff
    6778%endif
    6879
     
    7889cd ..
    7990
     91%if "%{gdb_version}" >= "6.8"
     92# Force using a system-provided libreadline
     93rm -f gdb-%{gdb_version}/readline/configure
     94%endif
    8095%build
    8196  export PATH="%{_bindir}:${PATH}"
    8297  mkdir -p build
    8398  cd build
     99%if "%{_build}" != "%{_host}"
     100  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     101%endif
    84102  CFLAGS="$RPM_OPT_FLAGS" \
    85103  ../gdb-%{gdb_version}/configure \
     
    168186
    169187%description -n rtems-4.9-powerpc-rtems4.9-gdb
    170 
    171188GNU gdb targetting powerpc-rtems4.9.
    172189
Note: See TracChangeset for help on using the changeset viewer.