diff --git a/nbsphinx-0.9.2.tar.gz b/nbsphinx-0.9.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d44c09f116edacb0f61e7176ce2bbde90abd4258 Binary files /dev/null and b/nbsphinx-0.9.2.tar.gz differ diff --git a/python-nbsphinx.spec b/python-nbsphinx.spec new file mode 100644 index 0000000000000000000000000000000000000000..11f1fb431dd6695d2bddf91cdf49c94cbe902a77 --- /dev/null +++ b/python-nbsphinx.spec @@ -0,0 +1,54 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name nbsphinx + +Name: python-%{pypi_name} +Version: 0.9.2 +Release: 1 +Summary: Jupyter Notebook Tools for Sphinx. +License: MIT +URL: https://pypi.org/project/nbsphinx/ +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python3-pip +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-wheel + +%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. + +%package -n python3-%{pypi_name} +Summary: Jupyter Notebook Tools for 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. +Un-evaluated notebooks -- i.e. notebooks without stored output cells -- will be +automatically executed during the Sphinx build process. + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/nbsphinx-*.dist-info/ +%{python3_sitelib}/nbsphinx/ + +%changelog +* Thu Jul 13 2023 li-miaomiao_zhr - 0.9.2-1 +- Package init