File python-PrettyTable.spec of Package python-PrettyTable
#
# spec file for package python-prettytable
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Christian Berendt.
#
# 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-PrettyTable
Version: 0.7.2
Release: 0
Summary: Library for displaying tabular data in a visually appealing ASCII format
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://prettytable.googlecode.com/files/prettytable-%{version}.tar.bz2
Source: prettytable-%{version}.tar.bz2
BuildRequires: python-devel
BuildRequires: python-distribute
Provides: python-prettytable = 0.7.2
Obsoletes: python-prettytable < 0.7.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
PrettyTable is a simple Python library designed to make it quick and easy to
represent tabular data in visually appealing ASCII tables. It was inspired by
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
selection of which columns are to be printed, independent alignment of columns
(left or right justified or centred) and printing of "sub-tables" by
specifying a row range.
%prep
%setup -n prettytable-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING README
%{python_sitelib}/*
%changelog