From 2140e911c9e6d4818915ff3af31377d3a54758e48d50e65eee45f93a127e925f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 11 Dec 2018 09:18:21 +0000 Subject: [PATCH] Accepting request 656919 from home:trenn OBS-URL: https://build.opensuse.org/request/show/656919 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-linux-procfs?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-linux-procfs-0.6.tar.xz | 3 ++ python-linux-procfs.changes | 20 ++++++++++++ python-linux-procfs.spec | 59 ++++++++++++++++++++++++++++++++++ 5 files changed, 106 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-linux-procfs-0.6.tar.xz create mode 100644 python-linux-procfs.changes create mode 100644 python-linux-procfs.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-linux-procfs-0.6.tar.xz b/python-linux-procfs-0.6.tar.xz new file mode 100644 index 0000000..933a27c --- /dev/null +++ b/python-linux-procfs-0.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:829f3e17bb22f6c6e661c20c1b05e9ef2c7be1c2d71fa2100c836ae7ff6a4f18 +size 18404 diff --git a/python-linux-procfs.changes b/python-linux-procfs.changes new file mode 100644 index 0000000..7442201 --- /dev/null +++ b/python-linux-procfs.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Mon Dec 10 17:10:01 UTC 2018 - trenn@suse.de + +- Package needed for latest tuned (bsc#1071436) +- correct version in first changelog entry +- only xz, removed gz tarball +- called test executable in %check section +- Removed never/unused patch +- Use python3_install and python3_build, this package is only + needed for python3 intentionally +- Remove %{python_files} from %files section again, this package + is for python3 intended only +- Run spec_cleaner +- Use pycache_only + +------------------------------------------------------------------- +Fri Dec 7 16:41:39 UTC 2018 - trenn@suse.de + +- Inital version 0.6 submission + diff --git a/python-linux-procfs.spec b/python-linux-procfs.spec new file mode 100644 index 0000000..ce6931e --- /dev/null +++ b/python-linux-procfs.spec @@ -0,0 +1,59 @@ +# +# 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