File python-zope.exceptions-doc.spec of Package python-zope.exceptions-doc

#
# spec file for package python-zope.exceptions-doc
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-zope.exceptions-doc
Version:        4.1.0
Release:        0
Summary:        Documentation for python-zope.exceptions
License:        ZPL-2.1
Group:          Documentation/HTML
Url:            http://cheeseshop.python.org/pypi/zope.exceptions
Source:         https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
# SECTION Documentation requirements
BuildRequires:  python3-Sphinx
BuildRequires:  python3-repoze.sphinx.autointerface
# /SECTION
BuildRequires:  python-rpm-macros
# SECTION Test requirements:
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module zope.exceptions} = %{version}
BuildRequires:  %{python_module zope.testrunner}
# /SECTION
Requires:       python-zope.exceptions = %{version}
Provides:       %{python_module zope.exceptions-doc == %{version}}
BuildArch:      noarch

%description
This package contains documentation files for python-zope.exceptions.

%prep
%setup -q -n zope.exceptions-%{version}

%build
%{_python_use_flavor python3}
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo

%install
# Not needed

%check
%python_exec %{_bindir}/zope-testrunner -vvv --test-path src

%files
%defattr(-,root,root,-)
%doc COPYRIGHT.txt LICENSE.txt
%doc build/sphinx/html/

%changelog
openSUSE Build Service is sponsored by