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