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.2 by elmer, Tue Jan 8 12:54:22 2008 UTC vs.
Revision 1.11 by elmer, Mon Apr 19 16:15:29 2010 UTC

# Line 1 | Line 1
1 < ### RPM external gdb 6.7.1-CMS19
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
31 + <Tool name=gdb version=%v>
32 + <Client>
33 + <Environment name=GDB_BASE default="%i"></Environment>
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines