1 |
< |
### RPM external gdb 6.7.1-CMS19 |
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} |
8 |
> |
./configure --prefix=%{i} --with-expat=no |
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 |