Summary(ru): óÉÍ×ÏÌÉÞÅÓËÉÊ ÏÔÌÁÄÞÉË ÄÌÑ C É ÄÒÕÇÉÈ ÑÚÙËÏ×
Summary(tr): C ve diðer diller için sembolik hata ayýklayýcý
Summary(uk): óÉÍ×ÏÌØÎÉÊ ×¦ÄÌÁÄÞÉË ÄÌÑ ó ÔÁ ¦ÎÛÉÈ ÍÏ×
+Summary(zh_CN): [¿ª·¢]CºÍÆäËûÓïÑԵĵ÷ÊÔÆ÷
+Summary(zh_TW): [.-A¶}µo]C©M.$)B¨ä.-A¥L»y.$)B¨¥ªº½Õ¸Õ¾¹
Name: gdb
-Version: 5.2
-Release: 1
+Version: 6.1
+Release: 2
License: GPL
Group: Development/Debuggers
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/%{name}-%{version}.tar.gz
+# Source0-md5: f707d21f5a3e963ce059caed75e899a2
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-Patch0: %{name}-gettext.patch
-Patch1: %{name}-ncurses.patch
-Patch2: %{name}-readline.patch
-Patch3: %{name}-info.patch
-Patch4: %{name}-procfs.patch
-Patch5: %{name}-passflags.patch
-BuildRequires: ncurses-devel >= 5.2
-BuildRequires: readline-devel >= 4.2
+# Source1-md5: 2e8a48939ae282c12bbacdd54e398247
+Patch0: %{name}-ncurses.patch
+Patch1: %{name}-readline.patch
+Patch2: %{name}-info.patch
+Patch3: %{name}-passflags.patch
+Patch4: %{name}-headers.patch
BuildRequires: XFree86-devel
BuildRequires: autoconf >= 2.53
+BuildRequires: automake
BuildRequires: libtool
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: readline-devel >= 4.3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch2 -p1
%patch3 -p1
%patch4 -p1
-%patch5 -p1
%build
-(cd gdb; autoconf)
-(cd gdb/doc; autoconf)
-(cd gdb/testsuite; autoconf)
-(cd gdb/testsuite/gdb.asm; autoconf)
-(cd gdb/testsuite/gdb.base; autoconf)
-(cd gdb/testsuite/gdb.c++; autoconf)
-(cd gdb/testsuite/gdb.chill; autoconf)
-(cd gdb/testsuite/gdb.disasm; autoconf)
-(cd gdb/testsuite/gdb.fortran; autoconf)
-(cd gdb/testsuite/gdb.java; autoconf)
-(cd gdb/testsuite/gdb.mi; autoconf)
-(cd gdb/testsuite/gdb.stabs; autoconf)
-(cd gdb/testsuite/gdb.threads; autoconf)
-(cd gdb/testsuite/gdb.trace; autoconf)
-(cd gdb/gdbserver; autoconf)
+for dir in `find gdb/ -name 'configure.in'`; do
+ dir=$(dirname "$dir")
+ olddir=$(pwd)
+ cd $dir
+ rm -f aclocal.m4
+ %{__aclocal}
+ %{__autoconf}
+ cd $olddir
+done
+cp -f /usr/share/automake/config.* .
# !! Don't enable shared here !!
# This will cause serious problems --misiek
%configure2_13 \
--with-cpu=%{_target_cpu} \
--enable-tui \
%ifnarch alpha
- --with-mmalloc \
+ --with-mmalloc
%endif
# something is wrong after above - e.g. $exeext=="no" - fix it:
-(cd gdb
+cd gdb
%configure
-)
+cd ..
%{__make}
%{__make} info