New packages needed to build GMT. OBS-URL: https://build.opensuse.org/request/show/1203952 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-togglebutton?expand=0&rev=1
65 lines
2.1 KiB
RPMSpec
65 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-sphinxcontrib-design
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-sphinxcontrib-togglebutton
|
|
Version: 0.3.2
|
|
Release: 0
|
|
Summary: Make it possible to add a "toggle button" to sections of your page
|
|
License: MIT
|
|
URL: https://sphinx-togglebutton.readthedocs.io/
|
|
Source: https://github.com/executablebooks/sphinx-togglebutton/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: %{python_module flit-core}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Sphinx >= 1.8
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module Sphinx >= 1.8}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n sphinx-togglebutton-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
#%#tox
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/sphinx_togglebutton*
|
|
|
|
%changelog
|