1 |
< |
### RPM external geant4 8.1-p2.cms1 |
1 |
> |
### RPM external geant4 8.2-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.9 |
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.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz |
20 |
< |
Patch: geant48-p2-cms1 |
21 |
< |
Patch1: geant4-geant4e-GNUmakefile |
20 |
> |
Patch: geant482-cms1 |
21 |
|
%prep |
22 |
|
%setup -n %n.%downloadv |
23 |
|
pwd |
24 |
|
%patch0 -p0 |
26 |
– |
%patch1 -p0 |
25 |
|
%build |
26 |
|
# Linux? -pthread? |
27 |
|
touch G4BuildConf.sh |
80 |
|
make %makeprocesses -C $G4BASE |
81 |
|
make %makeprocesses -C $G4BASE global |
82 |
|
make %makeprocesses -C $G4BASE |
85 |
– |
make %makeprocesses -C $G4BASE/../physics_lists/hadronic/Packaging |
83 |
|
|
84 |
|
%install |
85 |
|
mkdir -p %i/etc |
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 |
99 |
– |
mkdir -p %i/share |
100 |
– |
cp -r physics_lists %i/share |
101 |
– |
ln -sf plists/$(uname)-g++/libPackaging.so %i/lib/libPackaging.so |
102 |
– |
find %{i}/share/physics_lists/hadronic/Packaging/include/ -iname *.hh | sed -e "s|.*/||" | xargs -i ln -sf ../share/physics_lists/hadronic/Packaging/include/{} %{i}/include/{} |
96 |
|
# |