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.3 by eulisse, Tue Mar 21 17:41:21 2006 UTC vs.
Revision 1.13 by elmer, Wed Jun 27 12:50:44 2007 UTC

# Line 1 | Line 1
1 < ### RPM external valgrind 3.1.1
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-CMS3
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines