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.1 by dlange, Tue Apr 24 15:48:28 2007 UTC vs.
Revision 1.13 by dlange, Wed Oct 31 19:22:09 2007 UTC

# Line 1 | Line 1
1 < ### RPM external pythia8 070
2 < Requires: gcc-wrapper
3 < %define gccwrapperarch slc4_ia32_gcc345
4 < %define realversion %(echo %v | cut -d- -f1 )
5 < Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
1 > ### RPM external pythia8 070-CMS12
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 < ./configure
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
16  
17   %build
11 %if "%{cmsplatf}" == "%{gccwrapperarch}"
12 echo "Using gcc wrapper for %cmsplatf"
13 source $GCC_WRAPPER_ROOT/etc/profile.d/init.sh
14 %endif
18   make
19  
20   %install
21   tar -c lib include | 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 + <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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines