14
0
forked from pool/python-tap.py

Accepting request 687391 from home:jayvdb:coala:test-rig

- Initial spec for v2.5

OBS-URL: https://build.opensuse.org/request/show/687391
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tap.py?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-03-21 15:41:00 +00:00
committed by Git OBS Bridge
commit 9699727be0
5 changed files with 99 additions and 0 deletions

68
python-tap.py.spec Normal file
View File

@@ -0,0 +1,68 @@
#
# spec file for package python-tap.py
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tap.py
Version: 2.5
Release: 0
Summary: Test Anything Protocol (TAP) tools
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/python-tap/tappy
Source: https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-%{version}.tar.gz
BuildRequires: %{python_module Babel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-PyYAML
Recommends: python-more-itertools
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module more-itertools}
# /SECTION
%python_subpackages
%description
Test Anything Protocol (TAP) tools.
%prep
%setup -q -n tap.py-%{version}
%build
export LANG=en_US.UTF-8
%python_build
%install
export LANG=en_US.UTF-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_exec setup.py test
%files %{python_files}
%doc AUTHORS README.md
%license LICENSE
%python3_only %{_bindir}/tappy
%python3_only %{_bindir}/tap
%{python_sitelib}/*
%changelog