- use pypi.io as Source URL - Don't include cblas-devel on SLES 12 - update to 1.11.1: - #7506 BUG: Make sure numpy imports on python 2.6 when nose is unavailable. - #7530 BUG: Floating exception with invalid axis in np.lexsort. - #7535 BUG: Extend glibc complex trig functions blacklist to glibc < 2.18. - #7551 BUG: Allow graceful recovery for no compiler. - #7558 BUG: Constant padding expected wrong type in constant_values. - #7578 BUG: Fix OverflowError in Python 3.x. in swig interface. - #7590 BLD: Fix configparser.InterpolationSyntaxError. - #7597 BUG: Make np.ma.take work on scalars. - #7608 BUG: linalg.norm(): Don't convert object arrays to float. - #7638 BLD: Correct C compiler customization in system_info.py. - #7654 BUG: ma.median of 1d array should return a scalar. - #7656 BLD: Remove hardcoded Intel compiler flag -xSSE4.2. - #7660 BUG: Temporary fix for str(mvoid) for object field types. - #7665 BUG: Fix incorrect printing of 1D masked arrays. - #7670 BUG: Correct initial index estimate in histogram. - #7671 BUG: Boolean assignment no GIL release when transfer needs API. - #7676 BUG: Fix handling of right edge of final histogram bin. - #7680 BUG: Fix np.clip bug NaN handling for Visual Studio 2015. - #7724 BUG: Fix segfaults in np.random.shuffle. - #7731 MAINT: Change mkl_info.dir_env_var from MKL to MKLROOT. OBS-URL: https://build.opensuse.org/request/show/426983 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=50
179 lines
6.0 KiB
RPMSpec
179 lines
6.0 KiB
RPMSpec
#
|
|
# spec file for package python-numpy-doc
|
|
#
|
|
# Copyright (c) 2016 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/
|
|
#
|
|
|
|
|
|
%define modname numpy
|
|
%define docname numpydoc
|
|
%define docvers 0.4
|
|
%if 0%{?suse_version}
|
|
%if 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
%else
|
|
BuildArch: noarch
|
|
%py_requires
|
|
%endif
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-fortran
|
|
%else
|
|
BuildRequires: gcc-gfortran
|
|
%endif
|
|
Name: python-numpy-doc
|
|
Version: 1.11.1
|
|
Release: 0
|
|
Summary: Documentation for python-numpy
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Python
|
|
Url: http://www.numpy.org/
|
|
Source: https://pypi.io/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
|
|
# PATCH-FIX-OPENSUSE numpy-1.10.4-cblas.patch -- fix for building with system cblas.
|
|
Patch2: numpy-1.10.4-cblas.patch
|
|
BuildRequires: blas-devel
|
|
BuildRequires: lapack-devel
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-matplotlib
|
|
BuildRequires: python-numpy-devel = %{version}
|
|
BuildRequires: python-numpydoc
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: zip
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
|
BuildRequires: cblas-devel
|
|
%endif
|
|
# LaTeX requirements, not available on SLES
|
|
%if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
|
|
BuildRequires: python-Sphinx-latex
|
|
BuildRequires: tex(a4wide.sty)
|
|
BuildRequires: tex(abstract.sty)
|
|
BuildRequires: tex(amsmath.sty)
|
|
BuildRequires: tex(article.cls)
|
|
BuildRequires: tex(epsfig.sty)
|
|
BuildRequires: tex(expdlist.sty)
|
|
BuildRequires: tex(verbatim.sty)
|
|
BuildRequires: tex(xspace.sty)
|
|
%endif
|
|
|
|
%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
|
|
|
|
%package html
|
|
Summary: HTML documentation for python-numpy
|
|
Group: Development/Libraries/Python
|
|
Recommends: python-numpy = %{version}
|
|
|
|
%description html
|
|
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 HTML documentation for NumPy
|
|
|
|
%package pdf
|
|
Summary: PDF documentation for python-numpy
|
|
Group: Development/Libraries/Python
|
|
Recommends: python-numpy = %{version}
|
|
|
|
%description pdf
|
|
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 PDF documentation for NumPy
|
|
|
|
%prep
|
|
%setup -q -n numpy-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
|
%patch2 -p1
|
|
%endif
|
|
# drop build date from doc to fix build-compare
|
|
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" doc/source/conf.py
|
|
|
|
%build
|
|
# make the documentation
|
|
pushd doc
|
|
make html PYVER=%{py_ver}
|
|
popd
|
|
|
|
# LaTeX building currently broken
|
|
# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
|
|
# pushd doc
|
|
# make latex PYVER=%{py_ver}
|
|
# make -C build/latex all-pdf PYVER=%{py_ver}
|
|
# popd
|
|
# %endif
|
|
|
|
%install
|
|
# install the documentation
|
|
mkdir -p %{buildroot}%{_docdir}/python-numpy/
|
|
|
|
pushd doc/build
|
|
cp -r html %{buildroot}%{_docdir}/python-numpy/
|
|
popd
|
|
%fdupes %{buildroot}%{_docdir}/python-numpy/html/
|
|
|
|
# LaTeX building currently broken
|
|
# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
|
|
# pushd doc/build
|
|
# cp -r pdf %{buildroot}%{_docdir}/python-numpy/
|
|
# popd
|
|
# %fdupes %{buildroot}%{_docdir}/python-numpy/pdf/
|
|
# %endif
|
|
|
|
%files html
|
|
%defattr(-,root,root)
|
|
%{_docdir}/python-numpy/html/
|
|
|
|
# LaTeX building currently broken
|
|
# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
|
|
# %files pdf
|
|
# %defattr(-,root,root)
|
|
# %{_docdir}/python-numpy/pdf/
|
|
# %endif
|
|
|
|
%changelog
|