55 lines
1.6 KiB
RPMSpec
55 lines
1.6 KiB
RPMSpec
%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://github.com/spatialaudio/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 <mmlidc@isoftstone.com> - 0.9.2-1
|
|
- Package init
|