15
0

- Update to 0.3.0:

* Fixes build with new Sphinx releases

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2019-06-06 13:32:17 +00:00
committed by Git OBS Bridge
parent 0e4a9ccadf
commit 41f7f705b2
4 changed files with 14 additions and 19 deletions

View File

@@ -17,16 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%define skip_python2 1
Name: python-breathe
Version: 4.12.0
Version: 4.13.0.post0
Release: 0
Summary: Sphinx Doxygen renderer
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/michaeljones/breathe
Source: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz
BuildRequires: %{python_module Sphinx >= 1.8}
BuildRequires: %{python_module Sphinx >= 2.0}
BuildRequires: %{python_module docutils >= 0.12}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
@@ -34,17 +34,13 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.9}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.8
Requires: python-Sphinx >= 2.0
Requires: python-docutils >= 0.12
Requires: python-setuptools
Requires: python-six >= 1.9
Provides: python-sphinxcontrib-breathe = %{version}
Obsoletes: python-sphinxcontrib-breathe < %{version}
BuildArch: noarch
%ifpython2
Obsoletes: %{oldpython}-sphinxcontrib-breathe < %{version}
Provides: %{oldpython}-sphinxcontrib-breathe = %{version}
%endif
%python_subpackages
%description
@@ -60,21 +56,14 @@ able to read and render Doxygen xml output.
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/breathe-apidoc
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v tests/
%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
%python3_only %{_bindir}/breathe-apidoc
%{python_sitelib}/breathe
%{python_sitelib}/breathe-%{version}-py*.egg-info