ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/pythia8.spec
Revision: 1.25
Committed: Tue Jan 12 13:59:38 2010 UTC (15 years, 3 months ago) by muzaffar
Branch: MAIN
CVS Tags: FRONTEND_CONF_3_30_20100724, FRONTEND_CONF_3_29_20100723, DQMGUI_5_2_1, DQMGUI_5_2_0, CMSSW_3_5_4_onlpatch4_ONLINE, CMSSW_3_5_4_patch2, for354p2, CMSSW_3_5_4_onlpatch3_ONLINE, CMSSW_3_5_4_patch1, for354patch1, CMSSW_3_5_4_onlpatch2_ONLINE, CMSSW_3_5_4_onlpatch1_ONLINE, CMSSW_3_5_4_ONLINE, DQMGUI_5_1_8, fwFor354onl, CMSSW_3_5_4, apFor354v0, CMSSW_3_5_3_ONLINE, fwFor353onl, CMSSW_3_5_3, apFor353v0, sm100302a-for35X, CMSSW_3_5_2_patch2, apFor352p2v0, CMSSW_3_5_2_patch1, apFor352p1v0, fwFor352onl, CMSSW_3_5_1_onlpatch1_ONLINE, pe20100223a-for36X, CMSSW_3_5_2, apFor352v0, apFor351p2v0, CMSSW_3_5_1_patch1, for351patch1, CMSSW_3_5_1_ONLINE, FRONTEND_CONF_3_24_20100217, dsr20100216fwlite350, CMSSW_3_5_1, pe20100216b-for36Xmin, pe20100216a-for36X, apFor351v0, ge20100215-rootqt-r522, ge20100215-rootqt-pre5r526, CMSSW_3_5_0_pre5r526, ge20100212-boost, ge20100112-boost, DQMGUI_5_1_7b, CMSSW_3_5_0_patch1, for350patch1, T0Mon_100204_2, CMSSW_3_5_0_ONLINE, fwFor350online, CMSSW_3_5_0, apFor350v0, pe20100205a-for35X, pe20100204a-for35X, CMSSW_3_5_0_pre5_ONLINE, for350p5-onl-slc5, pe20100131c-for35Xr526, pe20100131b-for35Xr526, pe20100131a-for35Xr526, CMSSW_3_5_0_pre5g493, pe20100130b-for35Xg493, pe20100130-for35Xg493, CMSSW_3_5_0_pre5, for350p4-onl-slc5, pe20100129a-for35X, CMSSW_3_5_0_pre4, apFor350pre5v0, sm100128a, sm100128, apFor350pre4v0, pe20100127e-for35X, pe20100127d-for35X, pe20100127c-for35X, sm100127-onl35x, pe20100127b-for35X, pe20100127a-for35X, pe20100124a-for35X, ap20100123a-for35X, CMSSW_3_5_0_pre3, apFor350pre3v0, pe20100113a-for35X, sm20100113a-for35X, sm20100113-for35X, pe20100112b-for35X, sm20100112a-for35X, sm20100112-for35X
Changes since 1.24: +17 -18 lines
Log Message:
converted scram toolfiles to xml format

File Contents

# User Rev Content
1 elmer 1.24 ### RPM external pythia8 130
2 andreasp 1.23 ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
3    
4 dlange 1.2 Requires: hepmc
5     Requires: clhep
6 dlange 1.3 Requires: pythia6
7 dlange 1.19 Requires: lhapdf
8    
9 muzaffar 1.9 Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
10 dlange 1.1 %prep
11     %setup -q -n %{n}/%{realversion}
12 dlange 1.4
13     export PYTHIA6LOCATION=${PYTHIA6_ROOT}
14     export PYTHIA6VERSION=${PYTHIA6_VERSION}
15     export HEPMCLOCATION=${HEPMC_ROOT}
16     export HEPMCVERSION=${HEPMC_VERSION}
17     export CLHEPLOCATION=${CLHEP_ROOT}
18     export CLHEPVERSION=${CLHEP_VERSION}
19 andreasp 1.21 ./configure --enable-shared --with-hepmc=${HEPMC_ROOT}
20 dlange 1.1
21     %build
22     make
23    
24     %install
25 dlange 1.17 tar -c lib include xmldoc | tar -x -C %i
26 dlange 1.1
27 muzaffar 1.9 # SCRAM ToolBox toolfile
28     mkdir -p %i/etc/scram.d
29 muzaffar 1.25 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
30     <tool name="pythia8" version="%v">
31     <lib name="pythia8"/>
32     <lib name="hepmcinterface"/>
33     <client>
34     <environment name="PYTHIA8_BASE" default="%i"/>
35     <environment name="LIBDIR" default="$PYTHIA8_BASE/lib"/>
36     <environment name="INCLUDE" default="$PYTHIA8_BASE/include"/>
37     </client>
38     <runtime name="PYTHIA8DATA" value="$PYTHIA8_BASE/xmldoc"/>
39     <use name="cxxcompiler"/>
40     <use name="hepmc"/>
41     <use name="pythia6"/>
42     <use name="clhep"/>
43     <use name="lhapdf"/>
44     </tool>
45 muzaffar 1.9 EOF_TOOLFILE
46    
47     %post
48 muzaffar 1.25 %{relocateConfig}etc/scram.d/%n.xml