python-pandas/python-pandas-doc.spec

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-pandas-doc
#
# Copyright (c) 2017 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pandas-doc
Version: 0.21.0
Release: 0
Summary: Documentation for python-pandas
License: BSD-3-Clause
Group: Documentation/HTML
Url: http://pandas.pydata.org/
Source0: https://files.pythonhosted.org/packages/source/p/pandas/pandas-%{version}.tar.gz
BuildRequires: %{python_module pandas = %{version}}
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRequires: python3-devel
BuildRequires: python3-jupyter_client
BuildRequires: python3-jupyter_ipykernel
BuildRequires: python3-jupyter_nbconvert
BuildRequires: python3-jupyter_nbformat
BuildRequires: python3-jupyter_nbsphinx
BuildRequires: python3-matplotlib
BuildRequires: python3-numpy-devel >= 1.7.1
BuildRequires: python3-python-dateutil >= 1.5
BuildRequires: python3-pytz
BuildRequires: python3-scipy
BuildRequires: python3-setuptools
Provides: %{python_module pandas-doc = %{version}}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Documentation, help files, and examples for python3-pandas.
%prep
%setup -q -n pandas-%{version}
%build
python3 setup.py build_ext --inplace
pushd doc
python3 make.py html
popd
%install
mkdir -p %{buildroot}%{_docdir}/python-pandas
cp -r doc/build/html %{buildroot}%{_docdir}/python-pandas/
%files
%defattr(-,root,root)
%doc LICENSE
%{_docdir}/python-pandas/
%changelog