1 |
< |
### RPM external gdb 7.0 |
2 |
< |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac |
1 |
> |
### RPM external gdb 7.1 |
2 |
> |
## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac |
3 |
|
|
4 |
|
Source: http://ftp.gnu.org/gnu/%{n}/%{n}-%{realversion}.tar.bz2 |
5 |
|
Requires: python |
6 |
+ |
#Requires: expat |
7 |
|
|
8 |
|
%prep |
9 |
|
%setup -n %n-%{realversion} |
10 |
|
|
11 |
|
%build |
12 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
13 |
< |
#./configure --prefix=%{i} --with-expat=no --with-python=yes --with-python-lib=$PYTHON_ROOT/lib --with-python-include=$PYTHON_ROOT/include/python${PYTHONV} |
13 |
> |
#./configure --prefix=%{i} --with-expat=$EXPAT_ROOT --with-python=$PYTHON_ROOT |
14 |
|
./configure --prefix=%{i} --with-expat=no --with-python=$PYTHON_ROOT |
15 |
|
make %makeprocesses |
16 |
|
|
17 |
|
%install |
18 |
|
make install |
18 |
– |
mv %i/bin/gdb %i/bin/gdb-%{realversion} |
19 |
|
|
20 |
< |
# To save space, clean up some things that we don't really need |
20 |
> |
cd %i/bin/ |
21 |
> |
ln -s gdb gdb-%{realversion} |
22 |
> |
|
23 |
> |
# To save space, clean up some things that we don't really need |
24 |
|
rm %i/lib/* |
25 |
|
rm %i/bin/gdbserver |
26 |
|
rm %i/bin/gdbtui |