diff --git a/.gitignore b/.gitignore index e69de29..1f157a7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/prettytable-0.5.tar.gz diff --git a/python-prettytable.spec b/python-prettytable.spec new file mode 100644 index 0000000..97a8a4d --- /dev/null +++ b/python-prettytable.spec @@ -0,0 +1,49 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +Name: python-prettytable +Version: 0.5 +Release: 1%{?dist} +Summary: Python library to display tabular data in tables + +Group: Development/Languages +License: BSD +Source0: http://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.5.tar.gz +URL: http://pypi.python.org/pypi/PrettyTable +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel + +%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 -q -n prettytable-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* + + +%changelog +* Wed Jun 29 2011 Chris Lalancette - 0.5-1 +- Initial package. diff --git a/sources b/sources index e69de29..065be08 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +13a6930d775395f393afd86948afa4fa prettytable-0.5.tar.gz