python-Glances/python-Glances.spec
Tomáš Chvátal 08a04ea974 Accepting request 764194 from home:mcalabkova:branches:devel:languages:python
- update to 3.1.3
  * Add a new TCP connections status plugin enhancement
  * Add --enable-plugin option from the command line
  * Fix custom refresh time in the web UI
  * Fix issue in WebUI with empty docker stats
  * Glances fails without network interface bug fixed
  * Disable option in the configuration file is now take into account
  * Sensors plugin is disable by default (high CPU consumption on some Linux distribution).
- added upstream patch fix-unittest.patch to fix tests

OBS-URL: https://build.opensuse.org/request/show/764194
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glances?expand=0&rev=12
2020-01-14 09:05:07 +00:00

83 lines
2.6 KiB
RPMSpec

#
# spec file for package python-Glances
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Glances
Version: 3.1.3
Release: 0
Summary: A cross-platform curses-based monitoring tool
License: LGPL-3.0-only
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
Patch2: skip-online-tests.patch
#PATCH-FIX-UPSTREAM https://github.com/nicolargo/glances/commit/793552ea864c9220a578ee5e610ebb85c05728c9 Correct unitest
Patch3: fix-unittest.patch
BuildRequires: %{python_module bottle}
BuildRequires: %{python_module future}
BuildRequires: %{python_module psutil >= 5.6.3}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-bottle
Requires: python-future
Requires: python-psutil >= 5.6.3
Requires: python-requests
Recommends: python-curses
Provides: python-glances = %{version}
Obsoletes: python-glances < %{version}
BuildArch: noarch
%ifpython3
Provides: glances
%endif
%python_subpackages
%description
Glances is a cross-platform monitoring tool which presents 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
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_exec unitest.py
%python_exec unitest-restful.py
%python_exec unitest-xmlrpc.py
%files %{python_files}
%license COPYING
%doc NEWS.rst README.rst
%python3_only %{_bindir}/glances
%python3_only %{_mandir}/man1/glances.1.gz
%{python_sitelib}/*
%changelog