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.24 by eulisse, Mon Sep 25 08:52:12 2006 UTC vs.
Revision 1.40 by elmer, Sun May 13 15:08:00 2007 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 8.1-p2cms
1 > ### RPM external geant4 8.2.p01-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}
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
21 <
20 > Patch: geant482-cms1
21   %prep
22   %setup -n %n.%downloadv
23   pwd
24   %patch0 -p0
25   %build
26 + if [ $(uname) = Darwin ]; then
27 +  export MACOSX_DEPLOYMENT_TARGET="10.4"
28 + fi
29   # Linux? -pthread?
30   touch G4BuildConf.sh
31   echo "export OS_ARCH=%{cmsplatf}" >> G4BuildConf.sh
# Line 75 | Line 77 | echo "export G4VIS_BUILD_DAWNFILE_DRIVER
77   source G4BuildConf.sh
78   mkdir -p %i
79   tar -cf - config source | tar -C %i -xf -
80 +
81   make %makeprocesses -C $G4BASE all
82   make %makeprocesses -C $G4BASE includes
83   make %makeprocesses -C $G4BASE
84   make %makeprocesses -C $G4BASE global
85   make %makeprocesses -C $G4BASE
83 (cd geant4e ; make %makeprocesses -C $G4BASE)
86  
87   %install
88 + case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
89   mkdir -p %i/etc
90   cp G4BuildConf.sh %i/etc
91 < mv %i/lib/$(uname)-g++/*.so %i/lib
91 > mv %i/lib/$(uname)-g++/*.$so %i/lib
92   mv %i/lib/$(uname)-g++/libname.map %i/lib
93   rm -rf %i/lib/$(uname)-g++
94   # Build already installed into prefix
# Line 94 | Line 97 | tar -C %i/data -zxvf %_sourcedir/G4NDL*.
97   tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
98   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
99   tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz
100 < mkdir -p %i/share
98 < cp -r physics_lists  %i/share
100 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines