python-decorator/python-decorator.spec

67 lines
2.1 KiB
RPMSpec
Raw Normal View History

2008-04-08 00:07:38 +00:00
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-decorator
2009-05-22 05:24:36 +00:00
Version: 3.0.1
Release: 1%{?dist}
2008-04-08 00:07:38 +00:00
Summary: Module to simplify usage of decorators
Group: Development/Languages
License: BSD
URL: http://www.phyast.pitt.edu/~micheles/python/documentation.html
Source0: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz
2009-05-22 05:24:36 +00:00
Patch0: decorator-3.0.1-doctest.patch
2008-04-08 00:07:38 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
BuildRequires: python-nose
2008-04-08 00:07:38 +00:00
%description
The aim of the decorator module is 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. The core of this module is a decorator factory called decorator.
%prep
%setup -q -n decorator-%{version}
2009-05-22 05:24:36 +00:00
%patch0 -p1 -b .doctest
chmod a-x *.txt *.py
2008-04-08 00:07:38 +00:00
%{__sed} -i 's/\r//' README.txt
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%check
nosetests --with-doctest
2008-04-08 00:07:38 +00:00
%files
%defattr(-,root,root,-)
%doc *.txt
2008-04-08 00:07:38 +00:00
%{python_sitelib}/*
%changelog
2009-05-22 05:24:36 +00:00
* Thu May 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.0.1-1
- Update to upstream release 3.0.1.
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Jan 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 2.3.2-1
- Update to 2.3.2
- Enable tests via nose
2008-11-29 15:27:22 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.2.0-2
- Rebuild for Python 2.6
2008-04-08 00:07:38 +00:00
* Thu Dec 20 2007 Toshio Kuratomi <toshio@fedoraproject.org> - 2.2.0-1
- Initial Fedora Build