Accepting request 206776 from devel:languages:python
Update to 1.8.0 OBS-URL: https://build.opensuse.org/request/show/206776 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=36
This commit is contained in:
committed by
Git OBS Bridge
parent
457ab0c6f8
commit
e047e2d5f6
@@ -19,7 +19,7 @@
|
||||
%define modname numpy
|
||||
Name: python-%{modname}-doc
|
||||
%define docname numpydoc
|
||||
Version: 1.7.1
|
||||
Version: 1.8.0
|
||||
Release: 0
|
||||
%define docvers 0.4
|
||||
Url: http://sourceforge.net/projects/numpy
|
||||
@@ -27,7 +27,7 @@ Summary: Documentation for python-numpy
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Source: %{modname}-%{version}.tar.gz
|
||||
Patch1: numpy-buildfix.patch
|
||||
Patch0: numpy-buildfix.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: blas-devel
|
||||
BuildRequires: lapack-devel
|
||||
@@ -35,10 +35,9 @@ BuildRequires: python-Sphinx
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-matplotlib
|
||||
BuildRequires: python-numpy-devel
|
||||
BuildRequires: python-numpydoc
|
||||
BuildRequires: texlive-latex
|
||||
BuildRequires: zip
|
||||
Provides: python-numpydoc = %{version}
|
||||
Obsoletes: python-numpydoc < %{version}
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-fortran
|
||||
@@ -104,50 +103,16 @@ basic linear algebra and random number generation.
|
||||
|
||||
This package provides the PDF documentation for NumPy
|
||||
|
||||
%package -n python-numpydoc
|
||||
Summary: Custom extension for python-Sphinx from the python-numpy project
|
||||
Group: Development/Libraries/Python
|
||||
Requires: python-Sphinx
|
||||
%if 0%{?suse_version} > 1110
|
||||
%{py_requires}
|
||||
%endif
|
||||
|
||||
%description -n python-numpydoc
|
||||
Numpy's documentation uses several custom extensions to Sphinx. These are
|
||||
shipped in this numpydoc package, in case you want to make use of them in
|
||||
third-party projects.
|
||||
|
||||
The following extensions are available:
|
||||
|
||||
- numpydoc: support for the Numpy docstring format in Sphinx, and add the code
|
||||
description directives np:function, np-c:function, etc. that support the Numpy
|
||||
docstring syntax.
|
||||
|
||||
- numpydoc.traitsdoc: For gathering documentation about Traits attributes.
|
||||
|
||||
- numpydoc.plot_directives: Adaptation of Matplotlib's plot:: directive. This
|
||||
implementation may still undergo severe changes or eventually be deprecated.
|
||||
|
||||
- numpydoc.only_directives: (DEPRECATED)
|
||||
|
||||
- numpydoc.autosummary: (DEPRECATED) An autosummary:: directive. Available in
|
||||
Sphinx 0.6.2 and (to-be) 1.0 as sphinx.ext.autosummary, and it the Sphinx 1.0
|
||||
version is recommended over that included in Numpydoc.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%patch1 -p0
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
# make the documentation
|
||||
cd doc
|
||||
make dist PYVER=%{py_ver}
|
||||
|
||||
# make numpydoc
|
||||
cd sphinxext
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
# install the documentation
|
||||
cd doc
|
||||
@@ -158,10 +123,6 @@ mv %{buildroot}%{_docdir}/python-%{modname}/html/*.pdf %{buildroot}%{_docdir}/py
|
||||
%fdupes %{buildroot}%{_docdir}/python-%{modname}/html/
|
||||
%fdupes %{buildroot}%{_docdir}/python-%{modname}/pdf/
|
||||
|
||||
# install numpydoc
|
||||
cd sphinxext
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files html
|
||||
%defattr(-,root,root)
|
||||
%{_docdir}/python-%{modname}/html/
|
||||
@@ -170,9 +131,4 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%defattr(-,root,root)
|
||||
%{_docdir}/python-%{modname}/pdf/
|
||||
|
||||
%files -n python-numpydoc
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/%{docname}/
|
||||
%{python_sitelib}/%{docname}-%{docvers}-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user