2016-09-01 12:29:46 +00:00
|
|
|
%global pypi_name decorator
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
%bcond_with python3
|
|
|
|
%else
|
|
|
|
%bcond_without python3
|
2010-06-30 19:40:26 +00:00
|
|
|
%endif
|
2008-04-08 00:07:38 +00:00
|
|
|
|
2016-09-01 12:29:46 +00:00
|
|
|
Name: python-%{pypi_name}
|
2017-09-16 17:54:40 +00:00
|
|
|
Version: 4.1.2
|
|
|
|
Release: 1%{?dist}
|
2008-04-08 00:07:38 +00:00
|
|
|
Summary: Module to simplify usage of decorators
|
|
|
|
|
|
|
|
License: BSD
|
2016-09-01 12:29:46 +00:00
|
|
|
URL: https://github.com/micheles/decorator
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
2008-04-08 00:07:38 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-09-01 12:29:46 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
%if %{with python3}
|
2016-02-03 01:27:38 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2016-09-01 12:29:46 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif # with python3
|
2010-06-30 20:25:03 +00:00
|
|
|
|
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.
|
|
|
|
|
2016-02-03 01:27:38 +00:00
|
|
|
%package -n python2-decorator
|
|
|
|
Summary: Module to simplify usage of decorators in python2
|
|
|
|
%{?python_provide:%python_provide python2-decorator}
|
|
|
|
|
|
|
|
%description -n python2-decorator
|
|
|
|
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.
|
|
|
|
|
2016-09-01 12:29:46 +00:00
|
|
|
%if %{with python3}
|
2010-06-30 20:25:03 +00:00
|
|
|
%package -n python3-decorator
|
|
|
|
Summary: Module to simplify usage of decorators in python3
|
2016-02-03 01:27:38 +00:00
|
|
|
%{?python_provide:%python_provide python3-decorator}
|
2010-06-30 20:25:03 +00:00
|
|
|
|
|
|
|
%description -n python3-decorator
|
|
|
|
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.
|
2016-09-01 12:29:46 +00:00
|
|
|
%endif # with python3
|
2010-06-30 20:25:03 +00:00
|
|
|
|
2008-04-08 00:07:38 +00:00
|
|
|
%prep
|
2016-09-01 12:29:46 +00:00
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
2010-06-30 20:25:03 +00:00
|
|
|
|
2008-04-08 00:07:38 +00:00
|
|
|
%build
|
2016-09-01 12:29:46 +00:00
|
|
|
%py2_build
|
|
|
|
%if %{with python3}
|
|
|
|
%py3_build
|
|
|
|
%endif # with python3
|
2010-06-30 20:25:03 +00:00
|
|
|
|
2008-04-08 00:07:38 +00:00
|
|
|
%install
|
2016-09-01 12:29:46 +00:00
|
|
|
%py2_install
|
|
|
|
%if %{with python3}
|
|
|
|
%py3_install
|
|
|
|
%endif # with python3
|
2016-12-29 19:52:37 +00:00
|
|
|
# Remove this when https://github.com/micheles/decorator/issues/32 is fixed.
|
|
|
|
find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \;
|
2008-04-08 00:07:38 +00:00
|
|
|
|
|
|
|
%check
|
2016-09-01 12:29:46 +00:00
|
|
|
%{__python2} setup.py test
|
|
|
|
%if %{with python3}
|
|
|
|
%{__python3} setup.py test
|
|
|
|
%endif # with python3
|
2010-06-30 20:25:03 +00:00
|
|
|
|
2016-09-01 12:29:46 +00:00
|
|
|
%files -n python2-%{pypi_name}
|
|
|
|
%doc docs/README.rst
|
2015-09-16 17:33:36 +00:00
|
|
|
%license LICENSE.txt
|
2016-02-03 01:27:38 +00:00
|
|
|
%{python2_sitelib}/*
|
2008-04-08 00:07:38 +00:00
|
|
|
|
2016-09-01 12:29:46 +00:00
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%doc docs/README.rst
|
2015-09-16 17:33:36 +00:00
|
|
|
%license LICENSE.txt
|
2016-02-03 01:27:38 +00:00
|
|
|
%{python3_sitelib}/decorator.py
|
|
|
|
%{python3_sitelib}/decorator-*.egg-info/
|
|
|
|
%{python3_sitelib}/__pycache__/*
|
2016-09-01 12:29:46 +00:00
|
|
|
%endif # with python3
|
2010-06-30 20:25:03 +00:00
|
|
|
|
2008-04-08 00:07:38 +00:00
|
|
|
%changelog
|
2017-09-16 17:54:40 +00:00
|
|
|
* Sat Sep 16 2017 Kevin Fenzi <kevin@scrye.com> - 4.1.2-1
|
|
|
|
- Update to 4.1.2. Fixes bug #1471373
|
|
|
|
|
2017-07-27 10:01:31 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 08:43:35 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-23 09:46:17 +00:00
|
|
|
* Mon Jan 23 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.0.11-1
|
|
|
|
- Update to 4.0.11
|
|
|
|
|
2016-12-29 19:52:37 +00:00
|
|
|
* Thu Dec 29 2016 Kevin Fenzi <kevin@scrye.com> - 4.0.10-5
|
|
|
|
- Remove SOURCES.txt~ file. Fixes bug #1404634
|
|
|
|
|
2016-12-11 11:51:04 +00:00
|
|
|
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 4.0.10-4
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2017-01-23 09:46:17 +00:00
|
|
|
* Mon Aug 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.0.10-3
|
2016-09-01 12:29:46 +00:00
|
|
|
- SPEC Cleanup
|
|
|
|
- Remove unused build requires
|
|
|
|
|
2016-07-19 09:21:46 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.10-2
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-06-07 23:22:52 +00:00
|
|
|
* Tue Jun 07 2016 Kevin Fenzi <kevin@scrye.com> - 4.0.10-1
|
|
|
|
- Update to 4.0.10. Fixes bug #1343523
|
|
|
|
|
2016-04-04 17:44:02 +00:00
|
|
|
* Mon Apr 04 2016 Ralph Bean <rbean@redhat.com> - 4.0.9-1
|
|
|
|
- new version
|
|
|
|
|
2016-02-03 01:27:38 +00:00
|
|
|
* Tue Feb 2 2016 Orion Poplawski <orion@cora.nwra.com> - 4.0.6-2
|
|
|
|
- Modernize spec
|
|
|
|
- Fix python3 package file ownership
|
|
|
|
- Run python3 tests
|
|
|
|
|
2015-12-11 16:04:00 +00:00
|
|
|
* Fri Dec 11 2015 Ralph Bean <rbean@redhat.com> - 4.0.6-1
|
|
|
|
- new version
|
|
|
|
|
2015-11-04 12:16:41 +00:00
|
|
|
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 4.0.4-2
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-09-25 13:15:37 +00:00
|
|
|
* Fri Sep 25 2015 Ralph Bean <rbean@redhat.com> - 4.0.4-1
|
|
|
|
- new version
|
|
|
|
|
2015-09-16 17:33:36 +00:00
|
|
|
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 4.0.2-1
|
|
|
|
- new version
|
|
|
|
|
2015-06-18 18:54:36 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-23 03:22:59 +00:00
|
|
|
* Mon Mar 23 2015 Ralph Bean <rbean@redhat.com> - 3.4.2-1
|
|
|
|
- new version
|
2015-03-23 13:05:53 +00:00
|
|
|
- The documentation.py files are now gone from upstream.
|
2015-03-23 03:22:59 +00:00
|
|
|
|
2014-06-07 19:22:41 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-16 14:10:55 +00:00
|
|
|
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2013-08-04 06:56:14 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 19:13:08 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-18 18:55:00 +00:00
|
|
|
* Thu Oct 18 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 3.4.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-08-04 08:30:32 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.3-4
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-08-03 17:35:45 +00:00
|
|
|
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.3-3
|
|
|
|
- remove rhel logic from with_python3 conditional
|
|
|
|
|
2012-07-21 05:37:32 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-24 15:30:19 +00:00
|
|
|
* Tue Apr 24 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-14 01:40:03 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-09-02 07:24:40 +00:00
|
|
|
* Fri Sep 2 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2011-04-28 15:53:46 +00:00
|
|
|
* Thu Apr 28 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-1
|
|
|
|
- Upstream update 3.3.1 that deprecates the .decorated attribute name in
|
|
|
|
favor of .__wrapped__
|
|
|
|
|
2011-02-09 03:28:45 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-01 18:55:08 +00:00
|
|
|
* Sat Jan 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-1
|
|
|
|
- Upstream update 3.3.0 that adds function annotation support for python3 code
|
|
|
|
|
2010-12-02 05:26:14 +00:00
|
|
|
* Wed Dec 1 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.1-1
|
|
|
|
- Upstream bugfix 3.2.1
|
|
|
|
- Enable unittests for python3
|
|
|
|
|
2010-08-23 15:44:07 +00:00
|
|
|
* Mon Aug 23 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-4
|
|
|
|
- Rebuild for python-3.2.
|
|
|
|
|
2010-07-22 04:04:45 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-07-08 01:45:03 +00:00
|
|
|
* Wed Jul 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-2
|
|
|
|
- Add documentation.py files to both subpackages (this contains a brief license
|
|
|
|
assertion among other things).
|
2015-03-23 13:05:53 +00:00
|
|
|
|
2010-06-30 19:40:26 +00:00
|
|
|
* Wed Jun 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-1
|
|
|
|
- Minor cleanups
|
|
|
|
- Upgrade to 3.2.0
|
2010-06-30 20:25:03 +00:00
|
|
|
- Add python3 subpackage
|
2010-06-30 19:40:26 +00:00
|
|
|
|
2009-10-06 20:40:24 +00:00
|
|
|
* Tue Oct 6 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-2
|
|
|
|
- Really include the new source tarball
|
|
|
|
|
2009-10-06 20:35:57 +00:00
|
|
|
* Tue Oct 6 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
|
|
|
|
- Update to upstream release 3.1.2
|
|
|
|
|
2009-07-26 20:17:31 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-05 13:58:43 +00:00
|
|
|
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 3.0.1-2
|
|
|
|
- Only run the test suite on Fedora 11, which has Py2.6 and the multiprocessing
|
|
|
|
module. We can disable this once the compat module is packaged for F10 and
|
|
|
|
below.
|
|
|
|
|
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.
|
|
|
|
|
2009-02-26 21:08:01 +00:00
|
|
|
* 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
|
|
|
|
|
2009-01-22 07:53:46 +00:00
|
|
|
* 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
|