python-sphinx-togglebutton/python-sphinx-togglebutton.spec
2023-07-31 18:18:52 +08:00

55 lines
1.8 KiB
RPMSpec

# 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.