%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define pkgname text_table Name: python-%{pkgname} Version: 0.02 Release: 3%{?dist} Summary: Simple Eyecandy ASCII Tables Group: Development/Languages License: GPL+ or Artistic URL: http://pypi.python.org/pypi/text_table/0.02 Source0: http://www.swaroopch.info/files/code/python/%{pkgname}-%{version}.tar.gz Source1: LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildArch: noarch %description This module provides an interface to output simple ASCII tables. It is based on the perl module Text::SimpleTable. %prep %setup -q -n %{pkgname}-%{version} %build %{__sed} -ie '1,2d' text_table.py %{__python} setup.py build %{__cp} -p %{SOURCE1} . %install %{__rm} -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc PKG-INFO LICENSE %{python_sitelib}/* %changelog * Thu Mar 12 2009 Ray Van Dolson - 0.02-3 - Wrap description - Remove shebang from non executable * Wed Mar 05 2009 Ray Van Dolson - 0.02-2 - Use python-devel in BuildRequires - Updated license and including license email from upstream per recommendations * Tue Mar 04 2009 Ray Van Dolson - 0.02-1 - Initial package