%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pycolumnize Version: 0.3.2 Release: 2%{?dist} Summary: Python module to align in columns a simple list Group: Development/Languages License: MIT URL: http://code.google.com/p/pycolumnize/ Source0: http://pycolumnize.googlecode.com/files/columnize-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools-devel %description A Python module to format a simple (i.e. not nested) list into aligned columns. A string with embedded newline characters is returned. %prep %setup -q -n columnize-%{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,-) %doc NEWS README.txt %{python_sitelib}/*egg-info %{python_sitelib}/columnize.* %changelog * Tue Jun 23 2009 Kushal Das 0.3.2-2 - Removing comments * Tue Jun 23 2009 Kushal Das 0.3.2-1 - Initial release