1 |
< |
### RPM external geant4 7.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.8 |
11 |
< |
%define g4EMLOWVersion 2.2 |
10 |
> |
%define g4NDLVersion 3.9 |
11 |
> |
%define g4ElasticScatteringVersion 1.1 |
12 |
> |
%define g4EMLOWVersion 4.0 |
13 |
|
%define radiativeDecayVersion 3.0 |
14 |
|
Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz |
15 |
|
Source1: http://geant4.cern.ch/support/source/G4NDL.%{g4NDLVersion}.tar.gz |
16 |
|
Source2: http://geant4.cern.ch/support/source/G4EMLOW.%{g4EMLOWVersion}.tar.gz |
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.web.cern.ch/geant4/physics_lists/geant4.6.1/lists/Packaging.tar |
20 |
< |
Patch: geant4-g4e-pCMS2 |
20 |
< |
Patch2: geant4-g4tubs-lcapture-pCMS2 |
21 |
< |
|
19 |
> |
Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz |
20 |
> |
Patch: geant482-cms1 |
21 |
|
%prep |
22 |
|
%setup -n %n.%downloadv |
23 |
|
pwd |
24 |
< |
%patch0 -p0 |
26 |
< |
%patch2 -p0 |
24 |
> |
%patch0 -p0 |
25 |
|
%build |
26 |
|
# Linux? -pthread? |
27 |
|
touch G4BuildConf.sh |
40 |
|
echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh |
41 |
|
echo "export G4RADIOACTIVEDATA=%i/data/RadiativeDecay%{radiativeDecayVersion}" >> G4BuildConf.sh |
42 |
|
echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh |
43 |
+ |
echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh |
44 |
|
echo "export NeutronHPCrossSections=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh |
45 |
|
|
46 |
|
# export G4LIB_BUILD_STATIC=1 |
74 |
|
source G4BuildConf.sh |
75 |
|
mkdir -p %i |
76 |
|
tar -cf - config source | tar -C %i -xf - |
77 |
+ |
|
78 |
|
make %makeprocesses -C $G4BASE all |
79 |
|
make %makeprocesses -C $G4BASE includes |
80 |
|
make %makeprocesses -C $G4BASE |
93 |
|
tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz |
94 |
|
tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz |
95 |
|
tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz |
96 |
< |
mkdir -p %i/share |
97 |
< |
cp -r physics_lists %i/share |
96 |
> |
# |