ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/pythia8.spec
Revision: 1.13
Committed: Wed Oct 31 19:22:09 2007 UTC (17 years, 6 months ago) by dlange
Branch: MAIN
CVS Tags: CMSSW_1_7_7, dl080227for176, CMSSW_1_7_5_ONLINE1, CMSSW_1_7_5, CMSSW_1_7_5_g491, CMSSW_1_7_5_ONLINE, nr080115onl175, dl080111, ge20080109-webconddb, ge20080109-sitedb, CMSSW_1_7_4, CMSSW_1_7_3_g490p1, dl071212t2, dl071212, CMSSW_1_7_3, CMSSW_1_7_2, CMSSW_1_7_1, nr071121onl170_xdaq5, nr071120_fwlite170_1, CMSSW_1_7_0_ONLINE, CMSSW_1_7_0, nr071116onlpre13, CMSSW_1_7_0_pre13, dl071114, ap20071113, CMSSW_1_7_0_pre12, CMSSW_1_7_0_pre10_ONLINE, CMSSW_1_7_0_pre11, nr071105a, pe20071102a-ports, CMSSW_1_7_0_pre10, CMSSW_1_7_0_pre9
Changes since 1.12: +1 -1 lines
Log Message:
add hepmc to CMSSW_FWLITE_INCLUDE_PATH

File Contents

# User Rev Content
1 dlange 1.13 ### RPM external pythia8 070-CMS12
2 dlange 1.2 Requires: hepmc
3     Requires: clhep
4 dlange 1.3 Requires: pythia6
5 muzaffar 1.9 Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
6 dlange 1.1 %prep
7     %setup -q -n %{n}/%{realversion}
8 dlange 1.4
9     export PYTHIA6LOCATION=${PYTHIA6_ROOT}
10     export PYTHIA6VERSION=${PYTHIA6_VERSION}
11     export HEPMCLOCATION=${HEPMC_ROOT}
12     export HEPMCVERSION=${HEPMC_VERSION}
13     export CLHEPLOCATION=${CLHEP_ROOT}
14     export CLHEPVERSION=${CLHEP_VERSION}
15     ./configure
16 dlange 1.1
17     %build
18     make
19    
20     %install
21     tar -c lib include | tar -x -C %i
22    
23 muzaffar 1.9 # SCRAM ToolBox toolfile
24     mkdir -p %i/etc/scram.d
25     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
26     <doc type=BuildSystem::ToolDoc version=1.0>
27     <Tool name=pythia8 version=%v>
28     <Client>
29     <Environment name=PYTHIA8_BASE default="%i"></Environment>
30     <Environment name=LIBDIR default="$PYTHIA8_BASE/lib"></Environment>
31     <Environment name=INCLUDE default="$PYTHIA8_BASE/include"></Environment>
32     </Client>
33     <lib name=pythia8>
34     <use name=cxxcompiler>
35     <use name=hepmc>
36     <use name=pythia6>
37     <use name=clhep>
38     </Tool>
39     EOF_TOOLFILE
40    
41     %post
42     %{relocateConfig}etc/scram.d/%n