ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/alpgen.spec
Revision: 1.31
Committed: Tue Feb 23 19:35:15 2010 UTC (15 years, 2 months ago) by elmer
Branch: MAIN
CVS Tags: ebFor363slhc3p1, CMSSW_3_6_3_SLHC3, ebFor363slhc3, ebFor363slhc2, CMSSW_3_6_3_SLHC1_patch3, ebFor363slhc1pat3, CMSSW_3_6_3_SLHC1_patch2, ebFor363slhc1pat2, CMSSW_3_10_0_pre9G493, fwFor3100xdaq11b4online, CMSSW_3_9_5_xdaq11b4_ONLINE, CMSSW_3_8_7_patch2, sjgFor387p2b, sjgFor387p2, CMSSW_3_11_0_pre3, smFor3110pre3a, smFor3110pre3, pe20101230-311XAB, CMSSW_3_11_0_pre2, pe20101229-for311X, fwFor311pre2, CMSSW_3_10_0, CMSSW_3_9_7, smFor3100c, apFor397v0, CMSSW_3_9_6, pe20101221a-for3100p9io, smFor3100b, apFor396v0, smFor3100a, smFor3100, pe20101217b-for3100p9io, pe20101217a-for3100p9io, CMSSW_3_8_7_patch1, CMSSW_3_11_0_pre1, fwFor311pre1, smFor3100pre9G493, CMSSW_3_10_0_pre9r52706b, pe20101215-for3100p9r52706b, CMSSW_3_10_0_pre9, smFor3100pre9a, smFor3100pre9, CMSSW_3_9_5_patch2, apFor395p2v0, CMSSW_3_10_0_pre8, smFor3100pre8, smFor310X-101207, smFor310X-101206b, smFor310X-101206ab, smFor310X-101206a, smFor310X-101206, pe20101206-for3100pre7r52706b, CMSSW_3_10_0_pre7g494c1, CMSSW_3_9_5_patch1, apFor395p1v0, smFor3100pre7G494C1a, pe20101203-root52706b, DQMGUI_5_3_2, dsr20101201fwlite387, CMSSW_3_10_0_pre7io, azFor3100pre7io-a, smFor3100pre7io-a, azFor3100pre7io-Updated, smFor3100pre7G494C1, azFor3100pre7io, smFor3100pre7io, CMSSW_3_10_0_pre7, smFor3100pre7, smFor310X-101130, CMSSW_3_8_7, smFor310X-101129, dsr20101129fwlite394, CMSSW_3_9_5_ONLINE, CMSSW_3_9_5, CMSSW_3_10_0_pre6, smFor3100pre6, apFor395v0, sjg101126b, sjg101126a, CMSSW_3_9_4, smFor310X-101123, apFor394v0, smFor39X-101123, for310X-101122a, CMSSW_3_8_6_patch2, sjgFor386p2, CMSSW_3_9_1_onlpatch4_ONLINE, CMSSW_3_9_1_onlpatch3_ONLINE, for310X-101122, sjg101122b, sjg101122a, CMSSW_3_10_0_pre5, CMSSW_3_9_3_ONLINE, azFor3100p5, CMSSW_3_9_3, apFor393v0, CMSSW_3_10_0_pre4r52706, pe20101112b-for3100p4r52706, pe20101112-for3100p4r52706, smFor310X-101111, CMSSW_3_9_2_patch5, CMSSW_3_10_0_pre4, CMSSW_3_9_2_patch4, azFor3100pre4-Updated, azFor3100pre4, smFor392p4, CMSSW_3_8_6_patch1, sjgFor386p1, CMSSW_3_9_2_patch3, apFor392p3v0, CMSSW_3_9_2_patch2, apFor392p2v0, smFor310-101106, CMSSW_3_9_2_patch1, apFor392p1v0, CMSSW_3_9_1_onlpatch2_ONLINE, CMSSW_3_9_1_onlpatch1_ONLINE, smFor310-101104, CMSSW_3_9_2, apFor392v0, sjgFor392, CMSSW_3_10_0_pre3, CMSSW_3_8_6, azFor3100p3a, smFor386a, azFor3100p3, CMSSW_3_9_1_patch1, smFor391patch1, CMSSW_3_9_1_ONLINE, smFor391onl, CMSSW_3_9_1, smFor391, apFor391v1, apFor391v0, ebFor363slhc1pat1v0, smFor386, CMSSW_3_10_0_pre2, smFor3100pre2, CMSSW_3_8_5_patch3, apFor385p3v0, CMSSW_3_8_5_onlpatch4_ONLINE, CMSSW_3_8_5_onlpatch3_ONLINE, CMSSW_3_10_0_pre1, smFor3100pre1, CMSSW_3_8_5_patch2, sjgFor385p2, CMSSW_3_8_5_patch1, sjgFor385p1, eskFor3XYpreZ, CMSSW_3_9_0, apFor390v0, CMSSW_3_8_5_onlpatch1_ONLINE, CMSSW_3_8_5_ONLINE, fw385online, CMSSW_3_8_1_onlpatch7_ONLINE, CMSSW_3_9_0_pre7, CMSSW_3_8_4_patch4, sjfFor384p4, apFor390pre7v0, sm39Xtoolconf-101007, CMSSW_3_8_5, sjgFor385, sm39Xtoolconf-101005, DQMGUI_5_3_1, CMSSW_3_9_0_pre6, CMSSW_3_8_1_onlpatch6_ONLINE, apFor390pre6v0, smFor390pre6toolconf-101001, CMSSW_3_8_4_patch3, sjgFor384patch3v3, sjgFor384patch3v2, sjgFor384patch3, smFor390pre6toolconf-100929, smFor390pre6toolconf, smFor385toolconf, sm100928a, CMSSW_3_9_0_pre5, apFor390pre5v0, CMSSW_3_8_4_patch2, bhFor384p2, CMSSW_3_8_4_patch1, bhFor384p1, CMSSW_3_9_0_pre4, CMSSW_3_8_4, bhFor384, CMSSW_3_8_1_onlpatch5_ONLINE, apFor390pre4v0, CMSSW_3_8_3, pe20100912-for39X, bhFor383, apFor383v1, apFor383v0, CMSSW_3_8_1_onlpatch4_ONLINE, CMSSW_3_8_2_patch1, bhFor382p1, CMSSW_3_6_3_SLHC1, CMSSW_3_8_1_onlpatch3_ONLINE, fc20100901b, fc20100901a, CMSSW_3_9_0_pre3, sm100901a, CMSSW_3_8_1_onlpatch2_ONLINE, CMSSW_3_8_1_onlpatch1_ONLINE, CMSSW_3_8_1_patch4, bhFor381patch4, sm390p3toolconf, CMSSW_3_8_2, bhFor382, sm39XPoolLess, sm100823a, CMSSW_3_8_1_patch3, smFor381patch3, pe20100819a-for390p2r52704, CMSSW_3_6_1_patch7, pe20100817a-for390p2r52704, smFor361patch7, dsr20100816fwlite381, dsr20100816fwlite371, CMSSW_3_9_0_pre2, CMSSW_3_8_1_ONLINE, for390pre2, dsr20100812fwlite371, CMSSW_3_6_3_hltpatch4, CMSSW_3_8_1_patch2, bhFor381p2, for390p2tools1, for390pre2tools, CMSSW_3_8_1_patch1, bhFor381patch1, fw381online, CMSSW_3_7_1, CMSSW_3_8_1, bhFor381, fw371, dsr20100805fwlite363, CMSSW_3_6_3_onlpatch4_ONLINE, CMSSW_3_8_0_patch2, bhFor380patch2, smFor363patch2, fw380online, fw380online_3, fw380online_2, CMSSW_3_9_0_pre1, fw380online_0, apFor390pre1v0, pe20100727a-for39X, CMSSW_3_6_3_onlpatch3_ONLINE, CMSSW_3_8_0_patch1, bhFor380patch1, ge20100722-rpm-osx-64-bit, CMSSW_3_8_0, bhFor380, CMSSW_3_6_1_patch6, apFor361p6v0, CMSSW_3_8_0_pre8, bhFor380pre8, CMSSW_3_6_3_patch1, apFor363p1v0, CMSSW_3_6_3_onlpatch2_ONLINE, CMSSW_3_8_0_pre7, bhFor380pre7, CMSSW_3_7_0_patch4, CMSSW_3_8_0_pre6, smFor370patch4, CMSSW_3_7_0_patch3, bhFor380pre6, CMSSW_3_8_0_pre5ssl, pe20100624b-for38Xssl, pe20100624a-for38Xssl, CMSSW_3_8_0_pre5, CMSSW_3_6_1_patch5, smFor370patch3, pe20100623a-for38Xssl, smFor361patch5, apFor380pre5v0, ge20100621-bootstrap-rpm-4-8-macosx, CMSSW_3_8_0_pre4catfix, bhFor380pre4catfix, bhFor380pre4_cat_fix, CMSSW_3_8_0_pre4, bhFor380pre4, CMSSW_3_8_0_pre3, CMSSW_3_6_3_onlpatch1_ONLINE, bhFor380pre3, CMSSW_3_6_3_ONLINE, CMSSW_3_6_3, apFor363v0, pe20100612a-gcc45-from380p2, ge20100611-apt-rpm-4-8-gcc-4-5-0, MotT0_1_0_15, CMSSW_3_8_0_pre2, MotT0_1_0_14, CMSSW_3_7_0_patch2, smFor370p2, bhFor380_pre2, MotT0_1_0_13, pe20100606a-for38X, CMSSW_3_6_2_ONLINE, fw361online_test5, CMSSW_3_6_2, MotT0_1_0_12, MotT0_1_0_11, MotT0_1_0_10, CMSSW_3_7_0_patch1, MotT0_1_0_9, MotT0_1_0_8, smFor370patch1, MotT0_1_0_6, MotT0_1_0_5, apFor362v1, apFor362v0, CMSSW_3_8_0_pre1, MotT0_1_0_4, MotT0_1_0_3, apFor380pre1v0, fw361online_test4, CMSSW_3_6_1_patch4, apFor361p4v0, fw361online_test3, CMSSW_3_7_0, smFor370, dsr20100526fwlite361, fw361online_test2, CMSSW_3_6_1_patch3, fw361online_test1, apFor361p3v0, CMSSW_3_7_0_pre5g493ref04, CMSSW_3_6_1_patch2, apFor361p2v0, ge20100521b-new-rpm, ge20100521-new-rpm, pe20100521-for37X-newG4, DQMGUI_5_2_1c, pe20100519a-for37X, ge20100519-new-apt, CMSSW_3_7_0_pre5, smFor370pre5, CMSSW_3_6_1_patch1, apFor361p1v2, apFor361p1v1, apFor361p1v0, CMSSW_3_7_0_pre4, sm370pre4, sm100511a, pe20100511b-for37X, pe20100511a-for37X, sm100511, CMSSW_3_6_1, pe20100510b-for37X, pe20100510a-for37X, apFor361v1, apFor361v0, fw360online_test5, fw360online_test4, fw360online_test3, sm100507pftrack, fw360online_test2, fw360online_test1, sm100506, sm100505a, sm100505, CMSSW_3_7_0_pre3, for370pre3, CMSSW_3_6_0_patch2, apFor360p2v0, CMSSW_3_6_0_patch1, apFor360p1v2, apFor360p1v1, apFor360p1v0, CMSSW_3_7_0_pre2, for370pre2, ge20100427-rpm-on-linux, ge20100422-rpm-4-8-0, CMSSW_3_7_0_pre1, smFor370pre1, pe20100420a-for37X, pe20100419b-for37X, pe20100419a-for37X, pe20100419a-for36X-37X, pe20100419a-gcc45-from360, CMSSW_3_6_0, pe20100416a-for36X, pe20100414b-gcc45-from360p6, pe20100414-gcc45-from360p6, pe20100410-gcc45-from360p6, CMSSW_3_6_0_pre6, pe20100409b-for36X, pe20100409a-for36X, CMSSW_3_6_0_pre5io, pe20100408a-for36Xio, CMSSW_3_6_0_pre5, pe20100401a-for36X, pe20100330a-for36X, pe20100329a-for36X, CMSSW_3_6_0_pre4, pe20100324a-for36X, pe20100321a-for36X, CMSSW_3_6_0_pre3, pe20100313a-for36X, pe20100312a-for36X, pe20100311a-for36X, pe20100307a-for36X, pe20100305e-for36X, pe20100305d-for36X, pe20100305c-for36X, pe20100305b-for36X, pe20100305-for36X, CMSSW_3_6_0_pre2, sm100302b-for36X, sm100302a-for36X, wmtFor360pre2, fc20100228, pe20100228a-for36X, CMSSW_3_6_0_pre1, pe20100223c-for36X, pe20100223b-for36X
Changes since 1.30: +1 -1 lines
Log Message:
  Change "uname -p" to "uname -m" to avoid problems on 32bit athlons (where
"uname -p" reports "athlon" instead of "i686")

