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

# spec file for package python-backports.os
# Copyright (c) 2019 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define         skip_python3 1
Name:           python-backports.os
Version:        0.1.1
Release:        0
Summary:        Backport of new features in Python's os module
License:        Python-2.0
Group:          Development/Languages/Python
BuildRequires:  %{python_module backports}
BuildRequires:  %{python_module future}
BuildRequires:  %{python_module setuptools_scm}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-backports
Requires:       python-future
BuildArch:      noarch

This package provides backports of new features in Python’s os
module under the backports namespace.

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


%python_expand rm %{buildroot}%{$python_sitelib}/backports/*
%python_expand rm -f %{buildroot}%{$python_sitelib}/backports/__pycache__/__init__*.py*
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%python_exec test

%files %{python_files}
%doc README.rst
%license LICENSE

openSUSE Build Service is sponsored by