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

Comparing COMP/CMSDIST/google-perftools.spec (file contents):
Revision 1.1 by elmer, Mon Jun 23 00:48:16 2008 UTC vs.
Revision 1.4 by elmer, Sun Nov 9 16:01:49 2008 UTC

# Line 5 | Line 5 | Source: http://google-perftools.googleco
5   %setup -n %n-%realversion
6  
7   %build
8 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_ia32_gcc345"))
9 < ./configure --prefix=%i
10 < make %makeprocesses
11 < %endif
12 < %if ("%cmsplatf" == "slc4_amd64_gcc345")
8 > case %cmsplatf in
9 >  slc4_ia32*)
10 >    ./configure --prefix=%i
11 >    make %makeprocesses
12 >  ;;
13 >  slc4_amd64*)
14   # Make a fake library for now to keep everything happy. Actually building
15   # for 64bit requires building libunwind, which we are not yet doing at
16   # the moment.
17 < cat << \EOF_TMPFILE > tmpgp.cc
17 >    cat << \EOF_TMPFILE > tmpgp.cc
18   namespace gptmp {
19    void foo(void*) {
20    }
21   }
22   EOF_TMPFILE
23 < g++ -o tmp.o -fPIC tmpgp.cc
24 < g++ -shared -o libgptmp.so tmp.o
25 < %endif
23 >    g++ -c -o tmp.o -fPIC tmpgp.cc
24 >    g++ -shared -o libgptmp.so tmp.o
25 >  ;;
26 > esac
27  
28   %install
29 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_ia32_gcc345"))
30 < make install
31 < %endif
32 < %if ("%cmsplatf" == "slc4_amd64_gcc345")
33 < # Just copy over the dummy library
34 < mkdir -p %i/lib
35 < cp libgptmp.so %i/lib/libtcmalloc.so
36 < cp libgptmp.so %i/lib/libtcmalloc_minimal.so
37 < %endif
29 > case %cmsplatf in
30 >  slc4_ia32*)
31 >    make install
32 >  ;;
33 >  slc4_amd64*)
34 >    # Just copy over the dummy library
35 >    mkdir -p %i/lib
36 >    cp libgptmp.so %i/lib/libtcmalloc.so
37 >    cp libgptmp.so %i/lib/libtcmalloc_minimal.so
38 >  ;;
39 > esac
40  
41   # SCRAM ToolBox toolfile
42   mkdir -p %i/etc/scram.d
43 < cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
43 > cat << \EOF_TOOLFILE >%i/etc/scram.d/tcmalloc_minimal
44   <doc type=BuildSystem::ToolDoc version=1.0>
45   <Tool name=tcmalloc_minimal version=%v>
46   <lib name=tcmalloc_minimal>
47   <client>
48 < <Environment name=GOOGLE-PERFTOOLS_BASE default="%i"></Environment>
49 < <Environment name=LIBDIR default="$GOOGLE-PERFTOOLS_BASE/lib"></Environment>
48 > <Environment name=GOOGLE_PERFTOOLS_BASE default="%i"></Environment>
49 > <Environment name=LIBDIR default="$GOOGLE_PERFTOOLS_BASE/lib"></Environment>
50   </client>
51   </Tool>
52   EOF_TOOLFILE
53  
54 < cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
54 > cat << \EOF_TOOLFILE >%i/etc/scram.d/tcmalloc
55   <doc type=BuildSystem::ToolDoc version=1.0>
56   <Tool name=tcmalloc version=%v>
57   <lib name=tcmalloc>
58   <client>
59 < <Environment name=GOOGLE-PERFTOOLS_BASE default="%i"></Environment>
60 < <Environment name=LIBDIR default="$GOOGLE-PERFTOOLS_BASE/lib"></Environment>
59 > <Environment name=GOOGLE_PERFTOOLS_BASE default="%i"></Environment>
60 > <Environment name=LIBDIR default="$GOOGLE_PERFTOOLS_BASE/lib"></Environment>
61   </client>
62   </Tool>
63   EOF_TOOLFILE
64  
65  
66   %post
67 < %{relocateConfig}etc/scram.d/%n
67 > %{relocateConfig}etc/scram.d/tcmalloc_minimal
68 > %{relocateConfig}etc/scram.d/tcmalloc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines