]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - gdb/gdb.nm
kernel: Update to 3.15.6.
[people/ms/ipfire-3.x.git] / gdb / gdb.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = gdb
7 version = 7.3.50.20110722
8 release = 3
9
10 groups = Development/Debuggers
11 url = http://gnu.org/software/gdb/
12 license = GPLv3+
13 summary = A GNU source-level debugger for C, C++, Java and other languages.
14
15 description
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.
19 end
20
21 #source_dl = ftp://ftp.gnu.org/gnu/gdb/
22 source_dl = ftp://sourceware.org/pub/gdb/snapshots/current/
23 sources = %{thisapp}.tar.bz2
24
25 build
26 requires
27 bison
28 expat-devel
29 ncurses-devel
30 texinfo
31 zlib-devel
32 end
33
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 \
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
72
73 # Remove locale data and headers which is provided by binutils.
74 rm -rf %{BUILDROOT}%{datadir}/locale/
75 rm -rf %{BUILDROOT}%{includedir}/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h
76 end
77 end
78
79 packages
80 package %{name}
81
82 package %{name}-devel
83 template DEVEL
84 end
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
89 end