# # spec file for package python-linux-procfs # # Copyright (c) 2018 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-linux-procfs Version: 0.6 Release: 0 Summary: Linux /proc abstraction classes License: GPL-2.0-or-later Group: Development/Languages/Python URL: https://rt.wiki.kernel.org/index.php/Tuna Source: https://cdn.kernel.org/pub/software/libs/python/%{name}/%{name}-%{version}.tar.xz BuildRequires: python-rpm-macros BuildRequires: python3 BuildRequires: python3-setuptools Requires: python3-six BuildArch: noarch %description Abstractions to extract information from the Linux kernel /proc files. %prep %setup -q %build %python3_build %install %python3_install %check python3 bitmasklist_test.py %files %defattr(0755,root,root,0755) %{python_sitelib}/procfs/ %{_bindir}/pflags %defattr(0644,root,root,0755) %{python_sitelib}/python_linux_procfs*.egg-info %pycache_only %dir %{python_sitelib}/procfs/__pycache__ %pycache_only %{python_sitelib}/procfs/__pycache__/*.pyc %license COPYING %changelog