+#
+# NOTE: Do not remove -lib package, it is required by FPC
+#
Summary: A GNU source-level debugger for C, C++ and Fortran
-Summary(de): Symbolischer Debugger für C und andere Sprachen
+Summary(de): Symbolischer Debugger für C und andere Sprachen
Summary(es): Depurador de programas C y otras lenguajes
Summary(fr): Débugger symbolique pour C et d'autres langages
Summary(pl): Symboliczny odpluskwiacz dla C i innych jêzyków
Summary(pt_BR): Depurador de programas C e outras linguagens
+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.0
-Release: 8
+Version: 6.5
+Release: 3
License: GPL
Group: Development/Debuggers
-Group(de): Entwicklung/Debugger
-Group(pl): Programowanie/Odpluskwiacze
-Source0: ftp://ftp.gnu.org/pub/gnu/gdb/%{name}-%{version}.tar.bz2
-Source1: %{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
-BuildRequires: ncurses-devel >= 5.2
-BuildRequires: readline-devel >= 4.2
-BuildRequires: XFree86-devel
-BuildRequires: autoconf
+Source0: ftp://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.bz2
+# Source0-md5: af6c8335230d7604aee0803b1df14f54
+Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 2e8a48939ae282c12bbacdd54e398247
+Patch0: %{name}-readline.patch
+Patch1: %{name}-info.patch
+Patch2: %{name}-passflags.patch
+# updated from http://www.math.uni.wroc.pl/~hebisch/gpc/gdb-6.1.diff
+Patch3: %{name}-gpc.patch
+Patch4: %{name}-gdbinit-stat.patch
+Patch5: %{name}-pretty-print-by-default.patch
+Patch6: %{name}-absolute-gnu_debuglink-path.patch
+Patch7: %{name}-gnu_hash.patch
+BuildRequires: autoconf >= 2.53
BuildRequires: automake
+BuildRequires: bison
+BuildRequires: flex
BuildRequires: libtool
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: readline-devel >= 4.3
+BuildRequires: texinfo
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
estado interno a qualquer momento. Ele funciona para para C e C++
compilado com o compilador GNU C.
+%description -l ru
+üÔÏ ÐÏÌÎÏÃÅÎÎÙÊ ÏÔÌÁÄÞÉË, ÕÐÒÁ×ÌÑÅÍÙÊ ËÏÍÁÎÄÁÍÉ. ïÎ ÐÏÚ×ÏÌÑÅÔ
+ÔÒÁÓÓÉÒÏ×ÁÔØ ÉÓÐÏÌÎÅÎÉÅ ÐÒÏÇÒÁÍÍ É ÉÚÕÞÁÔØ ÉÈ ×ÎÕÔÒÅÎÎÅÅ ÓÏÓÔÏÑÎÉÅ ×
+ÌÀÂÏÊ ÍÏÍÅÎÔ ×ÒÅÍÅÎÉ. òÁÂÏÔÁÅÔ Ó ÐÒÏÇÒÁÍÍÁÍÉ ÎÁ C É C++,
+ÓËÏÍÐÉÌÉÒÏ×ÁÎÎÙÍÉ GNU ËÏÍÐÉÌÑÔÏÒÏÍ C (gcc, egcs, pgcc).
+
%description -l tr
Bir komut arayüzü üzerinden programcýya programýný adým adým izleme
(trace) ve herhangi bir anda programýn durumunu inceleme olanaðý
verir.
+%description -l uk
+ãÅ ÐÏ×ÎÏæÎÎÉÊ ×¦ÄÌÁÄÞÉË, ÝÏ ËÅÒÕ¤ÔØÓÑ ËÏÍÁÎÄÁÍÉ. ÷¦Î ÄÏÚ×ÏÌѤ
+ÔÒÁÓÕ×ÁÔÉ ×ÉËÏÎÁÎÎÑ ÐÒÏÇÒÁÍ ÔÁ ×É×ÞÁÔÉ §È ×ÎÕÔÒ¦ÛÎ¦Ê ÓÔÁÎ × ÄÏצÌØÎÉÊ
+ÍÏÍÅÎÔ ÞÁÓÕ. ðÒÁÃÀ¤ Ú ÐÒÏÇÒÁÍÁÍÉ ÎÁ C ÔÁ C++, ÚËÏÍЦÌØÏ×ÁÎÉÍÉ
+ËÏÍЦÌÑÔÏÒÁÍÉ GNU C (gcc, egcs, pgcc).
+
+%package lib
+Summary: GDB in the form of a static library
+Summary(pl): GDB w postaci biblioteki statycznej
+Group: Development/Debuggers
+#Requires: binutils-static >= 2.17.50
+
+%description lib
+GDB in the form of a static library.
+
+%description lib -l pl
+GDB w postaci biblioteki statycznej.
+
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p1
+%patch4 -p0
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
%build
-(cd gdb; libtoolize --copy --force; aclocal; 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.disasm; autoconf)
-(cd gdb/testsuite/gdb.chill; autoconf)
-(cd gdb/testsuite/gdb.mi; autoconf)
-(cd gdb/testsuite/gdb.threads; autoconf)
-(cd gdb/testsuite/gdb.trace; autoconf)
-(cd gdb/testsuite/gdb.stabs; autoconf)
-(cd gdb/gdbserver; autoconf)
-# !! Don't enable shared here !!
+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 \
+ --disable-gdbtk \
--disable-shared \
- --enable-nls \
- --without-included-gettext \
- --enable-multi-ice \
+ --enable-gdbcli \
--enable-gdbmi \
+ --enable-multi-ice \
--enable-netrom \
+ --enable-nls \
+ --enable-tui \
--with-cpu=%{_target_cpu} \
- --with-x \
+ --without-included-gettext \
+ --without-included-regex \
+ --without-x \
%ifnarch alpha
- --with-mmalloc \
+ --with-mmalloc
%endif
- --with-mmap
-# --enable-tui
-# rebuild main Makefile again (due to some bug, Makefile is deleted)
-%configure2_13 \
- --norecursion
-
%{__make}
%{__make} info
bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+install gdb/libgdb.a $RPM_BUILD_ROOT%{_libdir}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc gdb/{ChangeLog,NEWS,PROBLEMS,README}
%attr(755,root,root) %{_bindir}/*
-
%{_mandir}/man1/*
%lang(es) %{_mandir}/es/man1/*
%lang(fr) %{_mandir}/fr/man1/*
%lang(pl) %{_mandir}/pl/man1/*
%{_infodir}/gdb*.info*
%{_infodir}/stabs*.info*
+
+%files lib
+%defattr(644,root,root,755)
+%{_libdir}/libgdb.a