|
|
aaa3d13 |
# Created by pyp2rpm-3.2.2
|
|
|
aaa3d13 |
%global pypi_name nbsphinx
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
Name: python-%{pypi_name}
|
|
|
7c2bdd5 |
Version: 0.4.2
|
|
|
2b5e1e6 |
Release: 2%{?dist}
|
|
|
aaa3d13 |
Summary: Jupyter Notebook Tools for Sphinx
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
License: MIT
|
|
|
aaa3d13 |
URL: http://nbsphinx.rtfd.io/
|
|
|
7c2bdd5 |
Source0: %{pypi_source}
|
|
|
aaa3d13 |
# https://github.com/spatialaudio/nbsphinx/issues/24
|
|
|
aaa3d13 |
Patch0: %{pypi_name}-ipython-console-highlighting.patch
|
|
|
da56388 |
Patch1: 0001-Allow-errors-and-add-a-note-in-one-doc-notebook.patch
|
|
|
aaa3d13 |
BuildArch: noarch
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
BuildRequires: python3-devel
|
|
|
aaa3d13 |
BuildRequires: python3-setuptools
|
|
|
aaa3d13 |
BuildRequires: python3-ipykernel
|
|
|
aaa3d13 |
BuildRequires: python3-ipython-sphinx
|
|
|
aaa3d13 |
BuildRequires: python3-jupyter-client
|
|
|
aaa3d13 |
BuildRequires: python3-nbconvert
|
|
|
aaa3d13 |
BuildRequires: python3-sphinx
|
|
|
7c2bdd5 |
BuildRequires: python3-sphinxcontrib-bibtex
|
|
|
aaa3d13 |
BuildRequires: git
|
|
|
aaa3d13 |
BuildRequires: pandoc
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%description
|
|
|
aaa3d13 |
nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
|
|
|
aaa3d13 |
files. Custom Sphinx directives are used to show Jupyter Notebook code cells
|
|
|
aaa3d13 |
(and of course their results) in both HTML and LaTeX output. Unevaluated
|
|
|
aaa3d13 |
notebooks, i.e. notebooks without stored output cells, will be automatically
|
|
|
aaa3d13 |
executed during the Sphinx build process.
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%package -n python3-%{pypi_name}
|
|
|
aaa3d13 |
Summary: %{summary}
|
|
|
aaa3d13 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
aaa3d13 |
|
|
|
2b5e1e6 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1680237#c1
|
|
|
eaa600d |
Requires: python%{python3_version}dist(nbconvert)
|
|
|
2b5e1e6 |
|
|
|
aaa3d13 |
%description -n python3-%{pypi_name}
|
|
|
aaa3d13 |
nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
|
|
|
aaa3d13 |
files. Custom Sphinx directives are used to show Jupyter Notebook code cells
|
|
|
aaa3d13 |
(and of course their results) in both HTML and LaTeX output. Unevaluated
|
|
|
aaa3d13 |
notebooks, i.e. notebooks without stored output cells, will be automatically
|
|
|
aaa3d13 |
executed during the Sphinx build process.
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%package -n python-%{pypi_name}-doc
|
|
|
aaa3d13 |
Summary: nbsphinx documentation
|
|
|
aaa3d13 |
%description -n python-%{pypi_name}-doc
|
|
|
aaa3d13 |
Documentation for nbsphinx
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%prep
|
|
|
aaa3d13 |
%autosetup -n %{pypi_name}-%{version} -S git
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%build
|
|
|
aaa3d13 |
%py3_build
|
|
|
aaa3d13 |
# fake the git tag for docs to put the right version in
|
|
|
aaa3d13 |
git tag %{version}
|
|
|
aaa3d13 |
# generate html docs
|
|
|
7c2bdd5 |
PYTHONPATH=build/lib sphinx-build-3 doc html
|
|
|
aaa3d13 |
# remove the sphinx-build leftovers
|
|
|
aaa3d13 |
rm -rf html/{.doctrees,.buildinfo,conf.py}
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%install
|
|
|
aaa3d13 |
%py3_install
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%files -n python3-%{pypi_name}
|
|
|
aaa3d13 |
%license LICENSE
|
|
|
aaa3d13 |
%doc README.rst
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%{python3_sitelib}/__pycache__/%{pypi_name}*
|
|
|
aaa3d13 |
%{python3_sitelib}/%{pypi_name}.py
|
|
|
aaa3d13 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%files -n python-%{pypi_name}-doc
|
|
|
aaa3d13 |
%license LICENSE
|
|
|
aaa3d13 |
%doc html
|
|
|
aaa3d13 |
|
|
|
aaa3d13 |
%changelog
|
|
|
2b5e1e6 |
* Thu Feb 28 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-2
|
|
|
2b5e1e6 |
- Explicitly require nbconvert
|
|
|
2b5e1e6 |
|
|
|
7c2bdd5 |
* Wed Feb 27 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-1
|
|
|
7c2bdd5 |
- Update to 0.4.2 (#1680237)
|
|
|
7c2bdd5 |
|
|
|
70f6307 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-5
|
|
|
70f6307 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
70f6307 |
|
|
|
08c59a8 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-4
|
|
|
08c59a8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
08c59a8 |
|
|
|
2229020 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.17-3
|
|
|
2229020 |
- Rebuilt for Python 3.7
|
|
|
2229020 |
|
|
|
b005149 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-2
|
|
|
b005149 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b005149 |
|
|
|
da56388 |
* Tue Nov 28 2017 Lumír Balhar <lbalhar@redhat.com> - 0.2.17-1
|
|
|
da56388 |
- New upstream version
|
|
|
da56388 |
- Fix FTBFS
|
|
|
da56388 |
|
|
|
4e289e3 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.13-2
|
|
|
4e289e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
4e289e3 |
|
|
|
aaa3d13 |
* Tue Apr 04 2017 Miro Hrončok <mhroncok@redhat.com> - 0.2.13-1
|
|
|
aaa3d13 |
- Initial package
|