ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/google-perftools.spec
Revision: 1.5
Committed: Sun Nov 9 16:05:35 2008 UTC (16 years, 5 months ago) by elmer
Branch: MAIN
CVS Tags: DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, DBS-APPS_20090608, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, DBS-APPS_20090528, DBS_APPS_20090518, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, DBS-WEB_20090507, pe20090504a-31Xports-432, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, pe20090414a-31Xports-432, DBS-APPS_20090410, DAS_20090408, pe20090407a-31Xports-432, DBS-APPS_20090406, pe20090406b-31Xports-432, pe20090406a-31Xports-432, pe20090403a-31Xports-432, DAS_20090330, DBS-APPS_20090326, DAS_20090319_1, DAS_20090319, DBS-APPS_20090318, DBS-APPS_20090316, DAS_20090316, DAS_20090313, COUCHDB_20090313, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, pe20090304b-30Xports-432, pe20090304a-30Xports-432, DBS-APPS_20090303_1, DBS-APPS_20090303, DBS-APPS_20090302, pe20090226b-30Xports-432, pe20090226a-30Xports-432, pe20090224b-30Xports-432, pe20090224a-30Xports-432, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, pe20090218a-30Xports-432, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, pe20090216b-30Xports-432, pe20090216a-30Xports-432, zx20090216, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, pe20090127c-30Xports-432, pe20090127b-30Xports-432, PRODAGENT_0_12_10_pre2_20090127_V2, pe20090127a-30Xports-432, pe20090125a-30Xports-432, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, pe20081213c-30Xports-432, pe20081213c-30Xports, pe20081213b-30Xports, pe20081213a-30Xports, pe20081125d-30Xports-432, pe20081125d-30Xports, pe20081125c-30Xports-432, pe20081125c-30Xports, pe20081125b-30Xports, pe20081125b-30Xports-432, pe20081125a-30Xports, pe20081124d-30Xports, pe20081124c-30Xports, pe20081124b-30Xports, pe20081124a-30Xports, pe20081121b-30Xports, pe20081121a-30Xports, testofc
Changes since 1.4: +1 -1 lines
Log Message:
Update to version 0.99.2

File Contents

# User Rev Content
1 elmer 1.5 ### RPM external google-perftools 0.99.2
2 elmer 1.1 Source: http://google-perftools.googlecode.com/files/%n-%{realversion}.tar.gz
3    
4     %prep
5     %setup -n %n-%realversion
6    
7     %build
8 elmer 1.4 case %cmsplatf in
9     slc4_ia32*)
10     ./configure --prefix=%i
11     make %makeprocesses
12     ;;
13     slc4_amd64*)
14 elmer 1.1 # 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 elmer 1.4 cat << \EOF_TMPFILE > tmpgp.cc
18 elmer 1.1 namespace gptmp {
19     void foo(void*) {
20     }
21     }
22     EOF_TMPFILE
23 elmer 1.4 g++ -c -o tmp.o -fPIC tmpgp.cc
24     g++ -shared -o libgptmp.so tmp.o
25     ;;
26     esac
27 elmer 1.1
28     %install
29 elmer 1.4 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 elmer 1.1
41     # SCRAM ToolBox toolfile
42     mkdir -p %i/etc/scram.d
43 elmer 1.3 cat << \EOF_TOOLFILE >%i/etc/scram.d/tcmalloc_minimal
44 elmer 1.1 <doc type=BuildSystem::ToolDoc version=1.0>
45     <Tool name=tcmalloc_minimal version=%v>
46     <lib name=tcmalloc_minimal>
47     <client>
48 elmer 1.3 <Environment name=GOOGLE_PERFTOOLS_BASE default="%i"></Environment>
49     <Environment name=LIBDIR default="$GOOGLE_PERFTOOLS_BASE/lib"></Environment>
50 elmer 1.1 </client>
51     </Tool>
52     EOF_TOOLFILE
53    
54 elmer 1.3 cat << \EOF_TOOLFILE >%i/etc/scram.d/tcmalloc
55 elmer 1.1 <doc type=BuildSystem::ToolDoc version=1.0>
56     <Tool name=tcmalloc version=%v>
57     <lib name=tcmalloc>
58     <client>
59 elmer 1.3 <Environment name=GOOGLE_PERFTOOLS_BASE default="%i"></Environment>
60     <Environment name=LIBDIR default="$GOOGLE_PERFTOOLS_BASE/lib"></Environment>
61 elmer 1.1 </client>
62     </Tool>
63     EOF_TOOLFILE
64    
65    
66     %post
67 elmer 1.3 %{relocateConfig}etc/scram.d/tcmalloc_minimal
68     %{relocateConfig}etc/scram.d/tcmalloc