File python-tabulate.spec of Package tabulate
#
# spec file for package python-tabulate
#
# 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/
Name: python-tabulate
Version: 0.7.7
Release: 0
License: BSD-2-Clause
Summary: Pretty-print tabular data
Url: https://bitbucket.org/astanin/python-tabulate
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-%{version}.tar.gz
Patch0: 0001_include_missing_test_common.patch
Patch1: 0002_fix_variable_scopes_test_api.patch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
Suggests: python-wcwidth
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Pretty-print tabular data in Python, a library and a command-line utility.
%prep
%setup -q -n tabulate-%{version}
%patch0 -p1
%patch1 -p1
rm -f tabulate.egg-info/.PKG-INFO.swp
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE README README.rst
%{_bindir}/tabulate
%{python_sitelib}/*
%changelog