Regenerate.

This commit is contained in:
Ralf Corsepius
2009-07-24 10:13:19 +00:00
parent ba197db0c6
commit d26a03c92c

View File

@@ -52,23 +52,48 @@ Name: rtems-4.8-sparc-rtems4.8-gdb
Summary: Gdb for target sparc-rtems4.8 Summary: Gdb for target sparc-rtems4.8
Group: Development/Tools Group: Development/Tools
Version: %{gdb_rpmvers} Version: %{gdb_rpmvers}
Release: 3%{?dist} Release: 4%{?dist}
License: GPL/LGPL License: GPL/LGPL
URL: http://sources.redhat.com/gdb URL: http://sources.redhat.com/gdb
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{_host_rpmprefix}gcc BuildRequires: %{_host_rpmprefix}gcc
%define build_sim --enable-sim
%if "%{_build}" != "%{_host}"
# psim doesn't support Cdn-X
%if "sparc-rtems4.8" == "powerpc-rtems4.8"
%define build_sim --disable-sim
%endif
%endif
%ifos mingw mingw32
# Mingw lacks functions required by the simulator
%if "sparc-rtems4.8" == "sparc-rtems4.8"
%define build_sim --disable-sim
%endif
%if "sparc-rtems4.8" == "h8300-rtems4.8"
%define build_sim --disable-sim
%endif
%if "%{gdb_version}" >= "6.8.50"
%if "sparc-rtems4.8" == "m32c-rtems4.8"
%define build_sim --disable-sim
%endif
%endif
%if "sparc-rtems4.8" == "lm32-rtems4.8"
%define build_sim --disable-sim
%endif
%if "sparc-rtems4.8" == "mipstx39-rtems4.8"
%define build_sim --disable-sim
%endif
%endif
%if "%{gdb_version}" >= "6.6" %if "%{gdb_version}" >= "6.6"
# suse # suse
%if "%{?suse}"
%if "%{?suse}" >= "10.3" %if "%{?suse}" >= "10.3"
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
%else %else
BuildRequires: expat # Fedora/CentOS/Cygwin/MinGW
%endif
%else
# fedora/redhat/cygwin
BuildRequires: %{_host_rpmprefix}expat-devel BuildRequires: %{_host_rpmprefix}expat-devel
%endif %endif
%endif %endif
@@ -90,8 +115,11 @@ Requires: rtems-4.8-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0} %{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.6"
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.8/gdb-6.6-rtems4.8-20090724.diff
%endif
%if "%{gdb_version}" == "6.8" %if "%{gdb_version}" == "6.8"
Patch0: gdb-6.8-rtems4.8-20080429.diff Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.8/gdb-6.8-rtems4.8-20080429.diff
%endif %endif
%description %description
@@ -123,12 +151,15 @@ rm -f gdb-%{gdb_version}/readline/configure
--without-included-gettext \ --without-included-gettext \
--disable-win32-registry \ --disable-win32-registry \
--disable-werror \ --disable-werror \
--enable-sim \ %{build_sim} \
%if "%{gdb_version}" >= "6.7" %if "%{gdb_version}" >= "6.7"
--with-system-readline \ --with-system-readline \
%endif %endif
%if "%{gdb_version}" >= "6.6" %if "%{gdb_version}" >= "6.6"
--with-expat \ --with-expat \
%endif
%if "%{gdb_version}" >= "6.8.50"
--without-python \
%endif %endif
--prefix=%{_prefix} --bindir=%{_bindir} \ --prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \ --includedir=%{_includedir} --libdir=%{_libdir} \