%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{?filter_setup: %filter_provides_in %{python_sitearch}.*\.so$ %filter_setup } Name: python-pandas Version: 0.8.1 Release: 2%{?dist} Summary: Python library providing high-performance data analysis tools Group: Development/Languages License: BSD URL: http://pandas.pydata.org/ Source0: http://pypi.python.org/packages/source/p/pandas/pandas-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, python-setuptools-devel, python-matplotlib Requires: pytz Requires: python-dateutil Requires: python-numpy Requires: scipy %description pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language. %prep %setup -q -n pandas-%{version} sed -i -e "s|#!/usr/bin/env python||" pandas/setup.py %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %check PYTHONPATH=`pwd`/build/lib.linux-x86_64-2.7/ python pandas/tests/test_index.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc PKG-INFO README.rst LICENSE %{python_sitearch}/pandas* %changelog * Fri Aug 03 2012 Kushal Das 0.8.1-2 - Fixes from review request * Tue Jul 10 2012 Kushal Das 0.8.1-1 - Initial release in Fedora