%define name numpy %define version 0.9.6 %define release 1 %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') Summary: NumPy: array processing for numbers, strings, records, and objects. Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.gz Patch0: numpy-gnu95.patch License: BSD Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} Vendor: SciPy Developers Url: http://numeric.scipy.org %description NumPy is a general-purpose array-processing package designed to efficiently manipulate large multi-dimensional arrays of arbitrary records without sacrificing too much speed for small multi-dimensional arrays. NumPy is built on the Numeric code base and adds features introduced by numarray as well as an extended C-API and the ability to create arrays of arbitrary type. There are also basic facilities for discrete fourier transform, basic linear algebra and random number generation. %prep %setup %patch0 %build env CFLAGS="$RPM_OPT_FLAGS" FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 build %install python setup.py config_fc --fcompiler=gnu95 install --root=$RPM_BUILD_ROOT #--record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{python_sitearch}/numpy %{_bindir}/f2py