]> git.pld-linux.org Git - packages/s-tui.git/blob - s-tui.spec
rebuild with python 3.10
[packages/s-tui.git] / s-tui.spec
1 Summary:        Terminal-based CPU stress and monitoring utility
2 Name:           s-tui
3 Version:        1.1.3
4 Release:        4
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
9 # Source0-md5:  d385dab7d03d97cef3580e4d8ada8cd0
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 Requires:       python3-devel-tools
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
27 %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python3}\\1,' \
28     s_tui/s_tui.py
29
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
This page took 0.04836 seconds and 3 git commands to generate.