15
0

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

- Implement single-spec version
- Update to version 2.0.1

OBS-URL: https://build.opensuse.org/request/show/517247
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=7
This commit is contained in:
Todd R
2017-08-16 16:34:50 +00:00
committed by Git OBS Bridge
parent 39c805c6d8
commit 5f37acdf8c
4 changed files with 31 additions and 17 deletions

View File

@@ -16,22 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-cachetools
Version: 2.0.0
Version: 2.0.1
Release: 0
Summary: Extensible memoizing collections and decorators
License: MIT
Group: Development/Languages/Python
Url: https://github.com/tkem/cachetools
Source: https://pypi.io/packages/source/c/cachetools/cachetools-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
Source: https://files.pythonhosted.org/packages/source/c/cachetools/cachetools-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
%python_subpackages
%description
This module provides various memoizing collections and decorators,
@@ -42,17 +43,20 @@ function decorator.
%setup -q -n cachetools-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
python setup.py test
%python_exec setup.py test
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst LICENSE CHANGES.rst
%doc CHANGES.rst LICENSE README.rst
%{python_sitelib}/*
%changelog