1 |
< |
### RPM external geant4 9.1-dbg-global |
1 |
> |
### RPM external geant4 9.1.p01-CMS1 |
2 |
|
%define downloadv %(echo %v | cut -d- -f1) |
3 |
< |
# Special distribution for local validation at FNAL: see comments below. |
4 |
< |
Provides: /bin/awk |
3 |
> |
|
4 |
|
Requires: clhep |
5 |
|
|
6 |
|
%define photonEvaporationVersion 2.0 |
16 |
|
Source4: http://geant4.cern.ch/support/source/G4RadioactiveDecay.%{radioactiveDecayVersion}.tar.gz |
17 |
|
Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz |
18 |
|
|
19 |
< |
#Patch: geant-4.8.2.p01-nobanner |
19 |
> |
Patch: geant-4.8.2.p01-nobanner |
20 |
|
|
21 |
|
%prep |
22 |
|
%setup -n %n.%downloadv |
23 |
|
pwd |
24 |
< |
|
26 |
< |
# ONLY for Fermilab tests ! |
27 |
< |
# Add -g option to keep debug symbols: |
28 |
< |
cp -p config/sys/Linux-g++.gmk config/sys/Linux-g++.gmk.orig |
29 |
< |
perl -i -p -e '{s| -O2| -O2 -g|}' config/sys/Linux-g++.gmk |
24 |
> |
%patch0 -p1 |
25 |
|
|
26 |
|
%build |
27 |
|
if [ $(uname) = Darwin ]; then |
87 |
|
mkdir -p %i |
88 |
|
tar -cf - config source | tar -C %i -xf - |
89 |
|
|
90 |
< |
make %makeprocesses -C $G4BASE global |
91 |
< |
make %makeprocesses -C $G4BASE includes |
90 |
> |
make -C $G4BASE global |
91 |
> |
make -C $G4BASE includes |
92 |
|
|
93 |
|
%install |
94 |
|
case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac |