diff --git a/python-sphinx-togglebutton.spec b/python-sphinx-togglebutton.spec new file mode 100644 index 0000000..3cd6ac0 --- /dev/null +++ b/python-sphinx-togglebutton.spec @@ -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 - 0.3.2-1 +- Initial package. diff --git a/sphinx-togglebutton-0.3.2.tar.gz b/sphinx-togglebutton-0.3.2.tar.gz new file mode 100644 index 0000000..2030eb2 Binary files /dev/null and b/sphinx-togglebutton-0.3.2.tar.gz differ