!1 Initial package

From: @ysliuci 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2023-07-31 15:17:51 +00:00 committed by Gitee
commit 1f836bfe2c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,54 @@
# Created by pyp2rpm-3.2.2
%global pypi_name sphinx-togglebutton
Name: python-%{pypi_name}
Version: 0.3.2
Release: 1
Summary: Toggle page content and collapse admonitions in Sphinx
License: MIT
URL: https://github.com/executablebooks/sphinx-togglebutton
Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
A small sphinx extension to make it possible to add a "toggle button" to sections of your page. This allows you to:
Collapse Sphinx admonitions (notes, warnings, etc) so that their content is hidden until users click a toggle button;
Collapse arbitrary chunks of content on your page with a collapse directive.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-setuptools
Requires: python3-wheel
Requires: python3-sphinx
Requires: python3-docutils
%description -n python3-%{pypi_name}
A small sphinx extension to make it possible to add a "toggle button" to sections of your page. This allows you to:
Collapse Sphinx admonitions (notes, warnings, etc) so that their content is hidden until users click a toggle button;
Collapse arbitrary chunks of content on your page with a collapse directive.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/sphinx_togglebutton
%{python3_sitelib}/sphinx_togglebutton-*.egg-info
%changelog
* Mon Jul 31 2023 ysliu <ysliuci@isoftstone.com> - 0.3.2-1
- Initial package.

Binary file not shown.