1 |
< |
### RPM external geant4 7.1 |
1 |
> |
### RPM external geant4 7.1-p1cms |
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} |
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 |
20 |
|
|
21 |
|
%prep |
22 |
< |
%setup -n %n.%v |
23 |
< |
%ifos darwin |
21 |
< |
#patch0 -p1 |
22 |
< |
#%patch1 |
23 |
< |
%endif |
22 |
> |
%setup -n %n.%downloadv |
23 |
> |
%patch0 -p7 |
24 |
|
|
25 |
|
%build |
26 |
|
# Linux? -pthread? |
86 |
|
tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz |
87 |
|
tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz |
88 |
|
tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz |
89 |
+ |
mkdir -p %i/share |
90 |
+ |
cp -r physics_lists %i/share |