File python-linux-procfs.spec of Package python-linux-procfs

# spec file for package python-linux-procfs
# Copyright (c) 2020 SUSE LLC
# 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-%{**}}
Name:           python-linux-procfs
Version:        0.6
Release:        0
Summary:        Linux /proc abstraction classes
License:        GPL-2.0-or-later
Group:          Development/Languages/Python
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module six}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch:      noarch

Abstractions to extract information from the Linux kernel /proc files.

%setup -q


%python_clone -a %{buildroot}%{_bindir}/pflags
%python_expand %fdupes %{buildroot}%{$python_sitelib}


%python_install_alternative pflags

%python_uninstall_alternative pflags

%files %{python_files}
%python_alternative %{_bindir}/pflags
%license COPYING