1 |
### RPM external py2-scipy 0.5.1
|
2 |
Requires: gcc-wrapper
|
3 |
## INITENV +PATH PYTHONPATH %i/lib/python$(echo $PYTHON_VERSION | cut -d. -f 1,2)/site-packages
|
4 |
%define downloadn scipy
|
5 |
Source: http://switch.dl.sourceforge.net/sourceforge/%downloadn/%downloadn-%v.tar.gz
|
6 |
Requires: python
|
7 |
Requires: py2-numpy
|
8 |
Requires: atlas
|
9 |
%prep
|
10 |
%setup -n %downloadn-%v
|
11 |
|
12 |
cat > site.cfg <<EOF
|
13 |
[atlas]
|
14 |
include_dirs = $ATLAS_ROOT/include
|
15 |
library_dirs = $ATLAS_ROOT/lib
|
16 |
atlas_libs = ptf77blas, ptcblas
|
17 |
lapack_libs = lapack_atlas
|
18 |
EOF
|
19 |
|
20 |
%build
|
21 |
## IMPORT gcc-wrapper
|
22 |
%install
|
23 |
python setup.py install --prefix=%i
|
24 |
perl -p -i -e "s|^#!.*python(.*)|#!/usr/bin/env python$1|" `grep -r -e "#\!.*python" %i | cut -d: -f1`
|