Accepting request 809263 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/809263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glances?expand=0&rev=20
This commit is contained in:
parent
3538e2b834
commit
20cad302d7
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 06:34:24 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 6 18:46:52 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
|
@ -40,11 +40,13 @@ Requires: python-bottle
|
||||
Requires: python-future
|
||||
Requires: python-psutil >= 5.6.3
|
||||
Requires: python-requests
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-curses
|
||||
Provides: python-glances = %{version}
|
||||
Obsoletes: python-glances < %{version}
|
||||
BuildArch: noarch
|
||||
Provides: glances
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -62,6 +64,8 @@ size of the user interface.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/glances.1
|
||||
%python_clone -a %{buildroot}%{_bindir}/glances
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@ -70,11 +74,17 @@ export LANG=en_US.UTF-8
|
||||
%python_exec unitest-restful.py
|
||||
%python_exec unitest-xmlrpc.py
|
||||
|
||||
%post
|
||||
%python_install_alternative glances glances.1
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative glances
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc NEWS.rst README.rst
|
||||
%python3_only %{_bindir}/glances
|
||||
%python3_only %{_mandir}/man1/glances.1.gz
|
||||
%python_alternative %{_bindir}/glances
|
||||
%python_alternative %{_mandir}/man1/glances.1%{?ext_man}
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user