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.40 by elmer, Sun May 13 15:08:00 2007 UTC vs.
Revision 1.45 by andreasp, Fri Jul 13 14:14:24 2007 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 8.2.p01-cms1
1 > ### RPM external geant4 8.3
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}
# Line 7 | Line 7
7   # Build system fudging and some patches by Lassi A. Tuura <lat@iki.fi>  
8   Requires: clhep
9   %define photonEvaporationVersion 2.0
10 < %define g4NDLVersion 3.9
11 < %define g4ElasticScatteringVersion 1.1
12 < %define g4EMLOWVersion 4.0
13 < %define radiativeDecayVersion 3.0
10 > %define g4NDLVersion 3.10
11 > %define g4EMLOWVersion 4.2
12 > %define radioactiveDecayVersion 3.1
13   Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
14   Source1: http://geant4.cern.ch/support/source/G4NDL.%{g4NDLVersion}.tar.gz
15   Source2: http://geant4.cern.ch/support/source/G4EMLOW.%{g4EMLOWVersion}.tar.gz
16   Source3: http://geant4.cern.ch/support/source/PhotonEvaporation.%{photonEvaporationVersion}.tar.gz
17 < Source4: http://geant4.cern.ch/support/source/RadiativeDecay.%{radiativeDecayVersion}.tar.gz
18 < Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
19 < Patch: geant482-cms1
17 > Source4: http://geant4.cern.ch/support/source/G4RadioactiveDecay.%{radioactiveDecayVersion}.tar.gz
18 > Patch: geant-4.8.2.p01-nobanner
19 >
20   %prep
21   %setup -n %n.%downloadv
22   pwd
23 < %patch0 -p0
23 > %patch0 -p1
24 >
25   %build
26   if [ $(uname) = Darwin ]; then
27    export MACOSX_DEPLOYMENT_TARGET="10.4"
# Line 37 | Line 37 | echo "export G4WORKDIR=$PWD" >> G4BuildC
37   echo "export G4TMP=$PWD/tmp" >> G4BuildConf.sh
38   echo "export G4LIB=%i/lib" >> G4BuildConf.sh
39   echo "export G4LIB_BUILD_SHARED=1" >> G4BuildConf.sh
40 < echo "unset G4DEBUG" >> G4BuildConf.sh
41 < echo "export G4OPTIMIZE=1" >> G4BuildConf.sh
40 > if [ !${BUILD_DEBUG} ]; then
41 > echo "unset G4DEBUG" >> G4BuildConf.sh
42 > echo "export G4OPTIMIZE=1" >> G4BuildConf.sh
43 > else
44 > echo "export G4DEBUG=1" >> G4BuildConf.sh
45 > echo "unset G4OPTIMIZE" >> G4BuildConf.sh
46 > echo "export G4VERBOSE=1" >> G4BuildConf.sh
47 > fi
48  
49   echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh
50 < echo "export G4RADIOACTIVEDATA=%i/data/RadiativeDecay%{radiativeDecayVersion}" >> G4BuildConf.sh
50 > echo "export G4RADIOACTIVEDATA=%i/data/RadioactiveDecay%{radioactiveDecayVersion}" >> G4BuildConf.sh
51   echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh
46 echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh
52   echo "export NeutronHPCrossSections=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
53  
54   # export G4LIB_BUILD_STATIC=1
# Line 96 | Line 101 | mkdir -p %i/data
101   tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz
102   tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
103   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
104 < tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz
104 > tar -C %i/data -zxvf %_sourcedir/G4Rad*.tar.gz
105   #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines