5 |
|
Requires: lhapdf pythia6 |
6 |
|
%prep |
7 |
|
|
8 |
– |
case %gccver in |
9 |
– |
4.*) |
10 |
– |
export F77=gfortran |
11 |
– |
;; |
12 |
– |
esac |
13 |
– |
|
8 |
|
%setup -q -n %{n}/%{realversion} |
9 |
|
%patch0 -p2 |
10 |
|
|
11 |
< |
export PYTHIA="$PYTHIA6_ROOT" |
12 |
< |
export LHAPDF="$LHAPDF_ROOT" |
11 |
> |
# Notice that cascade expects a flat pythia installation, |
12 |
> |
# where libraries and headers are all in the same place. |
13 |
> |
# Since the source code is not actually needed, we point |
14 |
> |
# it to the library location so that it links correctly. |
15 |
> |
PYTHIA="$PYTHIA6_ROOT/lib" |
16 |
> |
LHAPDF="$LHAPDF_ROOT" |
17 |
|
|
18 |
< |
./configure --enable-shared --with-hepevt=4000 --prefix=%i |
18 |
> |
PYTHIA=$PYTHIA LHAPDF=$LHAPDF ./configure --enable-shared --with-hepevt=4000 --prefix=%i F77=`which gfortran` |
19 |
|
|
20 |
|
%build |
21 |
|
make %makeprocesses |