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

Comparing COMP/CMSDIST/valgrind.spec (file contents):
Revision 1.1 by eulisse, Wed Feb 22 09:33:13 2006 UTC vs.
Revision 1.14 by muzaffar, Mon Sep 3 15:28:46 2007 UTC

# Line 1 | Line 1
1 < ### RPM external valgrind 3.1.0
2 < ## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) true ;; * ) false ;; esac
3 < Source: http://www.valgrind.org/downloads/%{n}-%{v}.tar.bz2
1 > ### RPM external valgrind 3.2.3-CMS8
2 > ## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) true ;; * ) false ;; esac
3 > %define realversion %(echo %v | cut -d- -f1)
4 > Source: http://www.valgrind.org/downloads/%{n}-%{realversion}.tar.bz2
5 > Patch1: valgrind-vg323-p2-global
6 > Patch2: valgrind-vg323-p2-dump
7 >
8 > %prep
9 > %setup -n %n-%realversion
10 > %patch1 -p0
11 > %patch2 -p0
12 > # CMS patch for segment sizes:
13 > perl -p -i -e 's!VG_N_SEGMENTS 5000!VG_N_SEGMENTS 20000!; s!VG_N_SEGNAMES 1000!VG_N_SEGNAMES 4000!; s!VG_MAX_SEGNAMELEN 1000!VG_MAX_SEGNAMELEN 4000!' coregrind/m_aspacemgr/aspacemgr.c;
14 >
15 > pwd
16 >
17 > %build
18 > ./configure --prefix=%i
19 > make %makeprocesses
20 > %install
21 > make install
22 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' $(grep -r -e "^#!.*perl.*" %i | cut -d: -f 1)
23 > # I don't see how to make perl options work nicely with env, so drop the -w
24 > # in these two scripts
25 > perl -p -i -e 's|perl -w|perl|' %i/bin/callgrind_annotate
26 > perl -p -i -e 's|perl -w|perl|' %i/bin/callgrind_control
27 >
28 > # SCRAM ToolBox toolfile
29 > mkdir -p %i/etc/scram.d
30 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
31 > <Tool name=valgrind version=%v>
32 > <Client>
33 > <Environment name=VALGRIND_BASE default="%i"></Environment>
34 > <Environment name=INCLUDE default="$VALGRIND_BASE/include"></Environment>
35 > </Client>
36 > <Runtime name=PATH value="$VALGRIND_BASE/bin" type=path>
37 > <Runtime name=VALGRIND_LIB value="$VALGRIND_BASE/lib/valgrind">
38 > </Tool>
39 > EOF_TOOLFILE
40 >
41 > %post
42 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines