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

Comparing COMP/CMSDIST/geant4.spec (file contents):
Revision 1.62 by elmer, Sun Dec 9 06:38:43 2007 UTC vs.
Revision 1.68 by elmer, Thu Dec 27 20:43:28 2007 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 9.1.cand03-CMS18
1 > ### RPM external geant4 8.3.p01-CMS19
2   %define downloadv %(echo %v | cut -d- -f1)
3 + ## INITENV SET G4NDL_PATH %i/data/G4NDL%{g4NDLVersion}
4 + ## INITENV SET G4EMLOW_PATH %i/data/G4EMLOW%{g4EMLOWVersion}
5 + ## INITENV SET PHOTON_EVAPORATION_PATH %i/data/PhotonEvaportation%{photonEvaporationVersion}
6 + ## INITENV SET RADIATIVE_DECAY_PATH %i/data/RadiativeDecay%{radiativeDecayVersion}
7   # Build system fudging and some patches by Lassi A. Tuura <lat@iki.fi>  
4 Provides: /bin/awk
8   Requires: clhep
6
9   %define photonEvaporationVersion 2.0
10 <
9 < # FIXME: g4NDLVersion 3.12 must be used, but tarball for it
10 < #        is not available yet, so we take 3.11 . NR 2007/12/06
11 <
12 < %define g4NDLVersion 3.11
10 > %define g4NDLVersion 3.9
11   %define g4ElasticScatteringVersion 1.1
12 < %define g4EMLOWVersion 5.1
13 < %define radioactiveDecayVersion 3.2
14 <
17 < #Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
18 <
19 < Source0: cvs://:kserver:ratnik@geant4.cvs.cern.ch:/cvs/Geant4?tag=-rgeant4-09-01-cand-03&module=geant4&output=/%n.%downloadv.tar.gz
12 > %define g4EMLOWVersion 4.0
13 > %define radiativeDecayVersion 3.0
14 > Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
15   Source1: http://geant4.cern.ch/support/source/G4NDL.%{g4NDLVersion}.tar.gz
16   Source2: http://geant4.cern.ch/support/source/G4EMLOW.%{g4EMLOWVersion}.tar.gz
17   Source3: http://geant4.cern.ch/support/source/PhotonEvaporation.%{photonEvaporationVersion}.tar.gz
18 < Source4: http://geant4.cern.ch/support/source/G4RadioactiveDecay.%{radioactiveDecayVersion}.tar.gz
18 > Source4: http://geant4.cern.ch/support/source/RadiativeDecay.%{radiativeDecayVersion}.tar.gz
19   Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
20  
21 < #Patch: geant-4.8.2.p01-nobanner
27 < Patch1: geant4.9.1.cand03-debug-on
21 > Patch: geant-4.8.2.p01-nobanner
22  
23   %prep
24 < %setup -n %n
24 > %setup -n %n.%downloadv
25   pwd
26 < #%patch0 -p1
33 < %patch1 -p1
26 > %patch0 -p1
27  
28   %build
29   if [ $(uname) = Darwin ]; then
# Line 48 | Line 41 | echo "export G4TMP=$PWD/tmp" >> G4BuildC
41   echo "export G4LIB=%i/lib" >> G4BuildConf.sh
42   echo "export G4LIB_BUILD_SHARED=1" >> G4BuildConf.sh
43   echo "unset G4DEBUG" >> G4BuildConf.sh
51 echo "export CPPVERBOSE=yes" >> G4BuildConf.sh
44  
45   echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh
46 < echo "export G4RADIOACTIVEDATA=%i/data/RadioactiveDecay%{radioactiveDecayVersion}" >> G4BuildConf.sh
46 > echo "export G4RADIOACTIVEDATA=%i/data/RadiativeDecay%{radiativeDecayVersion}" >> G4BuildConf.sh
47   echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh
48   # G4ELASTIC is not needed from 8.2 onward
49   #echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh
# Line 112 | Line 104 | mkdir -p %i/data
104   tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz
105   tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
106   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
107 < tar -C %i/data -zxvf %_sourcedir/G4Rad*.tar.gz
107 > tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz
108   #
109  
110   # SCRAM ToolBox toolfile
# Line 122 | Line 114 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
114   <Tool name=GEANT4 version=%v>
115   <info url=http://wwwinfo.cern.ch/asd/geant4/geant4.html></info>
116   <lib name=G4digits_hits>
125 <lib name=G4error_propagation>
117   <lib name=G4event>
118   <lib name=G4FR>
119   <lib name=G4geometry>
# Line 133 | Line 124 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
124   <lib name=G4materials>
125   <lib name=G4modeling>
126   <lib name=G4parmodels>
127 < <lib name=G4particles>    
127 > <lib name=G4particles>
128   <lib name=G4persistency>
129   <lib name=G4physicslists>
130   <lib name=G4processes>
# Line 155 | Line 146 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
146   <Environment name=INCLUDE default="$GEANT4_BASE/include"></Environment>
147   </Client>
148   <use name=clhep>
149 < <Flags CPPDEFINES="G4USE_STD_NAMESPACE GNU_GCC G4V9">
149 > <Flags CPPDEFINES="G4USE_STD_NAMESPACE GNU_GCC">
150   <Runtime name=G4LEVELGAMMADATA value="$GEANT4_BASE/data/PhotonEvaporation2.0" type=path>
151 < <Runtime name=NeutronHPCrossSections value="$GEANT4_BASE/data/G4NDL3.11" type=path>
152 < <Runtime name=G4RADIOACTIVEDATA value="$GEANT4_BASE/data/RadioactiveDecay3.2" type=path>
153 < <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW5.1" type=path>
151 > <Runtime name=NeutronHPCrossSections value="$GEANT4_BASE/data/G4NDL3.9" type=path>
152 > <Runtime name=G4RADIOACTIVEDATA value="$GEANT4_BASE/data/RadiativeDecay3.0" type=path>
153 > <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW4.0" type=path>
154   </Tool>
155   EOF_TOOLFILE
156  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines