22 |
|
|
23 |
|
%build |
24 |
|
%install |
25 |
< |
python setup.py -h |
26 |
< |
python setup.py config_fc --fcompiler=gfortran config_cc install --prefix=%i |
25 |
> |
case %cmsos in |
26 |
> |
osx*) SONAME=dylib ;; |
27 |
> |
*) SONAME=so ;; |
28 |
> |
esac |
29 |
> |
|
30 |
> |
LAPACK=$LAPACK_ROOT/lib/liblapack.$SONAME |
31 |
> |
BLAS=$LAPACK_ROOT/lib/libblas.$SONAME |
32 |
> |
|
33 |
> |
LAPACK=$LAPACK BLAS=$BLAS python setup.py config_fc --fcompiler=gfortran config_cc install --prefix=%i |
34 |
|
perl -p -i -e "s|^#!.*python(.*)|#!/usr/bin/env python$1|" `grep -r -e "#\!.*python" %i | cut -d: -f1` |
35 |
|
|