Blame python-nbsphinx.spec

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