Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (38 sloc) 1.45 KB
%global with_doc 1
%global pkg prettytable
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-%{pkg}
Version: 0.5
Release: 1%{?dist}
Summary: A simple library for displaying tabular data in a visually appealing ASCII table format
Group: Development/Python
License: BSD
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: python-devel python-sphinx
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.
%setup -q -n %{pkg}-%{version}
%{__python} build
rm -rf %{buildroot}
%{__python} install -O1 --skip-build --root %{buildroot}
rm -rf %{buildroot}
* Fri Mar 25 2011 Andrey Brindeyev <> - 0.5-1
- Initial build