]>
Commit | Line | Data |
---|---|---|
0c7f06e9 JP |
1 | Summary: Terminal-based CPU stress and monitoring utility |
2 | Name: s-tui | |
523c4af0 | 3 | Version: 1.1.3 |
2d11ce37 | 4 | Release: 4 |
0c7f06e9 JP |
5 | License: GPL v2+ |
6 | Group: Applications/System | |
7 | #Source0Download: https://pypi.org/simple/s-tui/ | |
8 | Source0: https://files.pythonhosted.org/packages/source/s/s-tui/%{name}-%{version}.tar.gz | |
523c4af0 | 9 | # Source0-md5: d385dab7d03d97cef3580e4d8ada8cd0 |
0c7f06e9 JP |
10 | URL: https://amanusk.github.io/s-tui/ |
11 | BuildRequires: python3-modules | |
12 | BuildRequires: python3-setuptools | |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.720 | |
07b1811d | 15 | Requires: python3-devel-tools |
0c7f06e9 JP |
16 | Suggests: stress |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Stress-Terminal UI, s-tui, monitors CPU temperature, frequency, power | |
22 | and utilization in a graphical way from the terminal. | |
23 | ||
24 | %prep | |
25 | %setup -q | |
26 | ||
a6ffcfcb JR |
27 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python3}\\1,' \ |
28 | s_tui/s_tui.py | |
29 | ||
0c7f06e9 JP |
30 | %build |
31 | %py3_build | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %py3_install | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc README.md | |
44 | %attr(755,root,root) %{_bindir}/s-tui | |
45 | %{py3_sitescriptdir}/s_tui | |
46 | %{py3_sitescriptdir}/s_tui-*-py*.egg-info |