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.21 by eulisse, Mon Jul 24 09:24:11 2006 UTC vs.
Revision 1.32 by eulisse, Thu Nov 23 10:43:35 2006 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 7.1-p2cms
1 > ### RPM external geant4 8.1-p2.cms1
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.8
11 < %define g4EMLOWVersion 2.2
10 > %define g4NDLVersion 3.9
11 > %define g4ElasticScatteringVersion 1.1
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/RadiativeDecay.%{radiativeDecayVersion}.tar.gz
19 < Source5: http://geant4.web.cern.ch/geant4/physics_lists/geant4.6.1/lists/Packaging.tar
20 < Patch: geant4-g4e-pCMS2
21 < Patch2: geant4-g4tubs-lcapture-pCMS2
21 <
19 > Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
20 > Patch: geant48-p2-cms1
21 > Patch1: geant4-geant4e-GNUmakefile
22   %prep
23   %setup -n %n.%downloadv
24   pwd
25 < %patch0 -p0
26 < %patch2 -p0
25 > %patch0 -p0
26 > %patch1 -p0
27   %build
28   # Linux? -pthread?
29   touch G4BuildConf.sh
# Line 42 | Line 42 | echo "export G4OPTIMIZE=1" >> G4BuildCon
42   echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh
43   echo "export G4RADIOACTIVEDATA=%i/data/RadiativeDecay%{radiativeDecayVersion}" >> G4BuildConf.sh
44   echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh
45 + echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh
46   echo "export NeutronHPCrossSections=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
47  
48   # export G4LIB_BUILD_STATIC=1
# Line 75 | Line 76 | echo "export G4VIS_BUILD_DAWNFILE_DRIVER
76   source G4BuildConf.sh
77   mkdir -p %i
78   tar -cf - config source | tar -C %i -xf -
79 +
80   make %makeprocesses -C $G4BASE all
81   make %makeprocesses -C $G4BASE includes
82   make %makeprocesses -C $G4BASE
83   make %makeprocesses -C $G4BASE global
84   make %makeprocesses -C $G4BASE
85 + make %makeprocesses -C $G4BASE/../physics_lists/hadronic/Packaging
86  
87   %install
88   mkdir -p %i/etc
# Line 94 | Line 97 | tar -C %i/data -zxvf %_sourcedir/G4EMLOW
97   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
98   tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz
99   mkdir -p %i/share
100 < cp -r physics_lists  %i/share
100 > cp -r physics_lists  %i/share
101 > ln -sf plists/$(uname)-g++/libPackaging.so %i/lib/libPackaging.so
102 > find %{i}/share/physics_lists/hadronic/Packaging/include/ -iname *.hh | sed -e "s|.*/||" | xargs -i ln -sf ../share/physics_lists/hadronic/Packaging/include/{} %{i}/include/{}
103 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines