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