1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = 7.3.50.20110722
10 groups = Development/Debuggers
11 url = http://gnu.org/software/gdb/
13 summary = A GNU source-level debugger for C, C++, Java and other languages.
16 GDB, the GNU debugger, allows you to debug programs written in C, C++, \
17 Java, and other languages, by executing them in a controlled fashion \
18 and printing their data.
21 #source_dl = ftp://ftp.gnu.org/gnu/gdb/
22 source_dl = ftp://sourceware.org/pub/gdb/snapshots/current/
23 sources = %{thisapp}.tar.bz2
34 configure_options += \
35 --with-system-gdbinit=/etc/gdbinit \
36 --mandir=/usr/share/man \
37 --enable-gdb-build-warnings=,-Wno-unused \
38 --with-separate-debug-dir=/usr/lib/debug \
41 --without-system-readline \
44 --without-libexpat-prefix \
53 echo "%{DISTRO_NAME} (%{thisver})" > gdb/version.in
56 # Testsuite does not succeed. Needs to be fixed eventually.
62 # Install gcore script.
63 cp -v gdb/gdb_gcore.sh %{BUILDROOT}/usr/bin/gcore
64 chmod -v 755 %{BUILDROOT}/usr/bin/gcore
66 # Remove gdb/gdbtui binaries duplicity.
67 ln -svf gdb %{BUILDROOT}/usr/bin/gdbtui
68 ln -svf gdb.1 %{BUILDROOT}/usr/share/man/man1/gdbtui.1
70 mkdir -pv %{BUILDROOT}/etc/gdbinit.d
71 cp -vf %{DIR_SOURCE}/gdbinit %{BUILDROOT}/etc/gdbinit
82 package %{name}-debuginfo