15
0
Files
python-breathe/python-breathe.spec
Matej Cepl 6ee154f2c3 Accepting request 1253083 from home:mcalabkova:branches:devel:languages:python
- Update to 4.36:
  * Update test_renderer so that tests pass with Sphinx 7.2.
  * Fix PosixPath issue with Sphinx 7.2.
  * Avoid RemovedInSphinx80Warning in path-manipulation code.
  * Require Sphinx 7.2 or later, Python 3.9 or later 
    and Doxygen 1.9.2 or later.
  * Begin to use pathlib.
  * Insert signature name for use with Sphinx Table of Contents.
  * Fix error in template specialization with qualified arguments.
- Drop merged support-sphinx-7.2.patch and support-sphinx-7.4.patch.

OBS-URL: https://build.opensuse.org/request/show/1253083
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=58
2025-03-15 11:07:19 +00:00

75 lines
2.2 KiB
RPMSpec

#
# spec file for package python-breathe
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-breathe
Version: 4.36.0
Release: 0
Summary: Sphinx Doxygen renderer
License: BSD-3-Clause
URL: https://github.com/michaeljones/breathe
Source: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz#/breathe-%{version}.tar.gz
BuildRequires: %{python_module Sphinx >= 7.2}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 7.2
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: python-sphinxcontrib-breathe = %{version}
Obsoletes: python-sphinxcontrib-breathe < %{version}
BuildArch: noarch
%python_subpackages
%description
Breathe is an extension to reStructuredText and Sphinx to be
able to read and render Doxygen xml output.
%prep
%autosetup -p1 -n breathe-%{version}
%build
%pyproject_wheel
%check
%pytest
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/breathe-apidoc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative breathe-apidoc
%postun
%python_uninstall_alternative breathe-apidoc
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/breathe-apidoc
%{python_sitelib}/breathe
%{python_sitelib}/breathe-%{version}*-info
%changelog