# Created by pyp2rpm-3.2.2 %global pypi_name nbsphinx Name: python-%{pypi_name} Version: 0.2.13 Release: 1%{?dist} Summary: Jupyter Notebook Tools for Sphinx License: MIT URL: http://nbsphinx.rtfd.io/ Source0: https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz # https://github.com/spatialaudio/nbsphinx/issues/24 Patch0: %{pypi_name}-ipython-console-highlighting.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-ipykernel BuildRequires: python3-ipython-sphinx BuildRequires: python3-jupyter-client BuildRequires: python3-nbconvert BuildRequires: python3-sphinx BuildRequires: git BuildRequires: pandoc %description nbsphinx is a Sphinx extension that provides a source parser for *.ipynb files. Custom Sphinx directives are used to show Jupyter Notebook code cells (and of course their results) in both HTML and LaTeX output. Unevaluated notebooks, i.e. notebooks without stored output cells, will be automatically executed during the Sphinx build process. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-docutils Requires: python3-jinja2 Requires: python3-nbconvert Requires: python3-traitlets Requires: python3-nbformat Requires: python3-sphinx %description -n python3-%{pypi_name} nbsphinx is a Sphinx extension that provides a source parser for *.ipynb files. Custom Sphinx directives are used to show Jupyter Notebook code cells (and of course their results) in both HTML and LaTeX output. Unevaluated notebooks, i.e. notebooks without stored output cells, will be automatically executed during the Sphinx build process. %package -n python-%{pypi_name}-doc Summary: nbsphinx documentation %description -n python-%{pypi_name}-doc Documentation for nbsphinx %prep %autosetup -n %{pypi_name}-%{version} -S git %build %py3_build # fake the git tag for docs to put the right version in git tag %{version} # generate html docs PYTHONPATH=. sphinx-build-3 doc html # remove the sphinx-build leftovers rm -rf html/{.doctrees,.buildinfo,conf.py} %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/__pycache__/%{pypi_name}* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %license LICENSE %doc html %changelog * Tue Apr 04 2017 Miro HronĨok - 0.2.13-1 - Initial package