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.12 by muzaffar, Tue Apr 20 08:12:50 2010 UTC

# Line 1 | Line 1
1 < ### RPM external gdb 6.7-CMS3
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 < ./configure --prefix=%{i}
12 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
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
19 +
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
27 +
28 + # SCRAM ToolBox toolfile
29 + mkdir -p %i/etc/scram.d
30 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
31 +  <tool name="%n" version="%v">
32 +    <client>
33 +      <environment name="GDB_BASE" default="%i"/>
34 +    </client>
35 +    <runtime name="PATH" value="$GDB_BASE/bin" type="path"/>
36 +  </tool>
37 + EOF_TOOLFILE
38 +
39 + %post
40 + %{relocateConfig}etc/scram.d/%n.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines