numpy.spec revision 12542
#
# spec file for package numpy
#
# includes module(s): numpy
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: laca
# bugdb: http://projects.scipy.org/scipy/numpy/report
#
%define pythonver 2.4
Name: numpy
License: BSD
Group: Development/Languages/Python
Version: 1.0.4
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Python XML module
Source: http://easynews.dl.sourceforge.net/sourceforge/numpy/numpy-%{version}.tar.gz
URL: http://numpy.scipy.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
Autoreqprov: off
Prereq: /sbin/ldconfig
Requires: python >= %{pythonver}
BuildRequires: python-devel >= %{pythonver}
%description
Numerical processing extensions to the python programming language.
%prep
%setup -q -n numpy-%{version}
%install
python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
# move to vendor-packages
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_bindir}
%{_libdir}/python?.?/vendor-packages
%changelog
* Thu Oct 25 2007 - brian.cameron@sun.com
- Initial version. Based on the spec-files-extra SFEpython-numpy.spec
file written by Ananth Shrinivas <ananth@sun.com> on Sep 02 2007.