2006-02-04 05:46:41 +00:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2006-09-05 20:36:23 +00:00
|
|
|
# eval to 2.3 if python isn't yet present, workaround for no python in fc4 minimal buildroot
|
|
|
|
%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}
|
2006-02-04 05:46:41 +00:00
|
|
|
|
|
|
|
Name: numpy
|
2006-12-13 18:12:41 +00:00
|
|
|
Version: 1.0.1
|
2007-04-17 15:29:10 +00:00
|
|
|
Release: 4%{?dist}
|
2006-02-04 05:46:41 +00:00
|
|
|
Summary: A fast multidimensional array facility for Python
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
License: BSD
|
|
|
|
URL: http://numeric.scipy.org/
|
|
|
|
Source0: http://dl.sourceforge.net/numpy/%{name}-%{version}.tar.gz
|
2007-01-04 16:39:26 +00:00
|
|
|
Patch0: numpy-1.0.1-f2py.patch
|
2006-10-25 21:55:43 +00:00
|
|
|
Patch1: numpy-1.0-gfortran.patch
|
2007-02-23 22:17:05 +00:00
|
|
|
Patch2: numpy-1.0.1-cpuinfo.patch
|
2006-02-04 05:46:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: python-devel atlas-devel blas-devel lapack-devel python-setuptools gcc-gfortran
|
|
|
|
|
2007-01-04 16:39:26 +00:00
|
|
|
Provides: f2py
|
2007-01-04 19:45:57 +00:00
|
|
|
Obsoletes: f2py <= 2.45.241_1927
|
2007-01-04 16:39:26 +00:00
|
|
|
|
2006-02-04 05:46:41 +00:00
|
|
|
%description
|
2006-12-13 18:12:41 +00:00
|
|
|
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.
|
2006-02-04 05:46:41 +00:00
|
|
|
|
2006-12-13 18:12:41 +00:00
|
|
|
There are also basic facilities for discrete fourier transform,
|
|
|
|
basic linear algebra and random number generation. Also included in
|
|
|
|
this package is a version of f2py that works properly with NumPy.
|
2006-02-04 05:46:41 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-01-04 16:39:26 +00:00
|
|
|
%patch0 -p1 -b .f2py
|
2006-02-04 05:46:41 +00:00
|
|
|
%patch1 -p1 -b .gfortran
|
2007-02-23 22:17:05 +00:00
|
|
|
%patch2 -p1 -b .cpuinfo
|
2006-02-04 05:46:41 +00:00
|
|
|
|
|
|
|
%build
|
2006-12-13 18:12:41 +00:00
|
|
|
env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
|
2006-09-05 20:36:23 +00:00
|
|
|
LAPACK=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" \
|
2006-12-13 18:12:41 +00:00
|
|
|
%{__python} setup.py build
|
2006-02-04 05:46:41 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-10-25 21:55:43 +00:00
|
|
|
#%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
# skip-build currently broken, this works around it for now
|
2006-12-13 18:12:41 +00:00
|
|
|
env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
|
2006-10-25 21:55:43 +00:00
|
|
|
LAPACK=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
%{__python} setup.py install --root $RPM_BUILD_ROOT
|
2006-02-04 05:46:41 +00:00
|
|
|
rm -rf docs-f2py ; mv $RPM_BUILD_ROOT%{python_sitearch}/%{name}/f2py/docs docs-f2py
|
|
|
|
mv -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/f2py/f2py.1 f2py.1
|
|
|
|
rm -rf doc ; mv -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/doc .
|
2007-01-04 16:39:26 +00:00
|
|
|
install -D -p -m 0644 f2py.1 $RPM_BUILD_ROOT%{_mandir}/man1/f2py.1
|
2006-02-04 05:46:41 +00:00
|
|
|
pushd $RPM_BUILD_ROOT%{_bindir} &> /dev/null
|
2007-01-04 16:39:26 +00:00
|
|
|
# symlink for anyone who was using f2py.numpy
|
|
|
|
ln -s f2py f2py.numpy
|
2006-02-04 05:46:41 +00:00
|
|
|
popd &> /dev/null
|
|
|
|
|
|
|
|
%check ||:
|
|
|
|
pushd doc &> /dev/null
|
|
|
|
PYTHONPATH="$RPM_BUILD_ROOT%{python_sitearch}" %{__python} -c "import pkg_resources, numpy ; numpy.test(1, 1)"
|
|
|
|
popd &> /dev/null
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc docs-f2py doc/* LICENSE.txt
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{python_sitearch}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2007-04-17 15:29:10 +00:00
|
|
|
* Tue Apr 17 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-4
|
|
|
|
- Update gfortran patch to recognize latest gfortran f95 support
|
|
|
|
- Resolves rhbz#236444
|
|
|
|
|
2007-02-23 22:17:05 +00:00
|
|
|
* Fri Feb 23 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-3
|
|
|
|
- Fix up cpuinfo bug (#229753). Upstream bug/change:
|
|
|
|
http://projects.scipy.org/scipy/scipy/ticket/349
|
|
|
|
|
2007-01-04 16:39:26 +00:00
|
|
|
* Thu Jan 04 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-2
|
|
|
|
- Per discussion w/Jose Matos, Obsolete/Provide f2py, as the
|
|
|
|
stand-alone one is no longer supported/maintained upstream
|
|
|
|
|
2006-12-13 18:12:41 +00:00
|
|
|
* Wed Dec 13 2006 Jarod Wilson <jwilson@redhat.com> 1.0.1-1
|
2006-12-13 18:15:11 +00:00
|
|
|
- New upstream release
|
2006-12-13 05:33:21 +00:00
|
|
|
|
2006-12-12 14:25:06 +00:00
|
|
|
* Tue Dec 12 2006 Jarod Wilson <jwilson@redhat.com> 1.0-2
|
|
|
|
- Rebuild for python 2.5
|
|
|
|
|
2006-10-25 21:55:43 +00:00
|
|
|
* Wed Oct 25 2006 Jarod Wilson <jwilson@redhat.com> 1.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
2006-09-05 20:36:23 +00:00
|
|
|
* Tue Sep 06 2006 Jarod Wilson <jwilson@redhat.com> 0.9.8-1
|
|
|
|
- New upstream release
|
|
|
|
|
2006-04-27 00:47:34 +00:00
|
|
|
* Wed Apr 26 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.6-1
|
|
|
|
- Upstream update
|
|
|
|
|
2006-02-17 01:08:01 +00:00
|
|
|
* Thu Feb 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.5-1
|
|
|
|
- Upstream update
|
|
|
|
|
2006-02-14 05:02:36 +00:00
|
|
|
* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.4-2
|
|
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
|
2006-02-04 05:46:41 +00:00
|
|
|
* Thu Feb 2 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.4-1
|
|
|
|
- Initial RPM release
|
2006-02-04 19:22:38 +00:00
|
|
|
- Added gfortran patch from Neal Becker
|