File python3-numpy-doc.spec of Package python3-numpy
#
# spec file for package python3-numpy-doc
#
# 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-numpy-doc
Version: 1.9.3
Release: 0
Url: http://www.numpy.org/
Summary: Documentation for python3-numpy
License: BSD-3-Clause
Group: Development/Libraries/Python
Source: https://pypi.python.org/packages/source/n/numpy/numpy-%{version}.tar.gz
# PATCH-FIX-OPENSUSE numpy-buildfix.patch -- openSUSE-specific build fixes
Patch0: numpy-buildfix.patch
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure
Patch1: numpy-1.9.0-remove-__declspec.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-Sphinx
BuildRequires: python3-devel
BuildRequires: python3-doc
BuildRequires: python3-matplotlib
BuildRequires: python3-numpy-devel
BuildRequires: python3-numpydoc
BuildRequires: python3-pyparsing
BuildArch: noarch
Recommends: python3-numpy
Provides: python3-numpy-doc-html = 1.7.1
Obsoletes: python3-numpy-doc-html < 1.7.1
Provides: python3-numpy-doc-pdf = 1.7.1
Obsoletes: python3-numpy-doc-pdf < 1.7.1
%description
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 which also makes NumPy suitable for
interfacing with general-purpose data-base applications.
There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation.
This package provides the documentation for NumPy
%prep
%setup -q -n numpy-%{version}
%patch0 -p1
%patch1 -p1
# Patch in intersphinx file from pytho3-doc:
sed -i "s|'http://docs.python.org/dev': None|'http://docs.python.org/dev': '/usr/share/doc/packages/python3/html/objects.inv'|" doc/source/conf.py
# Avoid autosummary extensions, summaries are incomplete and it would fail:
sed -i "s|, 'sphinx.ext.autosummary'||" doc/source/conf.py
%build
cd doc
2to3 -wvn .
make html PYVER=%{py3_ver}
%install
%files
%defattr(-,root,root)
%doc doc/build/html
%changelog