!1 Initial package
From: @ysliuci Reviewed-by: @desert-sailor Signed-off-by: @desert-sailor
This commit is contained in:
commit
1f836bfe2c
54
python-sphinx-togglebutton.spec
Normal file
54
python-sphinx-togglebutton.spec
Normal 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.
|
||||
BIN
sphinx-togglebutton-0.3.2.tar.gz
Normal file
BIN
sphinx-togglebutton-0.3.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user