Compare commits
10 Commits
ed279fd205
...
114ca2e411
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
114ca2e411 | ||
|
|
3db692ea8b | ||
|
|
4feddfd981 | ||
|
|
7d5651d82e | ||
|
|
000cb38639 | ||
|
|
78cfd50d1b | ||
|
|
7c835e34b5 | ||
|
|
352c82377d | ||
|
|
9a82b48457 | ||
|
|
54a44cfe8a |
Binary file not shown.
BIN
tuna-0.19.tar.xz
Normal file
BIN
tuna-0.19.tar.xz
Normal file
Binary file not shown.
62
tuna.spec
62
tuna.spec
@ -1,16 +1,14 @@
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
||||
|
||||
Name: tuna
|
||||
Version: 0.13.1
|
||||
Release: 7
|
||||
Version: 0.19
|
||||
Release: 3
|
||||
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: python2-devel gettext
|
||||
Requires: python2-ethtool python2-linux-procfs >= 0.4.5 python2-schedutils >= 0.2
|
||||
BuildRequires: python3-devel gettext
|
||||
Requires: python3-ethtool python3-gobject-base python3-linux-procfs >= 0.6 python3-schedutils >= 0.6
|
||||
|
||||
%description
|
||||
Provides interface to change the scheduler and IRQ tunables across the CPU
|
||||
@ -22,7 +20,8 @@ Can be used as a command line utility without installing a GUI library.
|
||||
|
||||
%package -n oscilloscope
|
||||
Summary: Generic graphical signal plotting tool
|
||||
Requires: python2-matplotlib python2-matplotlib-gtk python2-numpy pygtk2
|
||||
Requires: python3-matplotlib-gtk3 python3-numpy python3-cairocffi
|
||||
Requires: gobject-introspection
|
||||
Requires: tuna = %{version}-%{release}
|
||||
|
||||
%description -n oscilloscope
|
||||
@ -42,19 +41,34 @@ Man manual document for tuna
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%{__python} setup.py 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
|
||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||
install -d %{buildroot}/{%{_bindir},%{_datadir}/tuna/help/kthreads}
|
||||
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 -Dp -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/tuna.conf
|
||||
install -Dp -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/org.tuna.policy
|
||||
install -Dp -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/tuna.8
|
||||
install -Dp -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/example.conf
|
||||
install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/
|
||||
#kernel version >= 5.13 Move SCHED_DEBUG sysctl to debugfs
|
||||
#https://github.com/torvalds/linux/commit/8a99b6833c884fa0e7919030d93fecedc69fc625
|
||||
sed -i '/kernel.sched_latency_ns/d' etc/tuna/example.conf
|
||||
sed -i '/kernel.sched_min_granularity_ns/d' etc/tuna/example.conf
|
||||
sed -i '/kernel.sched_nr_migrate/d' etc/tuna/example.conf
|
||||
sed -i '/kernel.sched_tunable_scaling/d' etc/tuna/example.conf
|
||||
sed -i '/kernel.sched_wakeup_granularity_ns/d' etc/tuna/example.conf
|
||||
sed -i '/kernel.sched_migration_cost_ns/d' etc/tuna/example.conf
|
||||
|
||||
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"
|
||||
@ -66,12 +80,10 @@ done
|
||||
|
||||
%files -f tuna.lang
|
||||
%defattr(-,root,root,-)
|
||||
%if "%{python_ver}" >= "2.5"
|
||||
%{python_sitelib}/*.egg-info
|
||||
%endif
|
||||
%{python3_sitelib}/*.egg-info
|
||||
%{_bindir}/tuna
|
||||
%{_datadir}/tuna/
|
||||
%{python_sitelib}/tuna/
|
||||
%{python3_sitelib}/tuna/
|
||||
%{_sysconfdir}/{tuna.conf,tuna/*}
|
||||
%{_datadir}/polkit-1/actions/org.tuna.policy
|
||||
|
||||
@ -85,5 +97,17 @@ done
|
||||
%doc ChangeLog
|
||||
|
||||
%changelog
|
||||
* Thu Mar 27 2025 zhangjinqiang <jinqiang.oerv@isrc.iscas.ac.cn> - 0.19-3
|
||||
- Requires add python3-gobject-base
|
||||
|
||||
* Tue Jan 14 2025 xu_ping <707078654@qq.com> - 0.19-2
|
||||
- fix tuna apply example.conf failed due to kernel version >=5.13
|
||||
|
||||
* Mon Oct 16 2023 chenyaqiang <chenyaqiang@huawei.com> - 0.19-1
|
||||
- Upgrade to 0.19
|
||||
|
||||
* 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user