- 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()")}
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
Name: python-decorator
|
Name: python-decorator
|
||||||
Version: 2.2.0
|
Version: 2.3.2
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Module to simplify usage of decorators
|
Summary: Module to simplify usage of decorators
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.phyast.pitt.edu/~micheles/python/documentation.html
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools-devel
|
BuildRequires: python-setuptools-devel
|
||||||
|
BuildRequires: python-nose
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The aim of the decorator module is to simplify the usage of decorators for
|
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.
|
etc. The core of this module is a decorator factory called decorator.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -n decorator-%{version}
|
%setup -q -n decorator-%{version}
|
||||||
chmod a-x *
|
chmod a-x *.txt *.py Makefile
|
||||||
%{__sed} -i 's/\r//' README.txt
|
%{__sed} -i 's/\r//' README.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -38,15 +39,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib}
|
nosetests --with-doctest
|
||||||
%{__python} doctester.py documentation.txt
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.txt CHANGES.txt documentation.*
|
%doc *.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.2.0-2
|
||||||
- Rebuild for Python 2.6
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user