forked from pool/python-sphinx-tabs
- Add patch support-sphinx-8.1.patch:
* Support Sphinx 8.1 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-tabs?expand=0&rev=21
This commit is contained in:
92
python-sphinx-tabs.spec
Normal file
92
python-sphinx-tabs.spec
Normal file
@@ -0,0 +1,92 @@
|
||||
#
|
||||
# spec file for package python-sphinx-tabs
|
||||
#
|
||||
# Copyright (c) 2025 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/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?sle_version} && 0%{?sle_version} <= 150300
|
||||
%define pythons python3
|
||||
%endif
|
||||
%bcond_with test
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-sphinx-tabs
|
||||
Version: 3.4.7
|
||||
Release: 0
|
||||
Summary: Tabbed views for Sphinx
|
||||
License: MIT
|
||||
URL: https://github.com/executablebooks/sphinx-tabs
|
||||
# Use the github tag instead of the pythonhosted.org to get the tests folder
|
||||
Source: https://github.com/executablebooks/sphinx-tabs/archive/refs/tags/v%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#executablebooks/sphinx-tabs#200
|
||||
Patch0: support-sphinx-8.1.patch
|
||||
BuildRequires: %{python_module Pygments}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module docutils}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Pygments
|
||||
Requires: python-Sphinx
|
||||
Requires: python-docutils
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module beautifulsoup4}
|
||||
BuildRequires: %{python_module pytest-regressions}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sphinx-tabs = %{version}}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Create tabbed content in Sphinx documentation when building HTML.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n sphinx-tabs-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# python-rinohtype is not available
|
||||
%pytest -k 'not test_rinohtype_pdf'
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/sphinx_tabs
|
||||
%{python_sitelib}/sphinx_tabs-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user