|
|
696652 |
%if 0%{?fedora}
|
|
|
696652 |
%global with_python3 1
|
|
|
696652 |
%else
|
|
|
696652 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
696652 |
%endif
|
|
|
696652 |
|
|
|
696652 |
Name: python-decorator
|
|
|
696652 |
Version: 3.4.0
|
|
|
ffb069 |
Release: 3%{?dist}
|
|
|
696652 |
Summary: Module to simplify usage of decorators
|
|
|
696652 |
|
|
|
696652 |
Group: Development/Languages
|
|
|
696652 |
License: BSD
|
|
|
696652 |
URL: http://pypi.python.org/pypi/decorator/
|
|
|
696652 |
Source0: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz
|
|
|
696652 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
696652 |
|
|
|
696652 |
BuildArch: noarch
|
|
|
696652 |
BuildRequires: python2-devel
|
|
|
696652 |
BuildRequires: python-setuptools
|
|
|
696652 |
BuildRequires: python-nose
|
|
|
696652 |
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
BuildRequires: python3-devel
|
|
|
696652 |
BuildRequires: python3-setuptools
|
|
|
696652 |
%endif
|
|
|
696652 |
|
|
|
696652 |
%description
|
|
|
696652 |
The aim of the decorator module is to simplify the usage of decorators for
|
|
|
696652 |
the average programmer, and to popularize decorators usage giving examples
|
|
|
696652 |
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
|
|
696652 |
etc. The core of this module is a decorator factory called decorator.
|
|
|
696652 |
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
%package -n python3-decorator
|
|
|
696652 |
Summary: Module to simplify usage of decorators in python3
|
|
|
696652 |
Group: Development/Languages
|
|
|
696652 |
|
|
|
696652 |
%description -n python3-decorator
|
|
|
696652 |
The aim of the decorator module is to simplify the usage of decorators for
|
|
|
696652 |
the average programmer, and to popularize decorators usage giving examples
|
|
|
696652 |
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
|
|
696652 |
etc. The core of this module is a decorator factory called decorator.
|
|
|
696652 |
%endif # if with_python3
|
|
|
696652 |
|
|
|
696652 |
%prep
|
|
|
696652 |
%setup -q -n decorator-%{version}
|
|
|
696652 |
|
|
|
696652 |
chmod a-x *.txt *.py
|
|
|
696652 |
%{__sed} -i 's/\r//' README.txt
|
|
|
696652 |
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
rm -rf %{py3dir}
|
|
|
696652 |
cp -a . %{py3dir}
|
|
|
696652 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
696652 |
%endif # with_python3
|
|
|
696652 |
|
|
|
696652 |
|
|
|
696652 |
%build
|
|
|
696652 |
%{__python} setup.py build
|
|
|
696652 |
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
pushd %{py3dir}
|
|
|
696652 |
%{__python3} setup.py build
|
|
|
696652 |
popd
|
|
|
696652 |
%endif # with_python3
|
|
|
696652 |
|
|
|
696652 |
|
|
|
696652 |
%install
|
|
|
696652 |
rm -rf $RPM_BUILD_ROOT
|
|
|
696652 |
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
696652 |
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
pushd %{py3dir}
|
|
|
696652 |
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
696652 |
popd
|
|
|
696652 |
%endif # with_python3
|
|
|
696652 |
|
|
|
696652 |
%clean
|
|
|
696652 |
rm -rf $RPM_BUILD_ROOT
|
|
|
696652 |
|
|
|
696652 |
%check
|
|
|
696652 |
# Until we get the python-multiprocessing backport packaged
|
|
|
696652 |
%if 0%{?fedora} || 0%{?rhel} > 5
|
|
|
696652 |
nosetests --with-doctest -e documentation3
|
|
|
696652 |
%endif
|
|
|
696652 |
|
|
|
696652 |
# nose is not Python3 ready yet
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
pushd %{py3dir}
|
|
|
696652 |
PYTHONPATH=$(pwd)/build/lib python3 documentation3.py
|
|
|
696652 |
popd
|
|
|
696652 |
%endif # with_python3
|
|
|
696652 |
|
|
|
696652 |
%files
|
|
|
696652 |
%defattr(-,root,root,-)
|
|
|
696652 |
%doc *.txt documentation.py
|
|
|
696652 |
%{python_sitelib}/*
|
|
|
696652 |
|
|
|
696652 |
%if 0%{?with_python3}
|
|
|
696652 |
%files -n python3-decorator
|
|
|
696652 |
%defattr(-,root,root,-)
|
|
|
696652 |
%doc *.txt documentation3.py
|
|
|
696652 |
%{python3_sitelib}/*
|
|
|
696652 |
%endif # with_python3
|
|
|
696652 |
|
|
|
696652 |
|
|
|
696652 |
%changelog
|
|
|
ffb069 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4.0-3
|
|
|
ffb069 |
- Mass rebuild 2013-12-27
|
|
|
ffb069 |
|
|
|
696652 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
696652 |
|
|
|
696652 |
* Thu Oct 18 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 3.4.0-1
|
|
|
696652 |
- New upstream release
|
|
|
696652 |
|
|
|
696652 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.3-4
|
|
|
696652 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
696652 |
|
|
|
696652 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.3-3
|
|
|
696652 |
- remove rhel logic from with_python3 conditional
|
|
|
696652 |
|
|
|
696652 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.3-2
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
696652 |
|
|
|
696652 |
* Tue Apr 24 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.3-1
|
|
|
696652 |
- New upstream release
|
|
|
696652 |
|
|
|
696652 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-2
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
696652 |
|
|
|
696652 |
* Fri Sep 2 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.2-1
|
|
|
696652 |
- New upstream release
|
|
|
696652 |
|
|
|
696652 |
* Thu Apr 28 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-1
|
|
|
696652 |
- Upstream update 3.3.1 that deprecates the .decorated attribute name in
|
|
|
696652 |
favor of .__wrapped__
|
|
|
696652 |
|
|
|
696652 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-2
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
696652 |
|
|
|
696652 |
* Sat Jan 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-1
|
|
|
696652 |
- Upstream update 3.3.0 that adds function annotation support for python3 code
|
|
|
696652 |
|
|
|
696652 |
* Wed Dec 1 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.1-1
|
|
|
696652 |
- Upstream bugfix 3.2.1
|
|
|
696652 |
- Enable unittests for python3
|
|
|
696652 |
|
|
|
696652 |
* Mon Aug 23 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-4
|
|
|
696652 |
- Rebuild for python-3.2.
|
|
|
696652 |
|
|
|
696652 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.2.0-3
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
696652 |
|
|
|
696652 |
* Wed Jul 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-2
|
|
|
696652 |
- Add documentation.py files to both subpackages (this contains a brief license
|
|
|
696652 |
assertion among other things).
|
|
|
696652 |
* Wed Jun 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-1
|
|
|
696652 |
- Minor cleanups
|
|
|
696652 |
- Upgrade to 3.2.0
|
|
|
696652 |
- Add python3 subpackage
|
|
|
696652 |
|
|
|
696652 |
* Tue Oct 6 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-2
|
|
|
696652 |
- Really include the new source tarball
|
|
|
696652 |
|
|
|
696652 |
* Tue Oct 6 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
|
|
|
696652 |
- Update to upstream release 3.1.2
|
|
|
696652 |
|
|
|
696652 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
696652 |
|
|
|
696652 |
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 3.0.1-2
|
|
|
696652 |
- Only run the test suite on Fedora 11, which has Py2.6 and the multiprocessing
|
|
|
696652 |
module. We can disable this once the compat module is packaged for F10 and
|
|
|
696652 |
below.
|
|
|
696652 |
|
|
|
696652 |
* Thu May 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.0.1-1
|
|
|
696652 |
- Update to upstream release 3.0.1.
|
|
|
696652 |
|
|
|
696652 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
|
|
|
696652 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
696652 |
|
|
|
696652 |
* Wed Jan 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 2.3.2-1
|
|
|
696652 |
- Update to 2.3.2
|
|
|
696652 |
- Enable tests via nose
|
|
|
696652 |
|
|
|
696652 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.2.0-2
|
|
|
696652 |
- Rebuild for Python 2.6
|