diff --git a/decorator-3.3.2.tar.gz b/decorator-3.3.2.tar.gz deleted file mode 100644 index a2651f5..0000000 --- a/decorator-3.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c878e3c9a4015893fddcc7a145017bd54bd51cda0eb234cab6a20fa02540cb1f -size 28506 diff --git a/decorator-3.3.3.tar.gz b/decorator-3.3.3.tar.gz new file mode 100644 index 0000000..b8f1ee9 --- /dev/null +++ b/decorator-3.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c14b2257e860958bc0e95a48d1946d90d5dfbed3e3353d7e1c65aa4cb2a0da2 +size 28542 diff --git a/python-decorator.changes b/python-decorator.changes index 825ace1..c3e7c91 100644 --- a/python-decorator.changes +++ b/python-decorator.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 23 07:56:17 UTC 2012 - highwaystar.ru@gmail.com + +- update to version 3.3.3 +- minor spec improvement +- python3 package added + ------------------------------------------------------------------- Tue Nov 29 19:14:17 UTC 2011 - cfarrell@suse.com diff --git a/python-decorator.spec b/python-decorator.spec index 867b2a8..f813c82 100644 --- a/python-decorator.spec +++ b/python-decorator.spec @@ -1,7 +1,7 @@ # # spec file for package python-decorator # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: python-decorator -Version: 3.3.2 +Version: 3.3.3 Release: 0 Url: http://pypi.python.org/pypi/decorator Summary: Better living through Python with decorators @@ -62,6 +62,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) %doc README.txt -%{python_sitelib}/* +%{python_sitelib}/decorator.py +%{python_sitelib}/decorator.pyc +%{python_sitelib}/decorator-%{version}-py%{py_ver}.egg-info %changelog diff --git a/python3-decorator.changes b/python3-decorator.changes new file mode 100644 index 0000000..4b5f782 --- /dev/null +++ b/python3-decorator.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed May 23 07:56:47 UTC 2012 - highwaystar.ru@gmail.com + +- python3-decorator package added + diff --git a/python3-decorator.spec b/python3-decorator.spec new file mode 100644 index 0000000..f64d818 --- /dev/null +++ b/python3-decorator.spec @@ -0,0 +1,76 @@ +# +# spec file for package python3-decorator +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + + +Name: python3-decorator +Version: 3.3.3 +Release: 0 +Url: http://pypi.python.org/pypi/decorator +Summary: Better living through Python with decorators +License: BSD-2-Clause +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildRequires: python3-nose +BuildRequires: python3-2to3 + +%if 0%{?suse_version} && 0%{?suse_version} <= 1140 +%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} +%endif +Requires: python(abi) = %{py3_ver} +%if 0%{?suse_version} && 0%{?suse_version} > 1140 +BuildRequires: python3-base +%endif + +%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildArchitectures: noarch +%endif + +%description +As of now, writing custom decorators correctly requires some experience and it +is not as easy as it could be. For instance, typical implementations of +decorators involve nested functions, and we all know that flat is better than +nested. Moreover, typical implementations of decorators do not preserve the +signature of decorated functions, thus confusing both documentation tools and +developers. + +The aim of the decorator module it 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. + +%prep +%setup -q -n decorator-%{version} +sed -i 's/\r//' README.txt # Fix EOL encoding + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.txt +%{python3_sitelib}/decorator.py +%{python3_sitelib}/decorator.pyc +%{python3_sitelib}/decorator-%{version}-py%{py3_ver}.egg-info + +%changelog