#4 update to 3.2.5
Closed 5 months ago by aekoroglu. Opened 6 months ago by aekoroglu.
Unknown source rawhide  into  rawhide

update to 3.2.5
aekoroglu • 6 months ago  
file modified
+2 -23
@@ -1,23 +1,2 @@

- /glances-1.6.tar.gz

- /v1.6.1.tar.gz

- /v1.7.tar.gz

- /v1.7.1.tar.gz

- /v1.7.2.tar.gz

- /v1.7.3.tar.gz

- /v1.7.4.tar.gz

- /v1.7.5.tar.gz

- /v1.7.6.tar.gz

- /v1.7.7.tar.gz

- /v2.1.2.tar.gz

- /v2.2.1.tar.gz

- /glances_no_root_needed.patch

- /v2.3.tar.gz

- /v2.5.1.tar.gz

- /v2.6.1.tar.gz

- /v2.7.1.tar.gz

- /v2.11.1.tar.gz

- /v3.0.2.tar.gz

- /v3.1.0.tar.gz

- /v3.1.4.tar.gz

- /v3.1.4.1.tar.gz

- /glances.conf

+ /v*.tar.gz

+ /glances-*.tar.gz

@@ -0,0 +1,31 @@

+ Description: Disable nagging suggestion to upgrade using pip

+ Author: Sebastien Badia <sbadia@debian.org>

+ Bug-Debian: https://bugs.debian.org/877127

+ Forwarded: not-needed

+ Last-Update: 2022-04-16

+ 

+ --- a/glances/standalone.py

+ +++ b/glances/standalone.py

+ @@ -107,9 +107,6 @@

+              # Init screen

+              self.screen = GlancesCursesStandalone(config=config, args=args)

+  

+ -        # Check the latest Glances version

+ -        self.outdated = Outdated(config=config, args=args)

+ -

+      @property

+      def quiet(self):

+          return self._quiet

+ @@ -188,12 +185,3 @@

+  

+          # Exit from export modules

+          self.stats.end()

+ -

+ -        # Check Glances version versus PyPI one

+ -        if self.outdated.is_outdated():

+ -            print(

+ -                "You are using Glances version {}, however version {} is available.".format(

+ -                    self.outdated.installed_version(), self.outdated.latest_version()

+ -                )

+ -            )

+ -            print("You should consider upgrading using: pip install --upgrade glances")

file added
+11
@@ -0,0 +1,11 @@

+ [Unit]

+ Description=Glances

+ Documentation=https://nicolargo.github.io/glances/

+ After=network.target

+ 

+ [Service]

+ ExecStart=/usr/bin/glances -s -B 127.0.0.1

+ Restart=on-abort

+ 

+ [Install]

+ WantedBy=multi-user.target

file modified
+43 -15
@@ -1,42 +1,66 @@

- %global _python_bytecompile_errors_terminate_build 0

- 

- %{?python_enable_dependency_generator}

  Name:		glances	

- Version:	3.1.4.1

- Release:	12%{?dist}

+ Version:	3.2.5

+ Release:	1%{?dist}

  Summary:	CLI curses based monitoring tool

  

  License:	GPLv3

- URL:		https://github.com/nicolargo/glances

- Source0:	https://github.com/nicolargo/glances/archive/v%{version}.tar.gz

- Source1:	glances.conf

+ URL:		https://nicolargo.github.io/glances/

+ Source0:	https://github.com/nicolargo/glances/archive/v%{version}/%{name}-%{version}.tar.gz

+ Source1:	%{name}.service

+ 

+ Patch1:		disable-update-check.patch

+ Patch2:		unitest-python3.patch

+ 

  BuildArch:	noarch

+ 

+ BuildRequires:	python3-bottle

+ BuildRequires:	python3-dateutils

+ BuildRequires:	python3-defusedxml

  BuildRequires:	python3-devel

- BuildRequires:	python3-setuptools

  BuildRequires:	python3-psutil >= 5.3.0

- 

+ BuildRequires:	python3-requests

+ BuildRequires:	python3-setuptools

+ BuildRequires:	systemd-units

+ Requires:	python3-bottle

