Chris Lalancette 89eb77f
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
Name:		python-prettytable
Chris Lalancette 89eb77f
Version:	0.5
Chris Lalancette 49506fa
Release:	2%{?dist}
Chris Lalancette 89eb77f
Summary:	Python library to display tabular data in tables
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
Group:		Development/Languages
Chris Lalancette 89eb77f
License:	BSD
Chris Lalancette 89eb77f
Source0:	http://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.5.tar.gz
Chris Lalancette 89eb77f
URL:		http://pypi.python.org/pypi/PrettyTable
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
BuildArch:	noarch
Chris Lalancette 89eb77f
BuildRequires:	python-devel
Chris Lalancette 49506fa
BuildRequires:  python-setuptools
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
%description
Chris Lalancette 89eb77f
PrettyTable is a simple Python library designed to make it quick and easy to
Chris Lalancette 89eb77f
represent tabular data in visually appealing ASCII tables. It was inspired by
Chris Lalancette 89eb77f
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
Chris Lalancette 89eb77f
selection of which columns are to be printed, independent alignment of columns
Chris Lalancette 89eb77f
(left or right justified or centred) and printing of "sub-tables" by specifying
Chris Lalancette 89eb77f
a row range.
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
%prep
Chris Lalancette 89eb77f
%setup -q -n prettytable-%{version}
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
%build
Chris Lalancette 89eb77f
%{__python} setup.py build
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
%install
Chris Lalancette 89eb77f
rm -rf $RPM_BUILD_ROOT
Chris Lalancette 89eb77f
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
%files
Chris Lalancette 89eb77f
%{python_sitelib}/*
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
Chris Lalancette 89eb77f
%changelog
Chris Lalancette 49506fa
* Tue Jul 05 2011 Chris Lalancette <clalance@redhat.com> - 0.5-2
Chris Lalancette 49506fa
- BuildRequire python-setuptools
Chris Lalancette 49506fa
Chris Lalancette 89eb77f
* Wed Jun 29 2011 Chris Lalancette <clalance@redhat.com> - 0.5-1
Chris Lalancette 89eb77f
- Initial package.