%define modname decorator Name: python-%{modname} Version: 3.3.0 Release: 1 Summary: Better Living Through Python With Decorators URL: http://www.phyast.pitt.edu/~micheles/python/documentation.html License: BSD Group: Development/Libraries/Python Source: %{modname}-%{version}.tar.bz2 Source1: documentation.html BuildRoot: %{_tmppath}/%{name}-buildroot %{py_requires} BuildRequires: python-devel BuildRequires: python-nose %description As of now, writing custom decorators correctly requires some experience and it is not as easy as it could be. For instance, typical implementations of decorators involve nested functions, and we all know that flat is better than nested. Moreover, typical implementations of decorators do not preserve the signature of decorated functions, thus confusing both documentation tools and developers. The aim of the decorator module it to simplify the usage of decorators for the average programmer, and to popularize decorators usage giving examples of useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc. Authors: -------- Michele Simionato %prep %setup -q -n %{modname}-%{version} # Remove executable bits from doc files chmod a-x *.txt *.py sed -i 's/\r//' README.txt cp %{SOURCE1} . %build export CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES %clean rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) %doc README.txt PKG-INFO documentation.html %changelog * Fri Jan 07 2010 - Hans-Peter Jansen - 3.3.0-1 - Update to 3.3.0 * Mon Aug 10 2009 - Ciaran Farrell - 3.0.1-1 - Update to 3.0.1 * Tue Dec 02 2008 - James Oakley - 2.3.2-1 - Initial release