2012-06-07 13:39:34 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-numpy-doc
|
|
|
|
#
|
2017-01-25 21:34:53 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-06-07 13:39:34 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-11-14 08:16:14 +00:00
|
|
|
|
2016-09-17 12:34:03 +00:00
|
|
|
Name: python-numpy-doc
|
2017-04-19 16:08:20 +00:00
|
|
|
Version: 1.12.1
|
2016-09-17 12:34:03 +00:00
|
|
|
Release: 0
|
2012-06-07 13:39:34 +00:00
|
|
|
Summary: Documentation for python-numpy
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/Python
|
2016-09-17 12:34:03 +00:00
|
|
|
Url: http://www.numpy.org/
|
2017-01-25 21:34:53 +00:00
|
|
|
Source: https://pypi.io/packages/source/n/numpy/numpy-%{version}.zip
|
2014-09-10 15:02:05 +00:00
|
|
|
# PATCH-FIX-OPENSUSE numpy-buildfix.patch -- openSUSE-specific build fixes
|
2013-11-14 07:43:27 +00:00
|
|
|
Patch0: numpy-buildfix.patch
|
2014-09-10 15:02:05 +00:00
|
|
|
# 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
|
2017-04-19 16:08:20 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-matplotlib
|
|
|
|
BuildRequires: python3-numpy-devel = %{version}
|
|
|
|
BuildRequires: python3-numpydoc
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: zip
|
2017-01-25 21:34:53 +00:00
|
|
|
BuildRequires: unzip
|
2017-06-20 09:00:48 +00:00
|
|
|
%if 0%{?suse_version}
|
2017-04-19 16:08:20 +00:00
|
|
|
BuildRequires: fdupes
|
2017-06-20 09:00:48 +00:00
|
|
|
%endif
|
2017-04-19 16:08:20 +00:00
|
|
|
Provides: python2-numpy-doc = %{version}
|
|
|
|
Provides: python3-numpy-doc = %{version}
|
|
|
|
Provides: python2-numpy-doc-html = %{version}
|
|
|
|
Provides: python3-numpy-doc-html = %{version}
|
|
|
|
Provides: python2-numpy-doc-pdf = %{version}
|
|
|
|
Provides: python3-numpy-doc-pdf = %{version}
|
|
|
|
Obsoletes: python2-numpy-doc-html < %{version}
|
|
|
|
Obsoletes: python3-numpy-doc-html < %{version}
|
|
|
|
Obsoletes: python2-numpy-doc-pdf < %{version}
|
|
|
|
Obsoletes: python3-numpy-doc-pdf < %{version}
|
2016-09-17 12:34:03 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-04-19 16:08:20 +00:00
|
|
|
BuildArch: noarch
|
2012-06-07 13:39:34 +00:00
|
|
|
|
|
|
|
%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
|
2014-08-13 15:19:54 +00:00
|
|
|
%setup -q -n numpy-%{version}
|
2013-11-14 07:43:27 +00:00
|
|
|
%patch0 -p1
|
2014-02-04 20:50:23 +00:00
|
|
|
%patch1 -p1
|
2016-03-16 09:43:17 +00:00
|
|
|
# drop build date from doc to fix build-compare
|
|
|
|
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" doc/source/conf.py
|
2012-06-07 13:39:34 +00:00
|
|
|
|
2017-04-19 16:08:20 +00:00
|
|
|
|
2012-06-07 13:39:34 +00:00
|
|
|
%build
|
|
|
|
# make the documentation
|
2016-09-17 12:34:03 +00:00
|
|
|
pushd doc
|
2017-04-19 16:08:20 +00:00
|
|
|
make html PYVER=%{py3_ver}
|
2015-10-01 10:21:42 +00:00
|
|
|
popd
|
|
|
|
|
2012-06-07 13:39:34 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# install the documentation
|
2015-10-01 10:21:42 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/python-numpy/
|
2017-04-19 16:08:20 +00:00
|
|
|
cp -r doc/build/html %{buildroot}%{_docdir}/python-numpy/
|
2017-06-20 09:00:48 +00:00
|
|
|
%if 0%{?suse_version}
|
2014-08-13 15:19:54 +00:00
|
|
|
%fdupes %{buildroot}%{_docdir}/python-numpy/html/
|
2017-06-20 09:00:48 +00:00
|
|
|
%endif
|
2015-10-01 10:21:42 +00:00
|
|
|
|
2012-06-07 13:39:34 +00:00
|
|
|
|
2017-04-19 16:08:20 +00:00
|
|
|
%files
|
2012-06-07 13:39:34 +00:00
|
|
|
%defattr(-,root,root)
|
2017-04-19 16:08:20 +00:00
|
|
|
%{_docdir}/python-numpy/
|
2012-06-07 13:39:34 +00:00
|
|
|
|
|
|
|
%changelog
|