- Update to 2.3.2
- Enable tests via nose
This commit is contained in:
parent
5b9455d6f1
commit
ecb4ee5b8c
@ -1 +1 @@
|
||||
decorator-2.2.0.zip
|
||||
decorator-2.3.2.tar.gz
|
||||
|
@ -2,19 +2,20 @@
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
Name: python-decorator
|
||||
Version: 2.2.0
|
||||
Release: 2%{?dist}
|
||||
Version: 2.3.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Module to simplify usage of decorators
|
||||
|
||||
Group: Development/Languages
|
||||
License: BSD
|
||||
URL: http://www.phyast.pitt.edu/~micheles/python/documentation.html
|
||||
Source0: http://www.phyast.pitt.edu/~micheles/python/decorator-%{version}.zip
|
||||
Source0: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools-devel
|
||||
BuildRequires: python-nose
|
||||
|
||||
%description
|
||||
The aim of the decorator module is to simplify the usage of decorators for
|
||||
@ -23,8 +24,8 @@ of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
||||
etc. The core of this module is a decorator factory called decorator.
|
||||
|
||||
%prep
|
||||
%setup -q -c -n decorator-%{version}
|
||||
chmod a-x *
|
||||
%setup -q -n decorator-%{version}
|
||||
chmod a-x *.txt *.py Makefile
|
||||
%{__sed} -i 's/\r//' README.txt
|
||||
|
||||
%build
|
||||
@ -38,15 +39,18 @@ rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib}
|
||||
%{__python} doctester.py documentation.txt
|
||||
nosetests --with-doctest
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.txt CHANGES.txt documentation.*
|
||||
%doc *.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 2.3.2-1
|
||||
- Update to 2.3.2
|
||||
- Enable tests via nose
|
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.2.0-2
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user