ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/gdb.spec
(Generate patch)

Comparing COMP/CMSDIST/gdb.spec (file contents):
Revision 1.1 by elmer, Sat Oct 13 19:13:58 2007 UTC vs.
Revision 1.7 by elmer, Sun Nov 8 12:41:09 2009 UTC

# Line 1 | Line 1
1 < ### RPM external gdb 6.7-CMS3
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
3 >
4   Source: http://ftp.gnu.org/gnu/%{n}/%{n}-%{realversion}.tar.bz2
5 + Requires: python
6  
7   %prep
8   %setup -n %n-%{realversion}
9  
10   %build
11 < ./configure --prefix=%{i}
11 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
12 > #./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=no --with-python=$PYTHON_ROOT
14   make %makeprocesses
15  
16 + %install
17 + 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
21 + rm %i/lib/*
22 + rm %i/bin/gdbserver
23 + rm %i/bin/gdbtui
24 +
25 + # SCRAM ToolBox toolfile
26 + mkdir -p %i/etc/scram.d
27 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
28 + <Tool name=gdb version=%v>
29 + <Client>
30 + <Environment name=GDB_BASE default="%i"></Environment>
31 + </Client>
32 + <Runtime name=PATH value="$GDB_BASE/bin" type=path>
33 + </Tool>
34 + EOF_TOOLFILE
35 +
36 + %post
37 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines