File python-sphinxcontrib-epydoc.spec of Package python-sphinxcontrib-epydoc
#
# spec file for package python-sphinxcontrib-epydoc
#
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 LISA GmbH, Bingen, 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-sphinxcontrib-epydoc
Version: 0.6
Release: 0
Summary: Epydoc cross-referencing for Sphinx
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://bitbucket.org/birkenfeld/sphinx-contrib
Source: http://files.pythonhosted.org/packages/source/s/sphinxcontrib-epydoc/sphinxcontrib-epydoc-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sphinxcontrib}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
%if %{with test}
BuildRequires: %{python_module Sphinx >= 1.1}
%endif
Requires: python-Sphinx >= 1.1
Requires: python-sphinxcontrib
BuildArch: noarch
%python_subpackages
%description
A Sphinx extension to cross-reference API documentation generated with Epydoc.
%package -n %{name}-doc
Summary: Epydoc cross-referencing for Sphinx
Group: Development/Languages/Python
Provides: %{python_module sphinxcontrib-epydoc = %{version}}
%description -n %{name}-doc
This package contains documentation files for %{name}.
%prep
%setup -q -n sphinxcontrib-epydoc-%{version}
%build
%python_build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/sphinxcontrib/epydoc.py*
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/epydoc*.py*
%{python_sitelib}/sphinxcontrib_epydoc-%{version}-py*-nspkg.pth
%{python_sitelib}/sphinxcontrib_epydoc-%{version}-py*.egg-info
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc build/sphinx/html/
%changelog