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.103 by muzaffar, Sat Dec 18 09:20:56 2010 UTC vs.
Revision 1.111 by davidlt, Fri Feb 24 20:23:33 2012 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 9.4
1 > ### RPM external geant4 9.4.p03
2   %define downloadv %(echo %v | cut -d- -f1)
3  
4   Requires: clhep
5  
6 < %define photonEvaporationVersion 2.0
7 < %define g4NDLVersion 3.13
8 < %define g4ElasticScatteringVersion 1.1
9 < %define g4EMLOWVersion 6.2
10 < %define radioactiveDecayVersion 3.2
11 < %define g4NeutronXS 1.0
12 <
13 < #Source0: http://cmsrep.cern.ch/cmssw/junk/geant4/%n.%downloadv.tgz
14 < Source1: http://geant4.cern.ch/support/source/%n.%downloadv.tgz
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
19 < Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
20 < Source6: http://geant4.cern.ch/support/source/G4NEUTRONXS.%{g4NeutronXS}.tar.gz
6 > Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
7  
8 < Patch0:  geant-4.8.2.p01-nobanner
8 > Patch0: geant-4.8.2.p01-nobanner
9 > Patch1: geant4-9.4.p03-fix-anti-proton-bug
10  
11   %prep
12   %setup -n %n.%downloadv
13 < pwd
13 >
14   %patch0 -p1
15 + %patch1 -p1
16  
17   %build
18   if [ $(uname) = Darwin ]; then
19    export MACOSX_DEPLOYMENT_TARGET="10.4"
20   fi
21 +
22   # Linux? -pthread?
23   touch G4BuildConf.sh
24   echo "export OS_ARCH=%{cmsplatf}" >> G4BuildConf.sh
# Line 45 | Line 34 | echo "unset G4DEBUG" >> G4BuildConf.sh
34   echo "export G4_NO_VERBOSE=1" >> G4BuildConf.sh
35   echo "export CPPVERBOSE=yes" >> G4BuildConf.sh
36  
48 echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh
49 echo "export G4RADIOACTIVEDATA=%i/data/RadioactiveDecay%{radioactiveDecayVersion}" >> G4BuildConf.sh
50 echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh
51 # G4ELASTIC is not needed from 8.2 onward
52 #echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh
53
54 # From Gabriele Cosmo: The variable name 'NeutronHPCrossSections' is replaced by
55 # 'G4NEUTRONHPDATA' starting from version 9.0.
56 #echo "export NeutronHPCrossSections=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
57 echo "export G4NEUTRONHPDATA=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
58
59
37   # export G4LIB_BUILD_STATIC=1
38   # FIXME: For OS X? export G4NO_OPTIMISE=1 // unset G4OPTIMISE
39   # FIXME: override CERNLIB_PATH?
# Line 105 | Line 82 | mv %i/lib/$(uname)-g++/*.$so %i/lib
82   #mv %i/lib/$(uname)-g++/libname.map %i/lib
83   rm -rf %i/lib/$(uname)-g++
84   # Build already installed into prefix
85 < mkdir -p %i/data
109 < tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz
110 < tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
111 < tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
112 < tar -C %i/data -zxvf %_sourcedir/G4Rad*.tar.gz
113 < tar -C %i/data -zxvf %_sourcedir/G4NEU*.tar.gz
85 >
86   # Clean up the sources, which are not needed in the rpm
87   rm -rf %i/source

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines