]>
Commit | Line | Data |
---|---|---|
0c7f06e9 JP |
1 | Summary: Terminal-based CPU stress and monitoring utility |
2 | Name: s-tui | |
523c4af0 | 3 | Version: 1.1.3 |
a6ffcfcb | 4 | Release: 2 |
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 | |
15 | Suggests: stress | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Stress-Terminal UI, s-tui, monitors CPU temperature, frequency, power | |
21 | and utilization in a graphical way from the terminal. | |
22 | ||
23 | %prep | |
24 | %setup -q | |
25 | ||
a6ffcfcb JR |
26 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python3}\\1,' \ |
27 | s_tui/s_tui.py | |
28 | ||
0c7f06e9 JP |
29 | %build |
30 | %py3_build | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %py3_install | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %doc README.md | |
43 | %attr(755,root,root) %{_bindir}/s-tui | |
44 | %{py3_sitescriptdir}/s_tui | |
45 | %{py3_sitescriptdir}/s_tui-*-py*.egg-info |