File python-jaraco.context.spec of Package python-jaraco.context
#
# spec file for package python-jaraco.context
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jaraco.context
Version: 2.0
Release: 0
License: MIT
Summary: Run functions in various contexts
Url: https://github.com/jaraco/jaraco.context
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/j/jaraco.context/jaraco.context-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module jaraco.base}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module jaraco.apt}
BuildRequires: %{python_module more-itertools}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module yg.lockfile}
Requires: python-jaraco.apt
Requires: python-jaraco.base
Requires: python-more-itertools
Requires: python-yg.lockfile
BuildArch: noarch
%python_subpackages
%description
Jaraco.context lets you run functions in various contexts.
%prep
%setup -q -n jaraco.context-%{version}
%build
%python_build
%install
%python_install
# We aren't using the nspkg approach anymore
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.context-%{version}-py*-nspkg.pth
%fdupes %{buildroot}%{$python_sitelib}
}
%check
%python_expand py.test-%{$python_bin_suffix}
%files %{python_files}
%doc CHANGES.rst README.rst
%{python_sitelib}/jaraco.context-%{version}-py*.egg-info
%{python_sitelib}/jaraco/context.py*
%pycache_only %{python_sitelib}/jaraco/__pycache__/context*.py*
%changelog