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.48 by dlange, Fri Aug 24 20:40:02 2007 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 7.1-p2cms
1 > ### RPM external geant4 8.2.p01-CMS4
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>
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
19 > Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
20 > Patch: geant482-cms1
21 > Patch1: geant-4.8.2.p01-nobanner
22  
23   %prep
24   %setup -n %n.%downloadv
25   pwd
26 < %patch0 -p0
27 < %patch2 -p0
26 > %patch0 -p0
27 > %patch1 -p1
28 >
29   %build
30 + if [ $(uname) = Darwin ]; then
31 +  export MACOSX_DEPLOYMENT_TARGET="10.4"
32 + fi
33   # Linux? -pthread?
34   touch G4BuildConf.sh
35   echo "export OS_ARCH=%{cmsplatf}" >> G4BuildConf.sh
# Line 42 | Line 47 | echo "export G4OPTIMIZE=1" >> G4BuildCon
47   echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh
48   echo "export G4RADIOACTIVEDATA=%i/data/RadiativeDecay%{radiativeDecayVersion}" >> G4BuildConf.sh
49   echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh
50 + echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh
51   echo "export NeutronHPCrossSections=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
52  
53   # export G4LIB_BUILD_STATIC=1
# Line 75 | Line 81 | echo "export G4VIS_BUILD_DAWNFILE_DRIVER
81   source G4BuildConf.sh
82   mkdir -p %i
83   tar -cf - config source | tar -C %i -xf -
84 +
85   make %makeprocesses -C $G4BASE all
86   make %makeprocesses -C $G4BASE includes
87   make %makeprocesses -C $G4BASE
# Line 82 | Line 89 | make %makeprocesses -C $G4BASE global
89   make %makeprocesses -C $G4BASE
90  
91   %install
92 + case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
93   mkdir -p %i/etc
94   cp G4BuildConf.sh %i/etc
95 < mv %i/lib/$(uname)-g++/*.so %i/lib
95 > mv %i/lib/$(uname)-g++/*.$so %i/lib
96   mv %i/lib/$(uname)-g++/libname.map %i/lib
97   rm -rf %i/lib/$(uname)-g++
98   # Build already installed into prefix
# Line 93 | Line 101 | tar -C %i/data -zxvf %_sourcedir/G4NDL*.
101   tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
102   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
103   tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz
104 < mkdir -p %i/share
97 < cp -r physics_lists  %i/share
104 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines