X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gdb.spec;h=22a325449fb9ffb1f59889ffdb906303994eb8b8;hb=2b2459c9dad88cfb2c48aa7ee818d2899ba4fb18;hp=e5c22564a9394a8a8d46f77eb0ac067fe8e6cbdd;hpb=0e54d47ad85ede53e27d96d2d411bd8f5502fd69;p=packages%2Fgdb.git diff --git a/gdb.spec b/gdb.spec index e5c2256..22a3254 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,92 +1,156 @@ -Summary: Symbolic debugger for C and other languages +Summary: A GNU source-level debugger for C, C++ and Fortran 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(tr): C ve diðer diller için sembolik hata ayýklayýcý Name: gdb -Version: 4.18 -Release: 5 -Copyright: GPL +Version: 5.1.1 +Release: 1 +License: GPL Group: Development/Debuggers +Group(de): Entwicklung/Debugger Group(pl): Programowanie/Odpluskwiacze -Source: ftp://sourceware.cygnus.com/pub/gdb/%{name}-%{version}.tar.bz2 -Patch0: gdb-info.patch -Prereq: /usr/sbin/fix-info-dir -Buildroot: /tmp/%{name}-%{version}-root +Source0: ftp://ftp.gnu.org/pub/gnu/gdb/%{name}-%{version}.tar.gz +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 +BuildRequires: automake +BuildRequires: libtool +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -This is a full featured, command driven debugger. It allows you to -trace the exectuion of programs and examine their internal state -at any time. It works for C and C++ compiled with the GNU C compiler +Gdb is a full featured, command driven debugger. Gdb allows you to +trace the execution of programs and examine their internal state at +any time. Gdb works for C and C++ compiled with the GNU C compiler gcc. %description -l de -dem Sie die Ausführung von Programmen verfolgen und jederzeit den -inneren Zustand überprüfen können. Er funktioniert für C und mit -GNU C kompiliertes C++. +dem Sie die Ausführung von Programmen verfolgen und jederzeit den +inneren Zustand überprüfen können. Er funktioniert für C und mit GNU C +kompiliertes C++. + +%description -l es +Este es un debugger orientado a comandos repleto de características. +Te permite rastrear la ejecución de programas y examinar su estado +interno a cualquier momento. Funciona para C y C++ compilado con el +compilador GNU C. %description -l fr Débugger complet, piloté par commandes. Permet de tracer l'exécution -des programmes et d'examiner à tout moment leur état interne. Fonctionne -avec les binaires C et C++ compilés avec le compilateur C de GNU, gcc. +des programmes et d'examiner à tout moment leur état interne. +Fonctionne avec les binaires C et C++ compilés avec le compilateur C +de GNU, gcc. %description -l pl -Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalaj±cym ¶ledziæ -wykonywanie programu i badaæ jego stan wewnêtrzny. Gdb umo¿liwia -odpluskwianie programów napisanych w C/C++ i skompilowanych przy pomocy -kompilatora GNU (gcc). +Gdb jest rozbudowanym odpluskwiaczem (debuggerem), pozwalaj±cym +¶ledziæ wykonywanie programu i badaæ jego stan wewnêtrzny. Gdb +umo¿liwia odpluskwianie programów napisanych w C/C++ i skompilowanych +przy pomocy kompilatora GNU (gcc). + +%description -l pt_BR +Este é um debugger orientado a comandos repleto de características. +Ele permite à você rastrear a execução de programas e examinar o seu +estado interno a qualquer momento. Ele funciona para para C e C++ +compilado com o compilador GNU C. %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. +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. %prep %setup -q -%patch -p1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure \ - --prefix=%{_prefix} \ - --infodir=%{_infodir} \ - --mandir=%{_mandir} \ - %{_target_platform} - -make -make info +(cd gdb; autoconf) +#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.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 !! +# This will cause serious problems --misiek +%configure2_13 \ + --disable-shared \ + --enable-nls \ + --without-included-gettext \ + --enable-multi-ice \ + --enable-gdbmi \ + --enable-gdcli \ + --enable-netrom \ + --with-cpu=%{_target_cpu} \ + --with-x \ + --enable-tui \ +%ifnarch alpha + --with-mmalloc \ +%endif + --with-mmap + +# something is wrong after above - e.g. $exeext=="no" - fix it: +(cd gdb +%configure +) + +%{__make} +%{__make} info %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_prefix} +install -d $RPM_BUILD_ROOT%{_infodir} -make \ +%{__make} install install-info \ prefix=$RPM_BUILD_ROOT%{_prefix} \ + bindir=$RPM_BUILD_ROOT%{_bindir} \ + sbindir=$RPM_BUILD_ROOT%{_sbindir} \ infodir=$RPM_BUILD_ROOT%{_infodir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - install - -# install by hand -install gdb/doc/*.info* $RPM_BUILD_ROOT%{_infodir} - -strip $RPM_BUILD_ROOT%{_bindir}/* + includedir=$RPM_BUILD_ROOT%{_includedir} \ + libdir=$RPM_BUILD_ROOT%{_libdir} \ + mandir=$RPM_BUILD_ROOT%{_mandir} -rm -f $RPM_BUILD_ROOT%{_infodir}{bfd*,history*,readline*,standard*,texinfo*} +bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} -gzip -fn9 $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/man?/*} +%clean +rm -rf $RPM_BUILD_ROOT %post -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %postun -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 - -%clean -rm -rf $RPM_BUILD_ROOT +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* -%{_infodir}/gd*.info* +%lang(es) %{_mandir}/es/man1/* +%lang(fr) %{_mandir}/fr/man1/* +%lang(hu) %{_mandir}/hu/man1/* +%lang(ja) %{_mandir}/ja/man1/* +%lang(pl) %{_mandir}/pl/man1/* +%{_infodir}/gdb*.info* %{_infodir}/stabs*.info*