Sync with CVS-HEAD.

This commit is contained in:
Ralf Corsepius
2008-04-29 11:38:26 +00:00
parent b0f67b53f6
commit 90c85d5bf7
3 changed files with 20 additions and 10 deletions

View File

@@ -4,6 +4,9 @@
%endif
mkdir -p build
cd build
%if "%{_build}" != "%{_host}"
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
%endif
CFLAGS="$RPM_OPT_FLAGS" \
../gdb-%{gdb_version}/configure \
--build=%_build --host=%_host \

View File

@@ -10,9 +10,7 @@ License: GPL/LGPL
URL: http://sources.redhat.com/gdb
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if "%{_build}" != "%{_host}"
BuildRequires: @rpmprefix@%{_host}-gcc
%endif
BuildRequires: %{_host_rpmprefix}gcc
%if "%{gdb_version}" >= "6.6"
# suse
@@ -23,20 +21,25 @@ BuildRequires: libexpat-devel
BuildRequires: expat
%endif
%else
# fedora/redhat
BuildRequires: expat-devel
# fedora/redhat/cygwin
BuildRequires: %{_host_rpmprefix}expat-devel
%endif
%endif
%if "%{gdb_version}" < "6.7"
%if "%{_build}" != "%{_host}"
BuildRequires: %{_host_rpmprefix}termcap-devel
%endif
%endif
BuildRequires: %{_host_rpmprefix}readline-devel
BuildRequires: %{_host_rpmprefix}ncurses-devel
%if %build_infos
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
%endif
%if "@tool_target@" == "sparc-rtems@rtems_api@"
BuildConflicts: libtermcap-devel termcap-devel
%endif
BuildRequires: readline-devel
BuildRequires: ncurses-devel
%if %build_infos
Requires: @rpmprefix@gdb-common

View File

@@ -6,3 +6,7 @@ cd gdb-%{gdb_version}
%{?PATCH0:%patch0 -p1}
cd ..
%if "%{gdb_version}" >= "6.7"
# Force using a system-provided libreadline
rm -f gdb-%{gdb_version}/readline/configure
%endif