1 |
< |
### RPM external geant4 8.1-p2cms |
1 |
> |
### RPM external geant4 8.2.p01-cms1 |
2 |
> |
Requires: gcc-wrapper |
3 |
|
%define downloadv %(echo %v | cut -d- -f1) |
4 |
|
## INITENV SET G4NDL_PATH %i/data/G4NDL%{g4NDLVersion} |
5 |
|
## INITENV SET G4EMLOW_PATH %i/data/G4EMLOW%{g4EMLOWVersion} |
6 |
|
## INITENV SET PHOTON_EVAPORATION_PATH %i/data/PhotonEvaportation%{photonEvaporationVersion} |
7 |
|
## INITENV SET RADIATIVE_DECAY_PATH %i/data/RadiativeDecay%{radiativeDecayVersion} |
8 |
< |
# Build system fudging and some patches by Lassi A. Tuura <lat@iki.fi> |
8 |
> |
# Build system fudging and some patches by Lassi A. Tuura <lat@iki.fi> |
9 |
|
Requires: clhep |
10 |
|
%define photonEvaporationVersion 2.0 |
11 |
|
%define g4NDLVersion 3.9 |
18 |
|
Source3: http://geant4.cern.ch/support/source/PhotonEvaporation.%{photonEvaporationVersion}.tar.gz |
19 |
|
Source4: http://geant4.cern.ch/support/source/RadiativeDecay.%{radiativeDecayVersion}.tar.gz |
20 |
|
Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz |
21 |
< |
Patch: geant48-pCMS2 |
21 |
< |
|
21 |
> |
Patch: geant482-cms1 |
22 |
|
%prep |
23 |
|
%setup -n %n.%downloadv |
24 |
|
pwd |
25 |
|
%patch0 -p0 |
26 |
|
%build |
27 |
+ |
## IMPORT gcc-wrapper |
28 |
|
# Linux? -pthread? |
29 |
|
touch G4BuildConf.sh |
30 |
|
echo "export OS_ARCH=%{cmsplatf}" >> G4BuildConf.sh |
76 |
|
source G4BuildConf.sh |
77 |
|
mkdir -p %i |
78 |
|
tar -cf - config source | tar -C %i -xf - |
79 |
+ |
|
80 |
|
make %makeprocesses -C $G4BASE all |
81 |
|
make %makeprocesses -C $G4BASE includes |
82 |
|
make %makeprocesses -C $G4BASE |
83 |
|
make %makeprocesses -C $G4BASE global |
84 |
|
make %makeprocesses -C $G4BASE |
83 |
– |
(cd geant4e ; make %makeprocesses -C $G4BASE) |
85 |
|
|
86 |
|
%install |
87 |
|
mkdir -p %i/etc |
95 |
|
tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz |
96 |
|
tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz |
97 |
|
tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz |
98 |
< |
mkdir -p %i/share |
98 |
< |
cp -r physics_lists %i/share |
98 |
> |
# |