]> git.pld-linux.org Git - packages/tuna.git/blob - tuna.spec
0c7fcbf9b22cd1ff75afdddaae71be515368500d
[packages/tuna.git] / tuna.spec
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.15
5 Release:        2
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:  31c4cd0a9df82086d7792734bf699be2
10 URL:            https://rt.wiki.kernel.org/index.php/Tuna
11 BuildRequires:  gettext-devel
12 BuildRequires:  python3-devel >= 1:3.2
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.714
15 BuildRequires:  tar >= 1:1.22
16 BuildRequires:  xz
17 Requires:       gtk+3 >= 3.0
18 Requires:       python3-ethtool
19 Requires:       python3-linux-procfs >= 0.6
20 Requires:       python3-matplotlib
21 Requires:       python3-numpy
22 Requires:       python3-pygobject3 >= 3.0
23 Requires:       python3-schedutils >= 0.6
24 Suggests:       python3-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 %py3_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 %py3_install
58
59 cp -p tuna/tuna_gui.glade $RPM_BUILD_ROOT%{_datadir}/tuna
60 install tuna-cmd.py $RPM_BUILD_ROOT%{_bindir}/tuna
61 install oscilloscope-cmd.py $RPM_BUILD_ROOT%{_bindir}/oscilloscope
62 cp -pr help $RPM_BUILD_ROOT%{_datadir}/tuna/help
63 cp -p docs/tuna.8 $RPM_BUILD_ROOT%{_mandir}/man8
64 cp -p etc/tuna/example.conf $RPM_BUILD_ROOT%{_sysconfdir}/tuna
65 cp -p etc/tuna.conf $RPM_BUILD_ROOT%{_sysconfdir}
66 cp -p org.tuna.policy $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
67 cp -p tuna.desktop $RPM_BUILD_ROOT%{_desktopdir}
68
69 # l10n-ed message catalogues
70 for lng in `cat po/LINGUAS`; do
71         po=po/"$lng.po"
72         install -d $RPM_BUILD_ROOT%{_datadir}/locale/${lng}/LC_MESSAGES
73         msgfmt $po -o $RPM_BUILD_ROOT%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
74 done
75
76 %find_lang %{name}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc ChangeLog docs/oscilloscope+tuna.html
84 %attr(755,root,root) %{_bindir}/oscilloscope
85 %attr(755,root,root) %{_bindir}/tuna
86 %{py3_sitescriptdir}/tuna
87 %{py3_sitescriptdir}/tuna-%{version}-py*.egg-info
88 %{_datadir}/tuna
89 %dir %{_sysconfdir}/tuna
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tuna.conf
91 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/tuna/example.conf
92 %{_datadir}/polkit-1/actions/org.tuna.policy
93 %{_desktopdir}/tuna.desktop
94 %{_mandir}/man8/tuna.8*
This page took 0.070131 seconds and 3 git commands to generate.