Accepting request 333114 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/333114 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=45
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
%define modname numpy
|
||||
Name: python-numpy-doc
|
||||
%define docname numpydoc
|
||||
Version: 1.9.2
|
||||
Version: 1.9.3
|
||||
Release: 0
|
||||
%define docvers 0.4
|
||||
Url: http://www.numpy.org/
|
||||
@@ -39,8 +39,19 @@ BuildRequires: python-devel
|
||||
BuildRequires: python-matplotlib
|
||||
BuildRequires: python-numpy-devel
|
||||
BuildRequires: python-numpydoc
|
||||
BuildRequires: texlive-latex
|
||||
BuildRequires: zip
|
||||
# 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(epsfig.sty)
|
||||
BuildRequires: tex(expdlist.sty)
|
||||
BuildRequires: tex(verbatim.sty)
|
||||
BuildRequires: tex(xspace.sty)
|
||||
BuildRequires: tex(article.cls)
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-fortran
|
||||
@@ -114,25 +125,44 @@ This package provides the PDF documentation for NumPy
|
||||
|
||||
%build
|
||||
# make the documentation
|
||||
cd doc
|
||||
make dist PYVER=%{py_ver}
|
||||
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
|
||||
cd doc
|
||||
mkdir -p %{buildroot}%{_docdir}/python-numpy/{html,pdf}
|
||||
tar -xzf build/dist.tar.gz -C %{buildroot}%{_docdir}/python-numpy/html
|
||||
mv %{buildroot}%{_docdir}/python-numpy/html/*.pdf %{buildroot}%{_docdir}/python-numpy/pdf/
|
||||
mkdir -p %{buildroot}%{_docdir}/python-numpy/
|
||||
|
||||
pushd doc/build
|
||||
cp -r html %{buildroot}%{_docdir}/python-numpy/
|
||||
popd
|
||||
%fdupes %{buildroot}%{_docdir}/python-numpy/html/
|
||||
%fdupes %{buildroot}%{_docdir}/python-numpy/pdf/
|
||||
|
||||
# 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/
|
||||
|
||||
%files pdf
|
||||
%defattr(-,root,root)
|
||||
%{_docdir}/python-numpy/pdf/
|
||||
# LaTeX building currently broken
|
||||
# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
|
||||
# %files pdf
|
||||
# %defattr(-,root,root)
|
||||
# %{_docdir}/python-numpy/pdf/
|
||||
# %endif
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user