File Contents

# User Rev Content
1 elmer 1.25 ### RPM external alpgen 213
2 elmer 1.31 ## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
3 andreasp 1.30
4 andreasp 1.16 %define realversion %(echo %v | cut -d- -f1 )
5 dlange 1.14 Source: http://mlm.home.cern.ch/mlm/alpgen/V2.1/v%{realversion}.tgz
6 elmer 1.1 Source1: config.sub-amd64
7 andreasp 1.30 Patch0: alpgen-212
8 elmer 1.23 Patch1: alpgen-212-gfortran
9 andreasp 1.17
10 elmer 1.1 %prep
11     %setup -c -n alpgen-%v
12 dlange 1.10 %patch0 -p1
13 elmer 1.26 case %gccver in
14     4.*)
15 elmer 1.23 %patch1 -p0
16 elmer 1.26 ;;
17     esac
18 elmer 1.1
19     %build
20 dlange 1.8 cd 2Qphwork; make gen; cd ..
21 dlange 1.6 cd 2Qwork; make gen; cd ..
22     cd 4Qwork; make gen; cd ..
23     cd hjetwork; make gen; cd ..
24     cd Njetwork; make gen; cd ..
25     cd QQhwork; make gen; cd ..
26     cd topwork; make gen; cd ..
27     cd vbjetwork; make gen; cd ..
28     cd wcjetwork; make gen; cd ..
29 dlange 1.8 cd wphjetwork; make gen; cd ..
30     cd wphqqwork; make gen; cd ..
31 dlange 1.6 cd wqqwork; make gen; cd ..
32 dlange 1.11 cd zqqwork; make gen; cd ..
33 dlange 1.8
34     cd phjetwork; make gen;
35     export USRF=120_180bin
36     make gen -f cmsMakefile
37     export USRF=180_240bin
38     make gen -f cmsMakefile
39     export USRF=20_60bin
40     make gen -f cmsMakefile
41     export USRF=240_300bin
42     make gen -f cmsMakefile
43 andreasp 1.30 export USRF=300_7000bin
44 dlange 1.8 make gen -f cmsMakefile
45     export USRF=60_120bin
46     make gen -f cmsMakefile
47     cd ..
48    
49     cd wjetwork; make gen;
50     export USRF=0ptw100
51     make gen -f cmsMakefile
52     export USRF=100ptw300
53     make gen -f cmsMakefile
54     export USRF=300ptw800
55     make gen -f cmsMakefile
56     export USRF=800ptw1600
57     make gen -f cmsMakefile
58 andreasp 1.30 export USRF=1600ptw3200
59     make gen -f cmsMakefile
60     export USRF=3200ptw5000
61 dlange 1.8 make gen -f cmsMakefile
62     export USRF=VBFHiggsTo2Tau
63     make gen -f cmsMakefile
64 andreasp 1.30 export USRF=2j_vbf_inv
65     make gen -f cmsMakefile
66     export USRF=3j_vbf_inv
67     make gen -f cmsMakefile
68 dlange 1.8 cd ..
69    
70 dlange 1.11 cd zjetwork; make gen;
71 dlange 1.8 export USRF=0ptz100
72     make gen -f cmsMakefile
73     export USRF=100ptz300
74     make gen -f cmsMakefile
75     export USRF=300ptz800
76     make gen -f cmsMakefile
77     export USRF=800ptz1600
78     make gen -f cmsMakefile
79 andreasp 1.30 export USRF=1600ptz3200
80     make gen -f cmsMakefile
81     export USRF=3200ptz5000
82 dlange 1.8 make gen -f cmsMakefile
83     export USRF=VBFHiggsTo2Tau
84     make gen -f cmsMakefile
85 andreasp 1.30 export USRF=2j_vbf_inv
86     make gen -f cmsMakefile
87     export USRF=3j_vbf_inv
88     make gen -f cmsMakefile
89 dlange 1.8 cd ..
90 elmer 1.1
91 andreasp 1.30 cd Njetwork; make gen;
92     export USRF=100_160
93     make gen -f cmsMakefile
94     export USRF=100_180
95     make gen -f cmsMakefile
96     export USRF=140_180
97     make gen -f cmsMakefile
98     export USRF=140_5600
99     make gen -f cmsMakefile
100     export USRF=160_200
101     make gen -f cmsMakefile
102     export USRF=180_250
103     make gen -f cmsMakefile
104     export USRF=180_5600
105     make gen -f cmsMakefile
106     export USRF=200_250
107     make gen -f cmsMakefile
108     export USRF=20_100
109     make gen -f cmsMakefile
110     export USRF=20_80
111     make gen -f cmsMakefile
112     export USRF=250_400
113     make gen -f cmsMakefile
114     export USRF=400_5600
115     make gen -f cmsMakefile
116     export USRF=80_140
117     make gen -f cmsMakefile
118     cd ..
119 andreasp 1.18
120 elmer 1.1 %install
121     mkdir -p %{i}/bin
122     mkdir -p %{i}/alplib
123 dlange 1.12 cp zjetwork/zjet_*gen %{i}/bin/
124     cp wjetwork/wjet_*gen %{i}/bin/
125     cp phjetwork/phjet_*gen %{i}/bin/
126 andreasp 1.30 cp Njetwork/Njet_*gen %{i}/bin/
127 dlange 1.12
128     cp 2Qphwork/2Qphgen %{i}/bin/
129 elmer 1.1 cp 2Qwork/2Qgen %{i}/bin/
130     cp 4Qwork/4Qgen %{i}/bin/
131 dlange 1.12
132 elmer 1.1 cp hjetwork/hjetgen %{i}/bin/
133 andreasp 1.30 cp Njetwork/Njetgen %{i}/bin/
134 elmer 1.1 cp phjetwork/phjetgen %{i}/bin/
135 dlange 1.12
136 elmer 1.1 cp QQhwork/QQhgen %{i}/bin/
137     cp topwork/topgen %{i}/bin/
138     cp vbjetwork/vbjetgen %{i}/bin/
139 dlange 1.12
140 elmer 1.1 cp wcjetwork/wcjetgen %{i}/bin/
141     cp wjetwork/wjetgen %{i}/bin/
142 dlange 1.12 cp wphjetwork/wphjetgen %{i}/bin/
143 dlange 1.13 cp wphqqwork/wphqqgen %{i}/bin/
144 elmer 1.1 cp wqqwork/wqqgen %{i}/bin/
145 dlange 1.12
146 elmer 1.1 cp zjetwork/zjetgen %{i}/bin/
147     cp zqqwork/zqqgen %{i}/bin/
148 dlange 1.12
149 elmer 1.1 cp -R alplib/* %{i}/alplib/
150 elmer 1.22
151     # SCRAM ToolBox toolfile
152     mkdir -p %i/etc/scram.d
153     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
154     <doc type=BuildSystem::ToolDoc version=1.0>
155     <Tool name=%n version=%v>
156     <info url=http://mlm.home.cern.ch/mlm/alpgen/></info>
157     <client>
158     <Environment name=ALPGEN_BASE default="%i"></Environment>
159     </client>
160     <Runtime name=PATH value="$ALPGEN_BASE/bin" type=path>
161     </Tool>
162     EOF_TOOLFILE
163    
164     %post
165     %{relocateConfig}etc/scram.d/%n
166