ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/alpgen.spec
Revision: 1.26
Committed: Sun Nov 9 15:49:00 2008 UTC (16 years, 5 months ago) by elmer
Branch: MAIN
CVS Tags: CMSSW_3_3_6_patch6, sm100215, CMSSW_3_3_6_patch5, apFor336p5v1, DQMGUI_5_1_6, CMSSW_3_3_6_patch4, apFor336p5v0, for336patch4, DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, CMSSW_3_3_3_TSG, sm100115-333tsg, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, CMSSW_3_3_6_patch3, apFor336p3v0, CMSSW_3_3_6_patch1, eskFor336ptch1, DQMGUI_5_1_5, CMSSW_3_3_6, apFor336v0, CMSSW_3_3_5_patch4, apFor335p4v0, CMSSW_3_3_5_patch3, apFor335p3v0, CMSSW_3_3_5_patch2, CMSSW_3_3_3_onlpatch5_ONLINE, apFor335p2v0, DAS_20091202, CMSSW_3_3_5_patch1, apFor335pat1v2, apFor335pat1v1, apFor335pat1v0, lsFor335patch1, lsFOR335patch1v0, CMSSW_3_3_5, FILEMOVER_20091118, CMSSW_3_3_3_onlpatch4_ONLINE, apFor335v0, pe20091126a-for33X-slc4-gcc345, DBS-APPS_20090929, CMSSW_3_1_6, bhFor316v0, CMSSW_3_3_3_onlpatch2_ONLINE, CMSSW_3_3_3_onlpatch3_ONLINE, DQMGUI_5_1_5_pre1, DQMGUI_5_1_4, CMSSW_3_3_4, apFor334v0, pe20091117a-fromDAS_20090709, CMSSW_3_3_3_DQM, pe20091116b-fromDAS_20090709, apFor333dqmv0, pe20091116a-fromDAS_20090709, CMSSW_3_3_3_patch1, lmFor333pat1v0, CMSSW_3_3_3_ONLINE, fw20091114b, fw20091114a, ap20091114a, fw20091114, ap20091114, CMSSW_3_3_3, CMSSW_3_1_5, pe20091113a-for33X-slc4-gcc345, apFor333v1, apFor333v0, bhFor315v0, bhFor314v0, pe20091110c-for33X-slc4-gcc345, pe20091110b-for33X-slc4-gcc345, pe20091110a-for33X-slc4-gcc345, CMSSW_3_3_2_onlpatch2_ONLINE, CMSSW_3_3_2_ONLINE, CMSSW_3_3_2_onlpatch1_ONLINE, pe20091109a-for33X-slc4-gcc345, DQMGUI_5_1_3, DQMGUI_5_1_2, DAS_20091104, pe20091103a-for34X, DQMGUI_5_1_1, ge20091102-qt-conf, apFor332fwlv1, CMSSW_3_3_2, DQMGUI_5_1_0, pe20091031a-for34X, apFor332v0, pe20091030a-for34X, DBS-WEB_20091021, apFor331fwlv1, apFor331fwlv0, CMSSW_3_3_1, CMSSW_3_3_0_onlpatch2_ONLINE, for330op2, pe20091022a-for33X, CMSSW_3_3_0_onlpatch1_ONLINE, pe20091021a-for33X, CMSSW_3_4_0_pre2, sm340p2, CMSSW_3_2_8, DAS_20091016, DAS_20091014, CMSSW_3_3_0_ONLINE, sm091013a, DBS-WEB_20091012, sm091012c, sm091012b, CMSSW_3_3_0, eskFor328, apFor330v0, pe20091009a-for33X, pe20091008d-for33X, CMSSW_3_4_0_pre1, pe20091006a-for33X, CMSSW_3_1_4, CMSSW_3_3_0_pre6, apFor330pre6v0, pe20090929a-for33X, ap20090929a-for33X, ap20090929-for33X, CMSSW_3_3_0_pre5, apFor330pre5v0, pe20090925a-for33X, pe20090924b-for33X, pe20090924a-for33X, CMSSW_3_1_3, pe20090923b-for33X, pe20090923a-for33X, pe20090922e-for33X, pe20090922c-for33X, pe20090922a-for33X, CMSSW_3_2_7, pe20090921d-for33X, pe20090921c-for33X, pe20090921b-for33X, DBS-WEB_20090921, pe20090921a-ports, CMSSW_3_3_0_pre4, apFor330pre4v0, eskFor327, pe20090918a-ports, CMSSW_3_3_0_pre3, pe20090910-fromDAS_20090709, FILEMOVER_20090910, apFor330pre3v0, pe20090907a-for33X, CMSSW_3_3_0_pre2, apFor330pre2v1, CMSSW_3_2_6, pe20090904a-for33X, DBS-WEB_20090817, pe20090903b-for33X, eskFor326, pe20090903-for33X, FILEMOVER_20090828, DBS-APPS_20090706, CMSSW_3_3_0_pre1, esk090827, pe20090827a-33X, pe20090826a-33X, CMSSW_3_2_5, smFor325v0, eskFor325, WEBTOOLS_APPS_20090817, CMSSW_3_2_4_patch1, CMSSW_3_2_4, sm324p1a, DBS-APPS_20090804, CMSSW_3_2_3, apFor323v1, apFor323v0, DQMGUI_5_0_2, DQMGUI_5_0_1, DQMGUI_5_0_0, DBS-APPS_20090730, DAS_20090709, CMSSW_3_2_2_patch2, apFor322patch2v0, CMSSW_3_2_2_patch1, apFor322pa1v0, CMSSW_3_2_2, CMSSW_3_1_2, apFor322v0, dl090723, CMSSW_3_2_1, apFor321v0, apFor320onlv0, CMSSW_3_2_0, apFor320v1, apFor320v0, CMSSW_3_1_1_patch1, sm090716a_off, CMSSW_3_1_1_reallyThisTime, CMSSW_3_1_1, dl090707, CMSSW_3_1_0_patch1, CMSSW_3_1_0, CMSSW_3_1_0_pre11, DAS_20090607, DBS-WEB_20090618, dl090623, DBS-APPS_20090619, CMSSW_3_1_0_pre10, dl090611, DBS-APPS_20090608, CMSSW_3_1_0_pre9, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, CMSSW_3_1_0_pre8, DBS-APPS_20090528, condcore306, pe20090525a-31Xports-432, dl090520t2, dl090520, DBS_APPS_20090518, CMSSW_3_1_0_pre7, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, pe20090514b-31Xports-432, dl090514t3, dl090514t2, pe20090514a-31Xports-432, dl090514, DBS-WEB_20090512, pe20090512a-31Xports-432, pe20090511a-31Xports-432, dl090509, DBS-WEB_20090507, dl090504gcc41, pe20090505b-31Xports-432, pe20090505a-31Xports-432, dl090504, pe20090504a-31Xports-432, DBS_APPS_20090504, CMSSW_3_1_0_pre6, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, dl090425, DBS-WEB_20090422, dl090421, DBS-WEB_20090420, DBS-APPS_20090417, CMSSW_3_1_0_pre5, dl090416, DBS-APPS_20090415, pe20090414a-31Xports-432, dl090410, DBS-APPS_20090410, dl090409t2, dl090409, DAS_20090408, pe20090407a-31Xports-432, dl090406t2, dl090406, DBS-APPS_20090406, pe20090406b-31Xports-432, pe20090406a-31Xports-432, dl090403, pe20090403a-31Xports-432, dl090401t2, DAS_20090330, dl090401, dl090330, dl090329, dl0903029, CMSSW_3_1_0_pre4, DBS-APPS_20090326, DAS_20090319_1, pe20090318b-for31X-412, pe20090318b-for31X, DBS-APPS_20090318, pe20090318-for31X, dl090317t2, dl090317, DBS-APPS_20090316, COUCHDB_20090313, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, CMSSW_3_1_0_pre3, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, pe20090304-for31X-412, pe20090304-for31X, pe20090304b-30Xports-432, pe20090304a-30Xports-432, dl090304_cmsswtoolconf9cms_gcc412, dl090304_cmsswtoolconf9cms, DBS-APPS_20090303_1, DBS-APPS_20090303, DBS-APPS_20090302, dl090302_cmsswtoolconf9gcc412, dl090302_cmsswtoolconf9, dl090301, pe20090226b-30Xports-432, pe20090226a-30Xports-432, CMSSW_3_1_0_pre2, pe20090225d-for30XIB-412, pe20090225d-for30XIB, pe20090225c-for30XIB, pe20090225b-for30XIB-412, pe20090225b-for30XIB, pe20090225a-for30XIB, CMSSW_3_1_0_pre1, pe20090224b-30Xports-432, pe20090224a-30Xports-432, pe20090224c-for30XIB-412, pe20090224c-for30XIB, pe20090224b-for30XIB-412, pe20090224b-for30XIB, pe20090224a-for30XIB-412, pe20090224a-for30XIB, DBS-APPS_20090220_1, DBS-APPS_20090220, CMSSW_3_0_0_pre10, 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, CMSSW_3_0_0_pre9, pe20090213b-for30X-412, pe20090213b-for30X, pe20090213-for30X-412, pe20090213-for30X, WEBTOOLS-APPS_20090212, condcore305, WEBTOOLS-APPS_20090209_64bit, zx20090209, condcore304, WEBTOOLS-APPS_20090206, condcore303, T0M_0_0_4, T0M_0_0_3, pe20090205-for30X, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, pe20090202-for30X, dl090131-412, dl090131, 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, CMSSW_3_0_0_pre8, pe20090124b-for30X-root522-412, pe20090124b-for30X-root522, pe20090124a-for30X-root522-412, pe20090124a-for30X-root522, pe20090123b-for30X-root522-412, pe20090123b-for30X-root522, pe20090123a-for30X-root522, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, CMSSW_3_0_0_pre7, pe20090116a-for30X-root522, pe20090115a-for30X-root522, sw_20090115a, sw_20090115, pe20090114c-ports, pe20090114b-ports, pe20090114a-ports, pe20090109b-for30XIB-412, pe20090109b-for30XIB, pe20090109a-for30XIB-412, pe20090109a-for30XIB, CMSSW_3_0_0_pre6, CMSSW_3_0_0_pre5, pe20090107a-for30XIB-412, pe20090107a-for30XIB, CMSSW_3_0_0_pre4, pe20090105a-for30XIB-412, pe20090105a-for30XIB, pe20090101a-for30XIB-412, pe20090101a-for30XIB, pe20081230a-for30XIB, pe20081230-for30X-newcoralpool, pe20081229-for30X-G492, pe20081218b-for30XIB-412, pe20081218b-for30XIB, pe20081218-for30XIB-412, pe20081218-for30XIB, pe20081216-for30XIB-412, pe20081216-for30XIB, pe20081216c-for30X, pe20081216b-for30X, pe20081216a-for30X, pe20081214a-for30X, pe20081213c-30Xports-432, pe20081213c-30Xports, pe20081213b-30Xports, pe20081213a-30Xports, CMSSW_3_0_0_pre3, pe20081209a-for30X-412, pe20081209a-for30X, pe20081204a-for30X-412, pe20081204a-for30X, pe20081104a-for30X, pe20081125d-30Xports-432, pe20081125d-30Xports, pe20081125c-30Xports-432, pe20081125c-30Xports, pe20081125b-30Xports, pe20081125b-30Xports-432, pe20081125a-30Xports, pe20081124d-30Xports, pe20081124a-for30X-412, pe20081124a-for30X, pe20081124c-30Xports, pe20081124b-30Xports, pe20081124a-30Xports, pe20081121a-for30X-412, pe20081121a-for30X, pe20081121b-30Xports, pe20081121a-30Xports, testofc, pe20081117a-for30X-412, pe20081117a-for30X
Changes since 1.25: +4 -2 lines
Log Message:
Use %gccver for conditionals on compiler version instead of %if
and %cmsplatf. (From Giulio)

File Contents

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