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.27 by eulisse, Thu Sep 28 16:21:32 2006 UTC vs.
Revision 1.43 by elmer, Wed Jun 27 13:36:14 2007 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 8.1-p2cms
1 > ### RPM external geant4 8.2.p01-CMS3
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.9
# Line 17 | Line 17 | Source2: http://geant4.cern.ch/support/s
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.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
20 < Patch: geant48-pCMS2
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 + %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 81 | Line 87 | make %makeprocesses -C $G4BASE includes
87   make %makeprocesses -C $G4BASE
88   make %makeprocesses -C $G4BASE global
89   make %makeprocesses -C $G4BASE
84 make %makeprocesses -C $G4BASE/source/share/particle_lists/hadronic/Packaging
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 95 | 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
99 < cp -r physics_lists  %i/share
104 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines