ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/pythia8.spec
Revision: 1.18
Committed: Tue May 6 16:30:55 2008 UTC (16 years, 11 months ago) by dlange
Branch: MAIN
CVS Tags: apFor210p4v1, apFor210p4v0, pe20080507-for21X, dl080506
Changes since 1.17: +1 -1 lines
Log Message:
gen fixes

File Contents

# Content
1 ### RPM external pythia8 107
2 Requires: hepmc
3 Requires: clhep
4 Requires: pythia6
5 Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
6 %prep
7 %setup -q -n %{n}/%{realversion}
8
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 --enable-shared --with-hepmc=$HEPMC_BASE
16
17 %build
18 make
19
20 %install
21 tar -c lib include xmldoc | tar -x -C %i
22
23 # 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 <runtime name=PYTHIA8DATA value="$PYTHIA8BASE/xmldoc">
34 <lib name=pythia8>
35 <use name=cxxcompiler>
36 <use name=hepmc>
37 <use name=pythia6>
38 <use name=clhep>
39 </Tool>
40 EOF_TOOLFILE
41
42 %post
43 %{relocateConfig}etc/scram.d/%n