File python3-testtools-doc.spec of Package python3-testtools
#
# spec file for package python3-testtools-doc
#
# Copyright (c) 2016 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/
#
# A build cycle exists between python-extras and python-testtools. Thus, only
# enable testing with a build conditional (off by default):
Name: python3-testtools-doc
Version: 2.2.0
Release: 0
Summary: Documentation for python3-testtools
License: MIT
Group: Documentation/HTML
Url: https://launchpad.net/testtools
Source: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
BuildRequires: python3-testtools = %{version}
# Documentation requirements:
BuildRequires: python3-Sphinx
# These cause a dependency loop, so run test in this subpackage
BuildRequires: python3-fixtures
BuildRequires: python3-testscenarios
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Documentation and help files for python3-testtools.
%prep
%setup -q -n testtools-%{version}
%build
# Not needed
%install
python3 setup.py build_sphinx
rm -rf build/sphinx/html/.buildinfo
%check
pushd doc
python3 -m testtools.run testtools.tests.test_suite
popd
%files
%defattr(-,root,root,-)
%doc build/sphinx/html
%changelog