2 Summary: Application tuning GUI and command line utility
3 Summary(pl.UTF-8): Graficzny interfejs oraz narzędzie linii poleceń do dostrajania aplikacji
8 Group: Libraries/Python
9 Source0: https://www.kernel.org/pub/software/utils/tuna/%{name}-%{version}.tar.xz
10 # Source0-md5: a27ee9c3b8ea432fad9b69f0552dc3e8
11 URL: https://rt.wiki.kernel.org/index.php/Tuna
12 BuildRequires: gettext-devel
13 BuildRequires: python-devel >= 2
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.612
16 BuildRequires: tar >= 1:1.22
18 #Requires: python-ethtool
19 Requires: python-linux-procfs >= 0.4.5
20 Requires: python-matplotlib
21 Requires: python-pygobject
22 Requires: python-pygtk-glade >= 2:2
23 Requires: python-pygtk-gtk >= 2:2
24 Requires: python-schedutils >= 0.2
25 Suggests: python-inet_diag
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Tune provides interface for changing scheduler and IRQ tunables, at
31 whole CPU and at per thread/IRQ level. Allows isolating CPUs for use
32 by a specific application and moving threads and interrupts to a CPU
33 by just dragging and dropping them. Operations can be done on CPU
34 sockets, understanding CPU topology.
36 Tuna can be also used as a command line utility.
38 %description -l pl.UTF-8
39 Tuna udostępnia interfejs do zmiany ustawień planisty oraz IRQ, na
40 poziomie całego procesora, jak i wątku/IRQ. Pozwala na izolowanie
41 procesorów do wykorzystania przez określone aplikacje oraz
42 przenoszenie wątków i przerwań na procesor poprzez przeciąganie ich.
43 Operacje mogą być wykonywane na gniazdach procesorów z uwzględnieniem
46 Tuna może być używana także jako narzędzie linii poleceń.
52 %{__python} setup.py build
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/tuna,%{_bindir},%{_datadir}/tuna,%{_mandir}/man8,%{_datadir}/polkit-1/actions,%{_desktopdir}}
58 %{__python} setup.py install \
60 --root=$RPM_BUILD_ROOT \
65 cp -p tuna/tuna_gui.glade $RPM_BUILD_ROOT%{_datadir}/tuna
66 install tuna-cmd.py $RPM_BUILD_ROOT%{_bindir}/tuna
67 install oscilloscope-cmd.py $RPM_BUILD_ROOT%{_bindir}/oscilloscope
68 cp -pr help $RPM_BUILD_ROOT%{_datadir}/tuna/help
69 cp -p docs/tuna.8 $RPM_BUILD_ROOT%{_mandir}/man8
70 cp -p etc/tuna/example.conf $RPM_BUILD_ROOT%{_sysconfdir}/tuna
71 cp -p etc/tuna.conf $RPM_BUILD_ROOT%{_sysconfdir}
72 cp -p org.tuna.policy $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
73 cp -p tuna.desktop $RPM_BUILD_ROOT%{_desktopdir}
75 # l10n-ed message catalogues
76 for lng in `cat po/LINGUAS`; do
78 install -d $RPM_BUILD_ROOT%{_datadir}/locale/${lng}/LC_MESSAGES
79 msgfmt $po -o $RPM_BUILD_ROOT%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
85 rm -rf $RPM_BUILD_ROOT
87 %files -f %{name}.lang
88 %defattr(644,root,root,755)
89 %doc ChangeLog docs/oscilloscope+tuna.html
90 %attr(755,root,root) %{_bindir}/oscilloscope
91 %attr(755,root,root) %{_bindir}/tuna
92 %{py_sitescriptdir}/tuna
93 %if "%{py_ver}" > "2.4"
94 %{py_sitescriptdir}/tuna-%{version}-py*.egg-info
97 %dir %{_sysconfdir}/tuna
98 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tuna.conf
99 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/tuna/example.conf
100 %{_datadir}/polkit-1/actions/org.tuna.policy
101 %{_desktopdir}/tuna.desktop
102 %{_mandir}/man8/tuna.8*