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.8 by eulisse, Tue May 2 17:02:19 2006 UTC vs.
Revision 1.18 by eulisse, Wed Jun 28 14:52:16 2006 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 7.1
1 > ### RPM external geant4 7.1-p2cms
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}
# Line 9 | Line 10 | Requires: clhep
10   %define g4NDLVersion 3.8
11   %define g4EMLOWVersion 2.2
12   %define radiativeDecayVersion 3.0
13 < Source0: http://geant4.cern.ch/support/source/%n.%v.tar.gz
13 > Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
14   Source1: http://geant4.cern.ch/support/source/G4NDL.%{g4NDLVersion}.tar.gz
15   Source2: http://geant4.cern.ch/support/source/G4EMLOW.%{g4EMLOWVersion}.tar.gz
16   Source3: http://geant4.cern.ch/support/source/PhotonEvaporation.%{photonEvaporationVersion}.tar.gz
17   Source4: http://geant4.cern.ch/support/source/RadiativeDecay.%{radiativeDecayVersion}.tar.gz
18   Source5: http://geant4.web.cern.ch/geant4/physics_lists/geant4.6.1/lists/Packaging.tar
19 + Patch: geant4-g4e-and-g4tubs-pCMS2
20  
21   %prep
22 < %setup -n %n.%v
23 < %ifos darwin
22 < #patch0 -p1
23 < #%patch1
24 < %endif
25 <
22 > %setup -n %n.%downloadv
23 > %patch -p0
24   %build
25   # Linux? -pthread?
26   touch G4BuildConf.sh
27 < echo "export OS_ARCH=%{cmspatf}" >> G4BuildConf.sh
27 > echo "export OS_ARCH=%{cmsplatf}" >> G4BuildConf.sh
28   #FIXME: is this correct???
29   echo "export G4SYSTEM=$(uname)-g++" >> G4BuildConf.sh
30   echo "export G4INSTALL=%i" >> G4BuildConf.sh
# Line 81 | Line 79 | make %makeprocesses -C $G4BASE
79   %install
80   mkdir -p %i/etc
81   cp G4BuildConf.sh %i/etc
82 + mv %i/lib/$(uname)-g++/*.so %i/lib
83 + mv %i/lib/$(uname)-g++/libname.map %i/lib
84 + rm -rf %i/lib/$(uname)-g++
85   # Build already installed into prefix
86   mkdir -p %i/data
87   tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz
# Line 88 | Line 89 | tar -C %i/data -zxvf %_sourcedir/G4EMLOW
89   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
90   tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz
91   mkdir -p %i/share
92 < cp -r %_sourcedir/physics_lists  %i/share
92 > cp -r physics_lists  %i/share
93 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines