File python-cliff.spec of Package python-cliff
#
# spec file for package python-cliff
#
# 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/
#
%global sname cliff
Name: python-cliff
Version: 2.8.3
Release: 0
Summary: Command Line Interface Formulation Framework
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/python-%{sname}
Source0: https://pypi.io/packages/source/c/cliff/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-PrettyTable >= 0.7.1
BuildRequires: python-PyYAML >= 3.10.0
BuildRequires: python-cmd2 >= 0.6.7
BuildRequires: python-devel
BuildRequires: python-mock >= 2.0
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-python-subunit >= 0.0.18
BuildRequires: python-setuptools >= 16.0
BuildRequires: python-stevedore >= 1.20.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
BuildRequires: python-unicodecsv >= 0.8.0
Requires: python-PrettyTable >= 0.7.1
Requires: python-PyYAML >= 3.10.0
Requires: python-cmd2 >= 0.6.7
Requires: python-pyparsing >= 2.1.0
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.20.0
Requires: python-unicodecsv >= 0.8.0
BuildArch: noarch
%description
cliff is a framework for building command line programs. It uses
setuptools entry points to provide subcommands, output formatters, and
other extensions.
%package doc
Summary: %{summary} - Documentation
Group: Documentation/HTML
BuildRequires: python-Sphinx
BuildRequires: python-openstackdocstheme >= 1.16.0
Requires: %{name} = %{version}
%description doc
cliff is a framework for building command line programs. It uses
setuptools entry points to provide subcommands, output formatters, and
other extensions.
This package contains documentation files for %{name}.
%prep
%autosetup -n %{sname}-%{version}
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%py_req_cleanup
%build
%py2_build
%{__python2} setup.py build_sphinx
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%py2_install
%check
%{__python2} setup.py test
%files
%license LICENSE
%doc ChangeLog README.rst
%{python2_sitelib}/%{sname}
%{python2_sitelib}/*.egg-info
%files doc
%license LICENSE
%doc doc/build/html
%changelog