File python3-pandas.spec of Package python3-pandas
#
# spec file for package python3-pandas
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-pandas
Version: 0.16.2
Release: 0
Summary: Make working with "relational" or "labeled" data both easy and intuitive
License: BSD-3-Clause
Group: Development/Libraries/Python
Url: http://pandas.pydata.org/
Source0: https://pypi.python.org/packages/source/p/pandas/pandas-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python3-Bottleneck
BuildRequires: python3-Cython
BuildRequires: python3-Sphinx
BuildRequires: python3-beautifulsoup4
BuildRequires: python3-boto
BuildRequires: python3-SQLAlchemy
BuildRequires: python3-dateutil
BuildRequires: python3-devel
BuildRequires: python3-html5lib
BuildRequires: python3-lxml
BuildRequires: python3-matplotlib
BuildRequires: python3-numexpr >= 2.1
BuildRequires: python3-numpy-devel >= 1.7.0
BuildRequires: python3-openpyxl
BuildRequires: python3-pytz
BuildRequires: python3-scipy
BuildRequires: python3-setuptools
BuildRequires: python3-tables >= 3.0.0
BuildRequires: python3-xlrd
BuildRequires: python3-xlwt
Requires: python3-dateutil
Requires: python3-numpy >= 1.7.0
Requires: python3-pytz
Recommends: python3-Bottleneck
Recommends: python3-beautifulsoup4
Recommends: python3-boto
Recommends: python3-html5lib
Recommends: python3-lxml
Recommends: python3-matplotlib
Recommends: python3-numexpr >= 2.1
Recommends: python3-openpyxl
Recommends: python3-scipy
Recommends: python3-statsmodels
Recommends: python3-SQLAlchemy
Recommends: python3-statsmodels
Recommends: python3-tables >= 3.0.0
Recommends: python3-xlrd
Recommends: python3-xlwt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
pandas is a Python package providing fast, flexible, and expressive data
structures designed to make working with "relational" or "labeled" data both
easy and intuitive. It aims to be the fundamental high-level building block for
doing practical, real world data analysis in Python. Additionally, it has
the broader goal of becoming the most powerful and flexible open source data
analysis / manipulation tool available in any language.
%package doc
Summary: Documentation for %{name}
Group: Development/Libraries/Python
Recommends: %{name} = %{version}
%description doc
Documentation, help files, and examples for %{name}
%prep
%setup -q -n pandas-%{version}
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build
%install
python3 setup.py install --root %{buildroot} --prefix=%{_prefix}
pushd doc
python3 make.py html
popd
rm -r %{buildroot}%{python3_sitearch}/pandas/tests
%fdupes %{buildroot}%{python3_sitearch}
# Fix python-bytecode-inconsistent-mtime
pushd %{buildroot}%{python3_sitearch}
%py3_compile .
popd
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE doc/README.rst RELEASE.md
%{python3_sitearch}/pandas
%{python3_sitearch}/pandas-%{version}-py%{py3_ver}.egg-info
%files doc
%defattr(-,root,root)
%doc doc/build/html/
%changelog