+ Requires:	python3-dateutils

+ Requires:	python3-defusedxml

+ Requires:	python3-future

+ Requires:	python3-psutil >= 5.3.0

+ Requires:	python3-requests

+ Requires:	python3-packaging

  %{?python_provide:%python_provide python3-%{name}}

  Provides:	python3-%{name} = %{version}-%{release}

  

  %description

  Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD.

- 

  Glances uses the PsUtil library to get information from your system.

- 

  It is developed in Python.

  

  %prep

- %autosetup -n %{name}-%{version}

+ %autosetup -p1 -n %{name}-%{version}

  

  %build

  %py3_build

  

  %install

  %py3_install

- %{__install} -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/glances/glances.conf

+ mkdir -p %{buildroot}%{_unitdir}

+ install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

+ install -D -p -m 644 conf/glances.conf $RPM_BUILD_ROOT/etc/glances/glances.conf

  

  %check

- %{__python3} setup.py test

+ %__python3 unitest.py

+ %__python3 unitest-restful.py

+ %__python3 unitest-xmlrpc.py

+ 

+ %post

+ %systemd_post %{name}.service

+ 

+ %preun

+ %systemd_preun %{name}.service

+ 

+ %postun

+ %systemd_postun %{name}.service

  

  %files

  %doc AUTHORS COPYING README.rst
@@ -47,9 +71,13 @@

  %{python3_sitelib}/Glances-%{version}-py%{python3_version}.egg-info/

  %exclude %{_datadir}/doc/glances

  %{_datadir}/man/man1/glances.1*

+ %{_unitdir}/%{name}.service

  

  

  %changelog

+ * Mon May 09 2022 Ali Erdinc Koroglu <aekoroglu@fedoraproject.org> - 3.2.5-1

+ - Update to 3.2.5 (rhbz#1870254)

+ 

  * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.4.1-12

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

  

file modified
+1 -2
@@ -1,2 +1,1 @@

- SHA512 (v3.1.4.1.tar.gz) = 8e15149bde87d14d8176fe247e911a04b24900a95917e5711dfc8764ecec3238f696eea08c36bc59f68a4702e028909150e3318907f11fc53c5cc56441870ff3

- SHA512 (glances.conf) = 42a24daa6e7382c3c3ab79e76c21aff6f03cbf57682d6be2a86f1cd24fbd1fa1fd6afc5e8cb118188bde25aad9fcff759fd2b93e9a80ddbd94709a6098c94d79

+ SHA512 (glances-3.2.5.tar.gz) = ebff1cf893ca4d3e490f4a6b72fa70df0afb4c36ac1b3fa762dcaa47206bc1e613c8d87f1b2fc5cae27636612a89b417ae91d016a129da4ac43a2a8a6f913945

@@ -0,0 +1,22 @@

+ --- a/unitest-restful.py	2022-05-06 14:47:44.554391265 +0300

+ +++ b/unitest-restful.py	2022-05-06 14:48:19.719234237 +0300

+ @@ -64,7 +64,7 @@

+          global pid

+  

+          print('INFO: [TEST_000] Start the Glances Web Server')

+ -        cmdline = "python -m glances -w -p %s" % SERVER_PORT

+ +        cmdline = "python3 -m glances -B localhost -w -p %s" % SERVER_PORT

+          print("Run the Glances Web Server on port %s" % SERVER_PORT)

+          args = shlex.split(cmdline)

+          pid = subprocess.Popen(args)

+ --- a/unitest-xmlrpc.py	2022-05-06 14:47:54.544346654 +0300

+ +++ b/unitest-xmlrpc.py	2022-05-06 14:48:31.281182609 +0300

+ @@ -53,7 +53,7 @@

+          global pid

+  

+          print('INFO: [TEST_000] Start the Glances Web Server')

+ -        cmdline = "python -m glances -s -p %s" % SERVER_PORT

+ +        cmdline = "python3 -m glances -B localhost -s -p %s" % SERVER_PORT

+          print("Run the Glances Server on port %s" % SERVER_PORT)

+          args = shlex.split(cmdline)

+          pid = subprocess.Popen(args)