2019-09-02 06:18:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-plantuml
|
|
|
|
#
|
2025-01-24 02:14:11 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-09-02 06:18:37 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-12-29 09:51:09 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-09-02 06:18:37 +00:00
|
|
|
Name: python-sphinxcontrib-plantuml
|
2024-06-29 05:44:07 +00:00
|
|
|
Version: 0.30
|
2019-09-02 06:18:37 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Sphinx API for Web Apps
|
|
|
|
License: BSD-2-Clause
|
2019-09-02 07:45:58 +00:00
|
|
|
URL: https://github.com/sphinx-contrib/plantuml/
|
2019-09-02 06:18:37 +00:00
|
|
|
Source: https://github.com/sphinx-contrib/plantuml/archive/%{version}.tar.gz#/sphinxcontrib-plantuml-%{version}.tar.gz
|
2020-04-23 11:38:40 +00:00
|
|
|
Patch0: py3-for-tests.patch
|
2021-06-29 11:10:35 +00:00
|
|
|
BuildRequires: %{python_module Sphinx >= 2}
|
2019-09-02 07:45:58 +00:00
|
|
|
BuildRequires: %{python_module Sphinx-latex}
|
2023-12-29 09:51:09 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-03-06 18:17:03 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-12-29 09:51:09 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-09-02 06:18:37 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: texlive-epstopdf
|
|
|
|
Requires: plantuml
|
2021-06-29 11:10:35 +00:00
|
|
|
Requires: python-Sphinx >= 2
|
2019-09-02 06:18:37 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Once you enable this extension, a very simple string like this:
|
|
|
|
|
|
|
|
"Alice -> Bob: Hi!"
|
|
|
|
|
|
|
|
will create a nice UML schema. WIth PlantUML, you can specify things like height, width, scale, caption and so on. For details, please see PlantUML documentation at: http://plantuml.sourceforge.net/.
|
|
|
|
|
|
|
|
%prep
|
2024-03-07 04:50:28 +00:00
|
|
|
%autosetup -p1 -n plantuml-%{version}
|
2019-09-02 06:18:37 +00:00
|
|
|
|
|
|
|
%build
|
2023-12-29 09:51:09 +00:00
|
|
|
%pyproject_wheel
|
2019-09-02 06:18:37 +00:00
|
|
|
|
|
|
|
%install
|
2023-12-29 09:51:09 +00:00
|
|
|
%pyproject_install
|
2019-09-02 06:18:37 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-03-06 18:17:03 +00:00
|
|
|
# upstream knows: https://github.com/sphinx-contrib/plantuml/commit/e1b3f7e709eae0e95c70564a7e42279db08c8447
|
|
|
|
# s/class="figure"/class="figure align-default"/ in test_functional.py
|
2025-01-24 02:14:11 +00:00
|
|
|
# Allow testsuite to fail, completely broken under Python 3.13
|
|
|
|
# https://github.com/sphinx-contrib/plantuml/issues/99
|
|
|
|
%pytest -k 'not test_buildhtml_name' || :
|
2019-09-02 06:18:37 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
2019-09-02 12:59:44 +00:00
|
|
|
%license LICENSE
|
2024-03-07 04:50:28 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib/plantuml.py
|
|
|
|
%dir %{python_sitelib}/sphinxcontrib/__pycache__
|
|
|
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/plantuml.*.py*
|
2023-12-29 09:51:09 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib_plantuml-%{version}.dist-info
|
2024-03-07 04:50:28 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib_plantuml-%{version}-py3.*-nspkg.pth
|
2019-09-02 06:18:37 +00:00
|
|
|
|
|
|
|
%changelog
|