1 |
|
### RPM external pythia8 070 |
2 |
< |
Requires: gcc-wrapper |
3 |
< |
%define gccwrapperarch slc4_ia32_gcc345 |
2 |
> |
Requires: hepmc |
3 |
> |
Requires: clhep |
4 |
> |
Requires: pythia6 |
5 |
|
%define realversion %(echo %v | cut -d- -f1 ) |
6 |
|
Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz |
7 |
|
%prep |
8 |
|
%setup -q -n %{n}/%{realversion} |
9 |
< |
./configure |
9 |
> |
|
10 |
> |
export PYTHIA6LOCATION=${PYTHIA6_ROOT} |
11 |
> |
export PYTHIA6VERSION=${PYTHIA6_VERSION} |
12 |
> |
export HEPMCLOCATION=${HEPMC_ROOT} |
13 |
> |
export HEPMCVERSION=${HEPMC_VERSION} |
14 |
> |
export CLHEPLOCATION=${CLHEP_ROOT} |
15 |
> |
export CLHEPVERSION=${CLHEP_VERSION} |
16 |
> |
./configure |
17 |
|
|
18 |
|
%build |
11 |
– |
%if "%{cmsplatf}" == "%{gccwrapperarch}" |
12 |
– |
echo "Using gcc wrapper for %cmsplatf" |
13 |
– |
source $GCC_WRAPPER_ROOT/etc/profile.d/init.sh |
14 |
– |
%endif |
19 |
|
make |
20 |
|
|
21 |
|
%install |