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.10 by eulisse, Wed Jun 14 20:00:35 2006 UTC vs.
Revision 1.16 by sashby, Tue Jun 27 17:22:42 2006 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 7.1p1cms
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
# Line 18 | Line 19 | Source5: http://geant4.web.cern.ch/geant
19   Patch: geant4-g4e-and-g4tubs
20  
21   %prep
22 < %setup -n %n.%v
23 < %ifos darwin
23 < patch0 -p7
24 < #%patch1
25 < %endif
26 <
22 > %setup -n %n.%downloadv
23 > %patch -p7
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 82 | Line 79 | make %makeprocesses -C $G4BASE
79   %install
80   mkdir -p %i/etc
81   cp G4BuildConf.sh %i/etc
82 + cp %i/lib/$(uname)-g++/*.so %i/lib
83 + cp %i/lib/$(uname)-g++/libname.map %i/lib
84   # Build already installed into prefix
85   mkdir -p %i/data
86   tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines