%define module pytools %define name python-%{module} %define version 2011.4 %define release %mkrel 2 Summary: A collection of tools for Python Name: %{name} Version: %{version} Release: %{release} Source0: http://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz Patch0: no-distribute.patch License: MIT Group: Development/Python Url: http://mathema.tician.de/software/pytools BuildArch: noarch Requires: python-decorator >= 3.2.0 BuildRequires: python-setuptools >= 0.6c8 BuildRequires: python-devel %description Pytools is a big bag of things that are "missing" from the Python standard library. This is mainly a dependency of my other software packages, and is probably of little interest to you unless you use those. If you're curious nonetheless, here's what's on offer: * A ton of 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 %{module}-%{version} %patch0 -p0 %install %__rm -rf %{buildroot} PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot} --record=FILE_LIST %clean %__rm -rf %{buildroot} %files -f FILE_LIST %defattr(-,root,root) %doc README %changelog * Sun Jan 13 2013 umeabot <umeabot> 2011.4-2.mga3 + Revision: 379419 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Sep 27 2011 lebedov <lebedov> 2011.4-1.mga2 + Revision: 149547 - imported package python-pytools