Blame python-pkgutil-resolve-name.spec

89ccaf
#
89ccaf
# spec file for package python-pkgutil-resolve-name
89ccaf
#
89ccaf
# Copyright (c) 2020 SUSE LLC
89ccaf
#
89ccaf
# All modifications and additions to the file contributed by third parties
89ccaf
# remain the property of their copyright owners, unless otherwise agreed
89ccaf
# upon. The license for this file, and modifications and additions to the
89ccaf
# file, is the same license as for the pristine package itself (unless the
89ccaf
# license for the pristine package is not an Open Source License, in which
89ccaf
# case the license is the MIT License). An "Open Source License" is a
89ccaf
# license that conforms to the Open Source Definition (Version 1.9)
89ccaf
# published by the Open Source Initiative.
89ccaf
89ccaf
# Please submit bugfixes or comments via https://bugs.opensuse.org/
89ccaf
#
89ccaf
89ccaf
89ccaf
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
89ccaf
Name:           python-pkgutil-resolve-name
89ccaf
Version:        1.0.0
89ccaf
Release:        0
89ccaf
Summary:        Backport of Python 3.9's pkgutil.resolve_name
89ccaf
License:        Python-2.0 AND MIT
89ccaf
Group:          Development/Languages/Python
89ccaf
URL:            https://github.com/graingert/pkgutil-resolve-name
89ccaf
Source:         https://files.pythonhosted.org/packages/source/p/pkgutil_resolve_name/pkgutil_resolve_name-%{version}.tar.gz
89ccaf
BuildRequires:  %{python_module setuptools}
89ccaf
BuildRequires:  fdupes
89ccaf
BuildRequires:  python-rpm-macros
89ccaf
BuildArch:      noarch
89ccaf
%python_subpackages
89ccaf
89ccaf
%description
89ccaf
Backport of Python 3.9's pkgutil.resolve_name which
89ccaf
resolves a name to an object.
89ccaf
89ccaf
%prep
89ccaf
%setup -q -n pkgutil_resolve_name-%{version}
89ccaf
89ccaf
%build
89ccaf
%python_build
89ccaf
89ccaf
%install
89ccaf
%python_install
89ccaf
%python_expand %fdupes %{buildroot}%{$python_sitelib}
89ccaf
89ccaf
# No tests provided in repo of backport
89ccaf
89ccaf
%files %{python_files}
89ccaf
%doc README.rst
89ccaf
%license LICENSE
89ccaf
%{python_sitelib}/*
89ccaf
89ccaf
%changelog