%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-pytools Version: 8 Release: 2%{?dist} Summary: A collection of tools for python Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/pytools Source0: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools %description Pytools are a few interesting things that are missing from the Python Standard Library. Small tool functions such as :: * len_iterable, * argmin, * tuple generation, * permutation generation, * ASCII table pretty printing, * GvR's mokeypatch_xxx() hack, * The elusive flatten, and much more. * Michele Simionato's decorator module * A time-series logging module, pytools.log. * Batch job submission, pytools.batchjob. * A lexer, pytools.lex. %prep %setup -q -n pytools-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pytools/runalyzer.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README PKG-INFO %{_bindir}/* %{python_sitelib}/* %changelog * Thu Apr 09 2009 Ramakrishna Reddy Yekulla 8-2 - Spec file cleanup * Wed Apr 08 2009 Ramakrishna Reddy Yekulla 8-1 - Initial RPM release