%define modname decorator Name: python-%{modname} Version: 3.0.1 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.gz BuildRoot: %{_tmppath}/%{name}-buildroot %{py_requires} BuildRequires: python-devel %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 -x * %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 CHANGES.txt README.txt corner-cases.txt documentation.txt other.txt util.py %changelog * 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