summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-nbsphinx.spec128
-rw-r--r--sources1
3 files changed, 130 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..63a704a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nbsphinx-0.8.12.tar.gz
diff --git a/python-nbsphinx.spec b/python-nbsphinx.spec
new file mode 100644
index 0000000..0cda5ab
--- /dev/null
+++ b/python-nbsphinx.spec
@@ -0,0 +1,128 @@
+%global _empty_manifest_terminate_build 0
+Name: python-nbsphinx
+Version: 0.8.12
+Release: 1
+Summary: Jupyter Notebook Tools for Sphinx
+License: MIT
+URL: https://nbsphinx.readthedocs.io/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5d/a0/7733314b9b3e3886e8d3493375edd9b52b173c39549a0b2a4555c34ec59e/nbsphinx-0.8.12.tar.gz
+BuildArch: noarch
+
+Requires: python3-docutils
+Requires: python3-jinja2
+Requires: python3-nbconvert
+Requires: python3-traitlets
+Requires: python3-nbformat
+Requires: python3-sphinx
+
+%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.
+Un-evaluated notebooks -- i.e. notebooks without stored output cells -- will be
+automatically executed during the Sphinx build process.
+Quick Start:
+ #. Install ``nbsphinx``
+ #. Edit your ``conf.py`` and add ``'nbsphinx'`` to ``extensions``.
+ #. Edit your ``index.rst`` and add the names of your ``*.ipynb`` files
+ to the ``toctree``.
+ #. Run Sphinx!
+Online documentation (and example of use):
+ https://nbsphinx.readthedocs.io/
+Source code repository (and issue tracker):
+ https://github.com/spatialaudio/nbsphinx/
+License:
+ MIT -- see the file ``LICENSE`` for details.
+
+%package -n python3-nbsphinx
+Summary: Jupyter Notebook Tools for Sphinx
+Provides: python-nbsphinx
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-nbsphinx
+``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.
+Un-evaluated notebooks -- i.e. notebooks without stored output cells -- will be
+automatically executed during the Sphinx build process.
+Quick Start:
+ #. Install ``nbsphinx``
+ #. Edit your ``conf.py`` and add ``'nbsphinx'`` to ``extensions``.
+ #. Edit your ``index.rst`` and add the names of your ``*.ipynb`` files
+ to the ``toctree``.
+ #. Run Sphinx!
+Online documentation (and example of use):
+ https://nbsphinx.readthedocs.io/
+Source code repository (and issue tracker):
+ https://github.com/spatialaudio/nbsphinx/
+License:
+ MIT -- see the file ``LICENSE`` for details.
+
+%package help
+Summary: Development documents and examples for nbsphinx
+Provides: python3-nbsphinx-doc
+%description help
+``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.
+Un-evaluated notebooks -- i.e. notebooks without stored output cells -- will be
+automatically executed during the Sphinx build process.
+Quick Start:
+ #. Install ``nbsphinx``
+ #. Edit your ``conf.py`` and add ``'nbsphinx'`` to ``extensions``.
+ #. Edit your ``index.rst`` and add the names of your ``*.ipynb`` files
+ to the ``toctree``.
+ #. Run Sphinx!
+Online documentation (and example of use):
+ https://nbsphinx.readthedocs.io/
+Source code repository (and issue tracker):
+ https://github.com/spatialaudio/nbsphinx/
+License:
+ MIT -- see the file ``LICENSE`` for details.
+
+%prep
+%autosetup -n nbsphinx-0.8.12
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-nbsphinx -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.12-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..4051c78
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+425a2d8dfe6fb159147ad7731e4ccfb2 nbsphinx-0.8.12.tar.gz