]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - gdb/gdb.nm
kernel: Update to 3.15.6.
[people/ms/ipfire-3.x.git] / gdb / gdb.nm
CommitLineData
d0739646 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
d0739646
SS
4###############################################################################
5
802ea3af 6name = gdb
5a03b7c3 7version = 7.3.50.20110722
56979ad2 8release = 3
d0739646 9
802ea3af
MT
10groups = Development/Debuggers
11url = http://gnu.org/software/gdb/
12license = GPLv3+
13summary = A GNU source-level debugger for C, C++, Java and other languages.
d0739646 14
802ea3af 15description
d0739646
SS
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.
802ea3af
MT
19end
20
5a03b7c3
MT
21#source_dl = ftp://ftp.gnu.org/gnu/gdb/
22source_dl = ftp://sourceware.org/pub/gdb/snapshots/current/
23sources = %{thisapp}.tar.bz2
802ea3af
MT
24
25build
26 requires
5a03b7c3
MT
27 bison
28 expat-devel
802ea3af 29 ncurses-devel
5a03b7c3 30 texinfo
802ea3af
MT
31 zlib-devel
32 end
33
34 configure_options += \
5a03b7c3 35 --with-system-gdbinit=/etc/gdbinit \
802ea3af 36 --mandir=/usr/share/man \
5a03b7c3
MT
37 --enable-gdb-build-warnings=,-Wno-unused \
38 --with-separate-debug-dir=/usr/lib/debug \
39 --disable-sim \
40 --disable-rpath \
41 --without-system-readline \
42 --disable-werror \
43 --with-expat \
44 --without-libexpat-prefix \
45 --enable-tui \
46 --with-python \
47 --without-rpm \
48 --without-libunwind \
49 --enable-64-bit-bfd \
50 %{DISTRO_MACHINE}
51
52 prepare_cmds
53 echo "%{DISTRO_NAME} (%{thisver})" > gdb/version.in
54 end
55
56 # Testsuite does not succeed. Needs to be fixed eventually.
57 #test
58 # make check
59 #end
60
61 install_cmds
62 # Install gcore script.
63 cp -v gdb/gdb_gcore.sh %{BUILDROOT}/usr/bin/gcore
64 chmod -v 755 %{BUILDROOT}/usr/bin/gcore
65
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
69
70 mkdir -pv %{BUILDROOT}/etc/gdbinit.d
71 cp -vf %{DIR_SOURCE}/gdbinit %{BUILDROOT}/etc/gdbinit
6fb12725 72
56979ad2 73 # Remove locale data and headers which is provided by binutils.
6fb12725 74 rm -rf %{BUILDROOT}%{datadir}/locale/
56979ad2 75 rm -rf %{BUILDROOT}%{includedir}/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h
5a03b7c3 76 end
802ea3af
MT
77end
78
79packages
80 package %{name}
5a03b7c3 81
802ea3af
MT
82 package %{name}-devel
83 template DEVEL
84 end
1f9bc2f0
MT
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
802ea3af 89end