OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=46
70 lines
2.3 KiB
RPMSpec
70 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-testtools
|
|
#
|
|
# 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-testtools
|
|
Version: 2.2.0
|
|
Release: 0
|
|
Summary: Extensions to the Python Standard Library Unit Testing Framework
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/testtools
|
|
Source: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module extras >= 1.0.0}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-extras >= 1.0.0
|
|
Requires: python-pbr >= 0.11
|
|
Requires: python-python-mimeparse
|
|
Requires: python-six >= 1.4.0
|
|
Requires: python-traceback2
|
|
%ifpython2
|
|
Requires: python-unittest2 >= 1.0.0
|
|
%endif
|
|
Recommends: python-fixtures >= 1.3.0
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
testtools is a set of extensions to the Python standard library's unit tests
|
|
framework. These extensions have been derived from many years of experience
|
|
with unit tests in Python and come from many different sources. testtools
|
|
also ports recent unittest changes all the way back to Python 2.4.
|
|
|
|
%prep
|
|
%setup -q -n testtools-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE NEWS README.rst
|
|
%{python_sitelib}/testtools
|
|
%{python_sitelib}/testtools-%{version}-py*.egg-info
|
|
|
|
%changelog
|