## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global sys_name s_tui Name: s-tui Version: 1.1.6 Release: %autorelease Summary: Terminal-based CPU stress and monitoring utility BuildArch: noarch License: GPL-2.0-or-later URL: https://github.com/amanusk/s-tui Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) Recommends: stress-ng %description Stress-Terminal UI, s-tui, monitors CPU temperature, frequency, power and utilization in a graphical way from the terminal. What it does * Monitoring your CPU temperature/utilization/frequency/power * Shows performance dips caused by thermal throttling * Requires no X-server * Built in options for stressing the CPU (stress/stress-ng/FIRESTARTER) %prep %autosetup # Remove bundled egg-info rm -rf %{name}.egg-info %build %py3_build %install %py3_install # Remove shebang from Python libraries for lib in %{buildroot}%{python3_sitelib}/%{sys_name}/{/,sources,sturwid}/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done for lib in %{buildroot}%{python3_sitelib}/%{sys_name}/{/,sources,sturwid}/*.py; do sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %files %license LICENSE %doc README.md %{_bindir}/%{name} %{python3_sitelib}/%{sys_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/%{sys_name}/ %changelog * Sun Jan 28 2024 Artem Polishchuk - 1.1.6-1 - [packit] 1.1.6 upstream release * Sun Jan 28 2024 Artem Polishchuk - 1.1.5-2 - packit: Update config * Fri Jan 26 2024 Artem Polishchuk - 1.1.5-1 - build: Update to 1.1.5 * Fri Jan 26 2024 Artem Polishchuk - 1.1.4-6 - build: Add Packit config * Fri Jan 26 2024 Artem Polishchuk - 1.1.4-5 - license: Convert to SPDX * Sat Jul 22 2023 Fedora Release Engineering - 1.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.1.4-3 - Rebuilt for Python 3.12 * Sat Jan 21 2023 Fedora Release Engineering - 1.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Aug 19 2022 Artem Polishchuk - 1.1.4-1 - build(update): 1.1.4 * Sat Jul 23 2022 Fedora Release Engineering - 1.1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.3-3 - Rebuilt for Python 3.11 * Sat Jan 22 2022 Fedora Release Engineering - 1.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jul 24 2021 Artem Polishchuk - 1.1.3-1 - build(update): 1.1.3 * Fri Jul 23 2021 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.1.1-2 - Rebuilt for Python 3.10 * Tue Mar 23 2021 Artem Polishchuk - 1.1.1-1 - Initial package