ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/gdb.spec
Revision: 1.3
Committed: Sat Sep 6 00:26:05 2008 UTC (16 years, 7 months ago) by elmer
Branch: MAIN
CVS Tags: PRODAGENT_0_12_2, T0Mon_080926_1, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2
Changes since 1.2: +23 -1 lines
Log Message:
Update to version 6.8, prune things we don't need (gdbtui, gdbserver,
archive libs) and rename the gdb binary to 'gdb-6.8' so that people
do not pick it up by default for the moment.

File Contents

# Content
1 ### RPM external gdb 6.8
2 Source: http://ftp.gnu.org/gnu/%{n}/%{n}-%{realversion}.tar.bz2
3
4 %prep
5 %setup -n %n-%{realversion}
6
7 %build
8 ./configure --prefix=%{i}
9 make %makeprocesses
10
11 %install
12 make install
13 mv %i/bin/gdb %i/bin/gdb-%{realversion}
14
15 # To save space, clean up some things that we don't really need
16 rm %i/lib/*
17 rm %i/bin/gdbserver
18 rm %i/bin/gdbtui
19
20 # SCRAM ToolBox toolfile
21 mkdir -p %i/etc/scram.d
22 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
23 <Tool name=gdb version=%v>
24 <Client>
25 <Environment name=GDB_BASE default="%i"></Environment>
26 </Client>
27 <Runtime name=PATH value="$GDB_BASE/bin" type=path>
28 </Tool>
29 EOF_TOOLFILE
30
31 %post
32 %{relocateConfig}etc/scram.d/%n