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
|
2010-06-25 08:31:45 +00:00
|
|
|
Version: 1.4.1
|
|
|
|
Release: 1%{?dist}
|
2010-04-09 12:44:56 +00:00
|
|
|
Epoch: 1
|
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/
|
2009-04-07 16:19:56 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/numpy/%{name}-%{version}.tar.gz
|
2007-01-04 16:39:26 +00:00
|
|
|
Patch0: numpy-1.0.1-f2py.patch
|
2010-06-25 08:31:45 +00:00
|
|
|
Patch1: numpy_doublefree.patch
|
2006-02-04 05:46:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2010-02-16 17:36:48 +00:00
|
|
|
BuildRequires: python-devel lapack-devel python-setuptools gcc-gfortran atlas-devel python-nose
|
|
|
|
Requires: python-nose
|
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
|
|
|
|
2009-04-14 16:23:51 +00:00
|
|
|
%package f2py
|
|
|
|
Summary: f2py for numpy
|
|
|
|
Group: Development/Libraries
|
2010-04-09 12:44:56 +00:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2009-04-14 16:23:51 +00:00
|
|
|
Requires: python-devel
|
|
|
|
Provides: f2py
|
|
|
|
Obsoletes: f2py <= 2.45.241_1927
|
|
|
|
|
|
|
|
%description f2py
|
|
|
|
This package includes a version of f2py that works properly with NumPy.
|
|
|
|
|
2006-02-04 05:46:41 +00:00
|
|
|
%prep
|
2009-04-07 16:19:56 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2007-01-04 16:39:26 +00:00
|
|
|
%patch0 -p1 -b .f2py
|
2010-06-25 08:31:45 +00:00
|
|
|
%patch1 -p0
|
2006-02-04 05:46:41 +00:00
|
|
|
|
|
|
|
%build
|
2008-12-19 20:46:27 +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
|
2008-12-19 20:46:27 +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
|
|
|
|
|
2010-03-02 17:55:47 +00:00
|
|
|
#symlink for includes, BZ 185079
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/include
|
|
|
|
ln -s %{python_sitearch}/%{name}/core/include/numpy/ $RPM_BUILD_ROOT/usr/include/numpy
|
|
|
|
|
2009-04-14 16:23:51 +00:00
|
|
|
# Remove doc files. They should in in %doc
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/COMPATIBILITY
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/DEV_README.txt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/INSTALL.txt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/LICENSE.txt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/README.txt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/THANKS.txt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/site.cfg.example
|
|
|
|
|
2008-05-29 15:24:31 +00:00
|
|
|
%check
|
2006-02-04 05:46:41 +00:00
|
|
|
pushd doc &> /dev/null
|
2008-10-08 13:50:24 +00:00
|
|
|
PYTHONPATH="%{buildroot}%{python_sitearch}" %{__python} -c "import pkg_resources, numpy ; numpy.test()"
|
2006-02-04 05:46:41 +00:00
|
|
|
popd &> /dev/null
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2009-04-14 16:23:51 +00:00
|
|
|
%doc docs-f2py doc/* LICENSE.txt README.txt THANKS.txt DEV_README.txt COMPATIBILITY site.cfg.example
|
|
|
|
%dir %{python_sitearch}/%{name}
|
|
|
|
%{python_sitearch}/%{name}/*.py*
|
|
|
|
%{python_sitearch}/%{name}/core
|
2010-04-26 20:31:24 +00:00
|
|
|
%{python_sitearch}/%{name}/distutils
|
2009-04-17 17:39:03 +00:00
|
|
|
%{python_sitearch}/%{name}/fft
|
2009-04-14 16:23:51 +00:00
|
|
|
%{python_sitearch}/%{name}/lib
|
2009-04-17 17:39:03 +00:00
|
|
|
%{python_sitearch}/%{name}/linalg
|
2009-04-14 16:23:51 +00:00
|
|
|
%{python_sitearch}/%{name}/ma
|
|
|
|
%{python_sitearch}/%{name}/numarray
|
|
|
|
%{python_sitearch}/%{name}/oldnumeric
|
|
|
|
%{python_sitearch}/%{name}/random
|
|
|
|
%{python_sitearch}/%{name}/testing
|
|
|
|
%{python_sitearch}/%{name}/tests
|
2010-06-25 08:31:45 +00:00
|
|
|
%{python_sitearch}/%{name}/compat
|
|
|
|
%{python_sitearch}/%{name}/matrixlib
|
|
|
|
%{python_sitearch}/%{name}/polynomial
|
2008-05-07 03:38:33 +00:00
|
|
|
%if 0%{?fedora} >= 9
|
2008-02-11 20:10:46 +00:00
|
|
|
%{python_sitearch}/%{name}-*.egg-info
|
|
|
|
%endif
|
2010-03-02 17:55:47 +00:00
|
|
|
%{_includedir}/numpy
|
2006-02-04 05:46:41 +00:00
|
|
|
|
2009-04-14 16:23:51 +00:00
|
|
|
%files f2py
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_bindir}/f2py
|
|
|
|
%{_bindir}/f2py.numpy
|
|
|
|
%{python_sitearch}/%{name}/f2py
|
2009-04-17 17:39:03 +00:00
|
|
|
|
2009-04-14 16:23:51 +00:00
|
|
|
|
2006-02-04 05:46:41 +00:00
|
|
|
%changelog
|
2010-06-25 08:31:45 +00:00
|
|
|
* Thu Jun 24 2010 Jef Spaleta <jspaleta@fedoraprject.org> 1.4.1-1
|
|
|
|
- New upstream release. Include backported doublefree patch
|
|
|
|
|
2010-04-26 20:31:24 +00:00
|
|
|
* Mon Apr 26 2010 Jon Ciesla <limb@jcomserv.net> 1.3.0-8
|
|
|
|
- Moved distutils back to the main package, BZ 572820.
|
|
|
|
|
2010-04-09 12:44:56 +00:00
|
|
|
* Thu Apr 08 2010 Jon Ciesla <limb@jcomserv.net> 1.3.0-7
|
|
|
|
- Reverted to 1.3.0 after upstream pulled 1.4.0, BZ 579065.
|
|
|
|
|
2010-03-02 17:55:47 +00:00
|
|
|
* Tue Mar 02 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-5
|
|
|
|
- Linking /usr/include/numpy to .h files, BZ 185079.
|
|
|
|
|
2010-02-16 17:36:48 +00:00
|
|
|
* Tue Feb 16 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-4
|
|
|
|
- Re-enabling atlas BR, dropping lapack Requires.
|
|
|
|
|
2010-02-10 14:11:38 +00:00
|
|
|
* Wed Feb 10 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-3
|
|
|
|
- Since the previous didn't work, Requiring lapack.
|
|
|
|
|
2010-02-09 14:41:31 +00:00
|
|
|
* Tue Feb 09 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-2
|
|
|
|
- Temporarily dropping atlas BR to work around 562577.
|
|
|
|
|
2010-01-22 23:17:07 +00:00
|
|
|
* Fri Jan 22 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-1
|
|
|
|
- 1.4.0.
|
|
|
|
- Dropped ARM patch, ARM support added upstream.
|
|
|
|
|
2009-11-17 15:15:33 +00:00
|
|
|
* Tue Nov 17 2009 Jitesh Shah <jiteshs@marvell.com> - 1.3.0-6.fa1
|
|
|
|
- Add ARM support
|
|
|
|
|
2009-07-25 19:42:01 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-11 19:21:24 +00:00
|
|
|
* Thu Jun 11 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-5
|
|
|
|
- Fixed atlas BR, BZ 505376.
|
|
|
|
|
2009-04-17 18:17:14 +00:00
|
|
|
* Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-4
|
|
|
|
- EVR bump for pygame chainbuild.
|
|
|
|
|
2009-04-17 17:39:03 +00:00
|
|
|
* Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-3
|
|
|
|
- Moved linalg, fft back to main package.
|
|
|
|
|
2009-04-14 16:23:51 +00:00
|
|
|
* Tue Apr 14 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-2
|
|
|
|
- Split out f2py into subpackage, thanks Peter Robinson pbrobinson@gmail.com.
|
|
|
|
|
2009-04-07 16:19:56 +00:00
|
|
|
* Tue Apr 07 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-1
|
|
|
|
- Update to latest upstream.
|
|
|
|
- Fixed Source0 URL.
|
|
|
|
|
2009-04-02 19:33:29 +00:00
|
|
|
* Thu Apr 02 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-0.rc1
|
|
|
|
- Update to latest upstream.
|
|
|
|
|
2009-03-05 14:13:32 +00:00
|
|
|
* Thu Mar 05 2009 Jon Ciesla <limb@jcomserv.net> 1.2.1-3
|
|
|
|
- Require python-devel, BZ 488464.
|
|
|
|
|
2009-02-26 06:25:40 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-19 20:46:27 +00:00
|
|
|
* Fri Dec 19 2008 Jon Ciesla <limb@jcomserv.net> 1.2.1-1
|
|
|
|
- Update to 1.2.1.
|
2008-12-16 05:25:34 +00:00
|
|
|
|
2008-11-29 16:55:44 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.0-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-10-08 13:50:24 +00:00
|
|
|
* Tue Oct 07 2008 Jon Ciesla <limb@jcomserv.net> 1.2.0-1
|
|
|
|
- New upstream release, added python-nose BR. BZ 465999.
|
|
|
|
- Using atlas blas, not blas-devel. BZ 461472.
|
|
|
|
|
2008-08-06 16:43:27 +00:00
|
|
|
* Wed Aug 06 2008 Jon Ciesla <limb@jcomserv.net> 1.1.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-05-29 15:02:07 +00:00
|
|
|
* Thu May 29 2008 Jarod Wilson <jwilson@redhat.com> 1.1.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-05-07 03:22:06 +00:00
|
|
|
* Tue May 06 2008 Jarod Wilson <jwilson@redhat.com> 1.0.4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-02-11 20:10:46 +00:00
|
|
|
* Mon Feb 11 2008 Jarod Wilson <jwilson@redhat.com> 1.0.3.1-2
|
|
|
|
- Add python egg to %%files on f9+
|
|
|
|
|
2007-08-22 15:03:20 +00:00
|
|
|
* Wed Aug 22 2007 Jarod Wilson <jwilson@redhat.com> 1.0.3.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-06-06 14:18:31 +00:00
|
|
|
* Wed Jun 06 2007 Jarod Wilson <jwilson@redhat.com> 1.0.3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-05-14 18:29:44 +00:00
|
|
|
* Mon May 14 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-2
|
|
|
|
- Drop BR: atlas-devel, since it just provides binary-compat
|
|
|
|
blas and lapack libs. Atlas can still be optionally used
|
|
|
|
at runtime. (Note: this is all per the atlas maintainer).
|
|
|
|
|
2007-05-14 16:46:09 +00:00
|
|
|
* Mon May 14 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
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
|