commit ae8bc4ee49b59f9fc2764acf47340e5bfc6e739ba3fdfd2b4b15cc23fe2e1ee2 Author: Tomáš Chvátal Date: Tue May 14 22:24:16 2019 +0000 Accepting request 703016 from home:eapodaca:branches:devel:languages:python new package OBS-URL: https://build.opensuse.org/request/show/703016 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glances?expand=0&rev=1 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/adjust-data-files.patch b/adjust-data-files.patch new file mode 100644 index 0000000..3800ab9 --- /dev/null +++ b/adjust-data-files.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 73883c1..86f0be5 100755 +--- a/setup.py ++++ b/setup.py +@@ -32,8 +32,6 @@ with open('README.rst', encoding='utf-8') as f: + + def get_data_files(): + data_files = [ +- ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst', +- 'CONTRIBUTING.md', 'conf/glances.conf']), + ('share/man/man1', ['docs/man/glances.1']) + ] + diff --git a/python-Glances.changes b/python-Glances.changes new file mode 100644 index 0000000..e6a5851 --- /dev/null +++ b/python-Glances.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------- +Tue May 14 20:55:09 UTC 2019 - Ethan Apodaca + +- Add glances package (v3.1.0). + * This is a useful utility to view system usage on machines. + + More advanced than htop + + Can view disk usage, netowrk usage etc. + + Can view containerized application usage. diff --git a/python-Glances.spec b/python-Glances.spec new file mode 100644 index 0000000..f8af023 --- /dev/null +++ b/python-Glances.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-Glances +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-Glances +Version: 3.1.0 +Release: 0 +Summary: A cross-platform curses-based monitoring tool +License: LGPL-3.0-only +Group: Development/Languages/Python +URL: https://github.com/nicolargo/glances +Source: https://github.com/nicolargo/glances/archive/v%{version}.tar.gz +Patch0: adjust-data-files.patch +Patch1: remove-shebang.patch +BuildRequires: %{python_module bottle} +BuildRequires: %{python_module psutil >= 5.3.0} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-bottle +Requires: python-curses +Requires: python-psutil >= 5.3.0 +Requires: python-requests +BuildArch: noarch +%python_subpackages + +%description +Glances is a cross-platform monitoring tool which aims to present a +large amount of monitoring information through a curses or Web +based interface. The information dynamically adapts depending on the +size of the user interface. + +%prep +%setup -q -n glances-%{version} +%autopatch -p1 + +%build +%python_build + +%check +export LANG=en_US.UTF-8 +%python_exec unitest.py +%python_exec unitest-restful.py +%python_exec unitest-xmlrpc.py + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license COPYING +%doc NEWS README.rst +%python3_only %{_bindir}/glances +%python3_only %{_mandir}/man1/glances.1.gz + +%{python_sitelib}/* + +%changelog diff --git a/remove-shebang.patch b/remove-shebang.patch new file mode 100644 index 0000000..adb199f --- /dev/null +++ b/remove-shebang.patch @@ -0,0 +1,9 @@ +diff --git a/glances/__main__.py b/glances/__main__.py +index 197d5ce..3889719 100644 +--- a/glances/__main__.py ++++ b/glances/__main__.py +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # -*- coding: utf-8 -*- + # + # Glances - An eye on your system diff --git a/v3.1.0.tar.gz b/v3.1.0.tar.gz new file mode 100644 index 0000000..6b497f0 --- /dev/null +++ b/v3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56e67aee5960ecb575a7277e87b06d305ec87d2108f65860d13d9111d320bdf5 +size 6688798