]>
Commit | Line | Data |
---|---|---|
e2bab32d AM |
1 | # TODO: |
2 | # - atlas, lapack support | |
3 | # - rework files | |
4 | %define module scipy | |
5 | Summary: A library of scientific tools | |
6 | Name: python-%{module} | |
7 | Version: 0.3.2 | |
8 | Release: 1 | |
9 | License: BSD | |
10 | Group: Development/Languages/Python | |
11 | Source0: http://www.scipy.org/download/scipy/src/SciPy_complete-%{version}.tar.gz | |
12 | # Source0-md5: 5ae2280ab2c4c653cb0ff8479e81284a | |
13 | URL: http://www.scipy.org/ | |
14 | BuildRequires: python | |
15 | BuildRequires: f2py | |
16 | BuildRequires: python-devel >= 1:2.3 | |
17 | BuildRequires: python-numpy-devel | |
18 | BuildRequires: gcc-g77 | |
19 | BuildRequires: X11-devel | |
20 | %pyrequires_eq python-modules | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | SciPy is an open source library of scientific tools for Python. SciPy | |
25 | supplements the popular Numeric module, gathering a variety of high | |
26 | level science and engineering modules together as a single package. | |
27 | ||
28 | %prep | |
29 | %setup -q -n SciPy_complete-%{version} | |
30 | ||
31 | %build | |
32 | CFLAGS="%{rpmcflags}" | |
33 | export CFLAGS | |
34 | python setup.py build | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | python setup.py install \ | |
40 | --root=$RPM_BUILD_ROOT \ | |
41 | --optimize=2 | |
42 | ||
43 | find $RPM_BUILD_ROOT%{py_sitedir} -name '*.py' | \ | |
44 | grep -v examples | \ | |
45 | xargs rm | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc DEVELOPERS.txt THANKS.txt | |
53 | %dir %{py_sitedir}/* | |
54 | %{py_sitedir}/*/* |