2017-04-12 14:49:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-testtools-doc
|
|
|
|
#
|
2020-03-16 11:00:06 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-04-12 14:49:51 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-14 14:47:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-12 14:49:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-14 16:46:59 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-04-12 14:49:51 +00:00
|
|
|
Name: python-testtools-doc
|
2020-03-16 11:00:06 +00:00
|
|
|
Version: 2.4.0
|
2017-04-12 14:49:51 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Documentation for python-testtools
|
|
|
|
License: MIT
|
|
|
|
Group: Documentation/HTML
|
2018-08-11 08:05:17 +00:00
|
|
|
URL: https://launchpad.net/testtools
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module testscenarios}
|
|
|
|
BuildRequires: %{python_module testtools = %{version}}
|
2017-04-12 14:49:51 +00:00
|
|
|
BuildRequires: fdupes
|
2018-08-11 08:05:17 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-04-12 14:49:51 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
Provides: python2-testtools-doc = %{version}
|
|
|
|
Provides: python3-testtools-doc = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Documentation and help files for python-testtools.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n testtools-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/python-testtools/
|
|
|
|
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-testtools/
|
|
|
|
%fdupes %{buildroot}%{_docdir}
|
|
|
|
|
|
|
|
%check
|
2018-08-11 08:05:17 +00:00
|
|
|
%python_exec -m testtools.run testtools.tests.test_suite
|
2017-04-12 14:49:51 +00:00
|
|
|
|
|
|
|
%files
|
2018-08-11 08:05:17 +00:00
|
|
|
%license LICENSE
|
2017-04-12 14:49:51 +00:00
|
|
|
%{_docdir}/python-testtools/
|
|
|
|
|
|
|
|
%changelog
|