python-Glances/python-Glances.spec
Matej Cepl 7b0a5608ae Accepting request 783553 from home:mnhauke
- Update to version 3.1.4
  Enhancements and new features:
  * Add a CSV output format to the STDOUT output mode
  * Feature request: HDD S.M.A.R.T. reports
  * Sort docker stats
  * Prohibit some plug-in data from being exported to influxdb
  * Disable plugin from Glances configuration file
  * Curses-browser's server list paging added
  * Client Browser's thread management added
  Bugs corrected:
  * TypeError: '<' not supported between instances of 'float' and 'str'
  * GPU plugin not exported to influxdb
  * Crash after running fine for several hours
  * Timezone listed doesn’t match system timezone, outputs wrong
    time
  * ERROR -- Can not grab extended stats (invalid attr name
    'num_fds')
  * Action on port/web plugins is not working
  * Support for monochrome (serial) terminals e.g. vt220
  * TypeError on opening (Wifi plugin)
  * Some field name are incorrect in CSV export
  * Standard output misbehaviour (need to flush)
  * Create an option to set the username to use in Web or RPC Server
    mode
  * Missing kernel task names when the webui is switched to long
    process names
  * Drive name with special characters causes crash
  * Cannot get stats in Cloud plugin
  Others:
  * Add Docker documentation

OBS-URL: https://build.opensuse.org/request/show/783553
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glances?expand=0&rev=14
2020-03-10 22:40:26 +00:00

81 lines
2.4 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.4
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
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