]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb.spec
- pl for -lib
[packages/gdb.git] / gdb.spec
index 3d190c166024ee7d4b15c830bc7eb8841f6d6383..0ba0875cd9838362e7821e4b5519996a6a9c4111 100644 (file)
--- a/gdb.spec
+++ b/gdb.spec
@@ -1,28 +1,43 @@
+#
+# 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.1.1
-Release:       2
+Version:       6.5
+Release:       3
 License:       GPL
 Group:         Development/Debuggers
-Source0:       ftp://ftp.gnu.org/pub/gnu/gdb/%{name}-%{version}.tar.gz
+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
-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
+# 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
@@ -60,57 +75,75 @@ Ele permite 
 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; 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)
-# !! 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-gdcli \
+       --enable-multi-ice \
        --enable-netrom \
-       --with-cpu=%{_target_cpu} \
-       --with-x \
+       --enable-nls \
        --enable-tui \
+       --with-cpu=%{_target_cpu} \
+       --without-included-gettext \
+       --without-included-regex \
+       --without-x \
 %ifnarch alpha
-       --with-mmalloc \
+       --with-mmalloc
 %endif
-       --with-mmap
-
-# something is wrong after above - e.g. $exeext=="no" - fix it:
-(cd gdb
-%configure
-)
 
 %{__make}
 %{__make} info
@@ -130,6 +163,8 @@ install -d $RPM_BUILD_ROOT%{_infodir}
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
+install gdb/libgdb.a $RPM_BUILD_ROOT%{_libdir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -141,8 +176,8 @@ 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/*
@@ -151,3 +186,7 @@ rm -rf $RPM_BUILD_ROOT
 %lang(pl) %{_mandir}/pl/man1/*
 %{_infodir}/gdb*.info*
 %{_infodir}/stabs*.info*
+
+%files lib
+%defattr(644,root,root,755)
+%{_libdir}/libgdb.a
This page took 0.038106 seconds and 4 git commands to generate.