15
0

Accepting request 484363 from home:TheBlackCat:branches:devel:languages:python

Update to 4.0.11

OBS-URL: https://build.opensuse.org/request/show/484363
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=28
This commit is contained in:
Jan Matejek
2017-04-05 12:04:52 +00:00
committed by Git OBS Bridge
parent 7b77330a22
commit 531a132a57
4 changed files with 63 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-decorator
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX 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,8 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-decorator
Version: 3.4.2
Version: 4.0.11
Release: 0
Url: http://pypi.python.org/pypi/decorator
Summary: Better living through Python with decorators
@@ -25,15 +26,12 @@ 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: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%python_subpackages
%description
As of now, writing custom decorators correctly requires some experience and it
@@ -49,19 +47,19 @@ useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.
%prep
%setup -q -n decorator-%{version}
sed -i 's/\r//' README.rst # Fix EOL encoding
sed -i 's/\r//' docs/README.rst # Fix EOL encoding
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/decorator.py
%{python_sitelib}/decorator.pyc
%{python_sitelib}/decorator-%{version}-py%{py_ver}.egg-info
%doc CHANGES.md LICENSE.txt documentation.pdf docs/README.rst
%{python_sitelib}/decorator.py*
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
%{python_sitelib}/decorator-%{version}-py*.egg-info
%changelog