Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
1c72244b92
!24 【x86/arm】openEuler 22.03-LTS-SP1、20.03-LTS-SP4 分支,执行 tuna -g 命令报错,启动GUI界面失败
From: @weiyp2016 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2024-02-23 09:36:36 +00:00
weiyaping
d310bf187c Upgrade to 0.19
Signed-off-by: weiyaping <weiyaping@xfusion.com>
2024-01-19 16:53:57 +08:00
openeuler-ci-bot
dd4d16447f
!19 add help for Recommends
From: @leeffo 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-03-15 07:50:58 +00:00
liweiganga
98ef12cdd3 feat: add help for Recommends 2023-03-14 10:18:50 +08:00
openeuler-ci-bot
607d095b91
!18 Modify tuna config to fix use gtk issue
From: @cherry530 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
2022-12-30 02:55:27 +00:00
cherry530
d972e20c7a Modify tuna config.py use gtk3
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-12-30 08:59:58 +08:00
openeuler-ci-bot
bae80fbc5e !8 [sync] PR-4: upgrade to 0.14.1
From: @openeuler-sync-bot
Reviewed-by: @miao_kaibo,@small_leek,@small_leek
Signed-off-by: @small_leek,@small_leek
2021-05-11 17:43:22 +08:00
maminjie
fb358a7b20 upgrade to 0.14.1
(cherry picked from commit 352c82377dd5c70c8da0d8de5fabdb10333c02d5)
2021-05-06 12:04:07 +08:00
openeuler-ci-bot
ed279fd205 !1 tuna packahe init
Merge pull request !1 from 丁一鸣/dym_test
2020-03-07 20:06:08 +08:00
ding_yi_ming
a7eda19669 package inti 2020-03-06 18:41:03 +08:00
2 changed files with 104 additions and 0 deletions

BIN
tuna-0.19.tar.xz Normal file

Binary file not shown.

104
tuna.spec Normal file
View File

@ -0,0 +1,104 @@
Name: tuna
Version: 0.19
Release: 1
Summary: Application tuning GUI & command line utility
License: GPLv2
URL: https://rt.wiki.kernel.org/index.php/Tuna
Source: https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: python3-devel gettext
Requires: python3-ethtool python3-linux-procfs >= 0.6 python3-schedutils >= 0.6
Recommends: %{name}-help = %{version}-%{release}
%description
Provides interface to change the scheduler and IRQ tunables across the CPU
and below per thread/IRQ level. Allows the CPU to be isolated for specific
applications and drag and drop threads and interrupts to the CPU.
You can complete the operation on the CPU socket to understand the CPU topology.
Can be used as a command line utility without installing a GUI library.
%package -n oscilloscope
Summary: Generic graphical signal plotting tool
Requires: python3-matplotlib-gtk3 python3-numpy python3-cairocffi
Requires: gobject-introspection
Requires: tuna = %{version}-%{release}
%description -n oscilloscope
Plot stream of values read from standard input on the screen,
along with statistics and histograms.
Allows instant viewing of how signal generators (e.g. loop tests,
signaltests or even pings) react when using tuna or regular
chrt & taskket to change their scheduling strategy or real-time priorities.
%package help
Summary: doc for %{name}
%description help
Man manual document for tuna
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%py3_build
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tuna/
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tuna-cmd.py
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" oscilloscope-cmd.py
%install
rm -rf %{buildroot}
%py3_install
mkdir -p %{buildroot}/%{_sysconfdir}/tuna/
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/tuna/help/kthreads,%{_mandir}/man8}
mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions/
install -p -m644 tuna/tuna_gui.glade %{buildroot}/%{_datadir}/tuna/
install -p -m755 tuna-cmd.py %{buildroot}/%{_bindir}/tuna
install -p -m755 oscilloscope-cmd.py %{buildroot}/%{_bindir}/oscilloscope
install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/tuna/help/kthreads/
install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/
install -p -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/
install -p -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/
install -p -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/
for lng in `cat po/LINGUAS`; do
po=po/"$lng.po"
install -d %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES
msgfmt $po -o %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
done
%find_lang tuna
%files -f tuna.lang
%defattr(-,root,root,-)
%{python3_sitelib}/*.egg-info
%{_bindir}/tuna
%{_datadir}/tuna/
%{python3_sitelib}/tuna/
%{_sysconfdir}/{tuna.conf,tuna/*}
%{_datadir}/polkit-1/actions/org.tuna.policy
%files -n oscilloscope
%defattr(-,root,root,-)
%{_bindir}/oscilloscope
%doc docs/{oscilloscope+tuna.html,oscilloscope+tuna.pdf}
%files help
%{_mandir}/man8/tuna.8*
%doc ChangeLog
%changelog
* Fri Jan 19 weiyaping <weiyaping@xfusion.com> - 0.19-1
- Upgrade to 0.19
* Tue Mar 14 2023 leeffo <leeffo@yeah.net> - 0.14.1-3
- add help for Recommends
* Fri Dec 30 2022 xu_ping <xuping33@h-partners.com> - 0.14.1-2
- Modify tuna config.py use gtk3
* Fri Sep 11 2020 maminjie <maminjie1@huawei.com> - 0.14.1-1
- Upgrade to 0.14.1
* Thu Mar 5 2020 dingyiming <dingyiming3@huawei.com> - 0.13.1-7
- Package init