4 |
|
Requires: gsl |
5 |
|
Requires: hepmc |
6 |
|
|
7 |
+ |
Patch0: herwigpp-2.2.0-gfortran |
8 |
|
|
9 |
|
%prep |
10 |
|
%setup -q -n Herwig++-%{realversion} |
11 |
+ |
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")) |
12 |
+ |
%patch0 -p1 |
13 |
+ |
%endif |
14 |
|
./configure --with-hepmc=$HEPMC_ROOT --with-gsl=$GSL_ROOT --with-thepeg=$THEPEG_ROOT --prefix=%i CXXFLAGS="-O2 -fuse-cxa-atexit" |
15 |
|
|
16 |
|
%build |
32 |
|
<Environment name=LIBDIR default="$HERWIGPP_BASE/lib"></Environment> |
33 |
|
<Environment name=INCLUDE default="$HERWIGPP_BASE/include"></Environment> |
34 |
|
</Client> |
35 |
< |
<lib name=tauola> |
32 |
< |
<lib name=pretauola> |
33 |
< |
<use name=f77compiler> |
34 |
< |
<use name=pythia6> |
35 |
> |
<Runtime name=HERWIGPATH value="$HERWIGPP_BASE/share/Herwig++"> |
36 |
|
</Tool> |
37 |
|
EOF_TOOLFILE |
38 |
|
|
39 |
|
%post |
40 |
|
%{relocateConfig}etc/scram.d/%n |
41 |
+ |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/ -name HerwigDefaults.rpo -type f) |