1 |
< |
### RPM external geant4 7.1 |
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/%{photonEvaportationVersion} |
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> |
8 |
|
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 |
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-pCMS2 |
20 |
|
|
21 |
|
%prep |
22 |
< |
%setup -n %n.%v |
23 |
< |
%ifos darwin |
21 |
< |
#patch0 -p1 |
22 |
< |
#%patch1 |
23 |
< |
%endif |
24 |
< |
|
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 |
72 |
|
tar -cf - config source | tar -C %i -xf - |
73 |
|
make %makeprocesses -C $G4BASE all |
74 |
|
make %makeprocesses -C $G4BASE includes |
75 |
+ |
make %makeprocesses -C $G4BASE |
76 |
|
make %makeprocesses -C $G4BASE global |
77 |
+ |
make %makeprocesses -C $G4BASE |
78 |
|
|
79 |
|
%install |
80 |
|
mkdir -p %i/etc |
81 |
|
cp G4BuildConf.sh %i/etc |
82 |
+ |
mv %i/lib/$(uname)-g++/*.so %i/lib |
83 |
+ |
mv %i/lib/$(uname)-g++/libname.map %i/lib |
84 |
+ |
rm -rf %i/lib/$(uname)-g++ |
85 |
|
# Build already installed into prefix |
86 |
|
mkdir -p %i/data |
87 |
|
tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz |
88 |
|
tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz |
89 |
|
tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz |
90 |
|
tar -C %i/data -zxvf %_sourcedir/Rad*.tar.gz |
91 |
+ |
mkdir -p %i/share |
92 |
+ |
cp -r physics_lists %i/share |