File python-backports.functools_lru_cache.spec of Package python-backports.functools_lru_cache

# spec file for package python-backports.functools_lru_cache
# 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
# 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

Name:           python-backports.functools_lru_cache
Version:        1.2.1
Release:        0
Summary:        Backported functools.lru_cache
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  python
BuildRequires:  python-Sphinx
BuildRequires:  python-pytest
BuildRequires:  python-pytest-runner
BuildRequires:  python-setuptools
BuildRequires:  python-setuptools_scm
# %{python_sitelib}/backports is a namespace package, and so under python 2 it must have a proper namespace
# python-backports provides this to prevent backports packages from conflicting.
# Please see:
# If you need to link, the python-backports package is built as a subpackage of python-configparser
BuildRequires:  python-backports
Requires:       python-backports
BuildArch:      noarch
Provides:       python2-backports.functools_lru_cache

Backport of functools.lru_cache from Python 3.3 as published at

%setup -q -n backports.functools_lru_cache-%{version}

python2 build
python2 build_sphinx

python2 install \
  --root=%{buildroot} --prefix=%{_prefix}

python2 test

%doc CHANGES.rst README.rst

openSUSE Build Service is sponsored by