15
0

Python3 moved to devel:languages:python3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=20
This commit is contained in:
Sascha Peilicke
2013-06-17 12:50:42 +00:00
committed by Git OBS Bridge
parent 8d10b46cb5
commit 7807967a20
3 changed files with 1 additions and 89 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-decorator
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@@ -16,7 +16,6 @@
#
Name: python-decorator
Version: 3.3.3
Release: 0

View File

@@ -1,22 +0,0 @@
-------------------------------------------------------------------
Thu Nov 22 13:47:34 UTC 2012 - toddrme2178@gmail.com
- Removed openSUSE 11.4 spec file workarounds
-------------------------------------------------------------------
Thu Jun 14 12:06:48 UTC 2012 - toddrme2178@gmail.com
- Fix building on openSUSE <= 12.1
- Minor spec file cleanups
-------------------------------------------------------------------
Fri May 25 08:33:12 UTC 2012 - toddrme2178@gmail.com
- Fix building on openSUSE 11.4
- spec file cleanups
-------------------------------------------------------------------
Wed May 23 07:56:47 UTC 2012 - highwaystar.ru@gmail.com
- python3-decorator package added

View File

@@ -1,65 +0,0 @@
#
# 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
BuildRequires: python3-2to3
BuildRequires: python3-devel
BuildRequires: python3-distribute
BuildRequires: python3-nose
Requires: python(abi) = %{py3_ver}
BuildArch: noarch
%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}
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/
%files
%defattr(-,root,root,-)
%doc README.txt
%{python3_sitelib}/decorator.py*
%{python3_sitelib}/decorator-%{version}-py%{py3_ver}.egg-info
%changelog