ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/pythia8.spec
(Generate patch)

Comparing COMP/CMSDIST/pythia8.spec (file contents):
Revision 1.5 by elmer, Tue May 1 17:56:14 2007 UTC vs.
Revision 1.19 by dlange, Thu May 8 04:37:13 2008 UTC

# Line 1 | Line 1
1 < ### RPM external pythia8 070
1 > ### RPM external pythia8 107
2   Requires: hepmc
3   Requires: clhep
4   Requires: pythia6
5 < %define gccwrapperarch slc4_ia32_gcc345
6 < %define realversion %(echo %v | cut -d- -f1 )
7 < Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
5 > Requires: lhapdf
6 >
7 > Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
8   %prep
9   %setup -q -n %{n}/%{realversion}
10  
# Line 14 | Line 14 | export HEPMCLOCATION=${HEPMC_ROOT}
14   export HEPMCVERSION=${HEPMC_VERSION}
15   export CLHEPLOCATION=${CLHEP_ROOT}
16   export CLHEPVERSION=${CLHEP_VERSION}
17 < ./configure
17 > ./configure --enable-shared --with-hepmc=$HEPMC_BASE
18  
19   %build
20   make
21  
22   %install
23 < tar -c lib include | tar -x -C %i
23 > tar -c lib include xmldoc | tar -x -C %i
24 >
25 > # SCRAM ToolBox toolfile
26 > mkdir -p %i/etc/scram.d
27 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
28 > <doc type=BuildSystem::ToolDoc version=1.0>
29 > <Tool name=pythia8 version=%v>
30 > <Client>
31 > <Environment name=PYTHIA8_BASE default="%i"></Environment>
32 > <Environment name=LIBDIR default="$PYTHIA8_BASE/lib"></Environment>
33 > <Environment name=INCLUDE default="$PYTHIA8_BASE/include"></Environment>
34 > </Client>
35 > <runtime name=PYTHIA8DATA value="$PYTHIA8BASE/xmldoc">
36 > <lib name=pythia8>
37 > <lib name=hepmcinterface>
38 > <use name=cxxcompiler>
39 > <use name=hepmc>
40 > <use name=pythia6>
41 > <use name=clhep>
42 > <use name=lhapdf>
43 > </Tool>
44 > EOF_TOOLFILE
45  
46 + %post
47 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines