forked from pool/python-Glances
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
This commit is contained in:
commit
ae8bc4ee49
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
13
adjust-data-files.patch
Normal file
13
adjust-data-files.patch
Normal file
@ -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'])
|
||||
]
|
||||
|
8
python-Glances.changes
Normal file
8
python-Glances.changes
Normal file
@ -0,0 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 14 20:55:09 UTC 2019 - Ethan Apodaca <eapodaca@suse.com>
|
||||
|
||||
- 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.
|
74
python-Glances.spec
Normal file
74
python-Glances.spec
Normal file
@ -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
|
9
remove-shebang.patch
Normal file
9
remove-shebang.patch
Normal file
@ -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
|
3
v3.1.0.tar.gz
Normal file
3
v3.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:56e67aee5960ecb575a7277e87b06d305ec87d2108f65860d13d9111d320bdf5
|
||||
size 6688798
|
Loading…
x
Reference in New Issue
Block a user