python-breathe/python-breathe.spec
Tomáš Chvátal f1e9536ac4 - Update to 4.11.1:
* Fixes for newer sphinx releases
- Switch to github tarball for tests and license
- Add patch to fix build with sphinx 1.8:
  * sphinx18.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=6
2019-03-06 14:21:16 +00:00

85 lines
2.6 KiB
RPMSpec

#
# spec file for package python-breathe
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without test
Name: python-breathe
Version: 4.11.1
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
Patch0: sphinx18.patch
BuildRequires: %{python_module Sphinx >= 1.8}
BuildRequires: %{python_module docutils >= 0.12}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.9}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.8
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
Breathe is an extension to reStructuredText and Sphinx to be
able to read and render Doxygen xml output.
%prep
%setup -q -n breathe-%{version}
%patch0 -p1
%build
%python_build
%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
%{python_sitelib}/breathe
%{python_sitelib}/breathe-%{version}-py*.egg-info
%changelog