File python-gabbi.spec of Package python-gabbi
#
# spec file for package python-gabbi
#
# 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-gabbi
Version: 1.35.0
Release: 0
Summary: Declarative HTTP testing library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/cdent/gabbi
Source: https://pypi.io/packages/source/g/gabbi/gabbi-%{version}.tar.gz
# BuildRequires: %{python_module PyYAML}
# BuildRequires: %{python_module Sphinx}
# BuildRequires: %{python_module colorama}
# BuildRequires: %{python_module fixtures}
# BuildRequires: %{python_module httplib2}
# BuildRequires: %{python_module jsonpath-rw-ext}
# BuildRequires: %{python_module jsonpath-rw}
# BuildRequires: %{python_module mock}
# BuildRequires: %{python_module nose}
# BuildRequires: %{python_module pytest-cov}
# BuildRequires: %{python_module pytest}
# BuildRequires: %{python_module six}
# BuildRequires: %{python_module testrepository}
# BuildRequires: %{python_module testtools}
# BuildRequires: %{python_module urllib3}
# BuildRequires: %{python_module wsgi_intercept}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-colorama
Requires: python-jsonpath-rw-ext
Requires: python-pytest
Requires: python-six
Requires: python-testtools
Requires: python-urllib3 >= 1.11.0
Requires: python-wsgi_intercept >= 1.2.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Gabbi is a tool for running HTTP tests where requests and responses
are represented in a declarative YAML-based form. See the docs_ for
more details on features and formats.
%prep
%setup -q -n gabbi-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gabbi-run
%post
%python_install_alternative gabbi-run
%postun
%python_uninstall_alternative gabbi-run
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README.rst
%{python_sitelib}/*
%python_alternative %{_bindir}/gabbi-run
%changelog