forked from pool/python-Cython
Accepting request 690771 from home:TheBlackCat:branches:devel:languages:python
Fix building of documentation OBS-URL: https://build.opensuse.org/request/show/690771 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=122
This commit is contained in:
@@ -28,9 +28,14 @@ Group: Documentation/Other
|
||||
URL: http://www.cython.org
|
||||
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||
Source1: python-Cython-rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM -- cython_use_imgmath.patch -- Don't use removed pngmath Sphinx extension -- gh#cython/cython#2818
|
||||
Patch0: cython_use_imgmath.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-Sphinx-latex
|
||||
BuildRequires: texlive-dvipng
|
||||
BuildRequires: texlive-latex
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Cython = %{version}}
|
||||
@@ -49,6 +54,7 @@ allows the compiler to generate very efficient C code from Cython code.
|
||||
|
||||
%prep
|
||||
%setup -q -n Cython-%{version}
|
||||
%patch0 -p1
|
||||
# Fix EOL encoding
|
||||
sed -i "s|\r||" Demos/callback/{README.rst,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static}
|
||||
# Remove tests broken with new gcc
|
||||
@@ -60,6 +66,7 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_docdir}/python-Cython
|
||||
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-Cython
|
||||
sed -i 's/\r$//' %{buildroot}%{_docdir}/python-Cython/html/_sources/examples/README.rst.txt
|
||||
%fdupes %{buildroot}%{_docdir}/python-Cython
|
||||
|
||||
%if %{with test}
|
||||
|
Reference in New Issue
Block a user