]>
Commit | Line | Data |
---|---|---|
3bb862c3 AF |
1 | Summary: Boot Process Performance Visualization |
2 | Summary(pl.UTF-8): Wizualizacja wydajności procesu startu systemu | |
3 | Name: bootchart2 | |
4 | Version: 0.14.2 | |
2af7bb4e | 5 | Release: 1 |
3bb862c3 AF |
6 | License: GPL v2 |
7 | Group: Base | |
8 | Source0: https://github.com/downloads/mmeeks/bootchart/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 298487b2bda897e974f9862f0a0ad0ee | |
10 | URL: https://github.com/mmeeks/bootchart | |
11 | BuildRequires: python | |
2af7bb4e | 12 | Requires: systemd-init |
3bb862c3 AF |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | A tool for performance analysis and visualization of the GNU/Linux | |
17 | boot process. Resource utilization and process information are | |
18 | collected during the boot process and are later rendered in a PNG, SVG | |
19 | or EPS encoded chart. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | Narzędzie do analizy i wizualizacji wydajności procesu startu systemu | |
23 | GNU/Linux. Podczas startu systemu zbirane są informacje o procesach i | |
24 | wykorzystaniu zasobów, a następnie są przedstawiane w postaci wykresu | |
25 | w formacie PNG, SVG lub EPS. | |
26 | ||
27 | %package gui | |
28 | Summary: GUI for bootchart2 | |
29 | Group: Base | |
2af7bb4e BZ |
30 | Requires: python-pycairo |
31 | Requires: python-pygobject | |
32 | Requires: python-pygtk-gtk | |
3bb862c3 AF |
33 | |
34 | %description gui | |
35 | A tool for performance analysis and visualization of the GNU/Linux | |
36 | boot process. Resource utilization and process information are | |
37 | collected during the boot process and are later rendered in a PNG, SVG | |
38 | or EPS encoded chart. | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
44 | %{__make} \ | |
3bb862c3 AF |
45 | CC="%{__cc}" \ |
46 | CFLAGS="%{rpmcflags}" | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
2af7bb4e BZ |
52 | NO_PYTHON_COMPILE=1 \ |
53 | PY_LIBDIR=%{py_scriptdir} \ | |
54 | SYSTEMD_UNIT_DIR=%{systemdunitdir} \ | |
3bb862c3 AF |
55 | DESTDIR=$RPM_BUILD_ROOT |
56 | ||
2af7bb4e BZ |
57 | %post |
58 | %systemd_post | |
59 | %systemd_enable bootchart.service | |
60 | ||
61 | %preun | |
62 | %systemd_preun bootchart.service | |
63 | ||
64 | %postun | |
65 | %systemd_postun bootchart.service | |
66 | ||
3bb862c3 AF |
67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %attr(755,root,root) /sbin/bootchartd | |
2af7bb4e BZ |
73 | %dir /lib/bootchart |
74 | %dir /lib/bootchart/tmpfs | |
3bb862c3 | 75 | %attr(755,root,root) /lib/bootchart/bootchart-collector |
2af7bb4e | 76 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bootchartd.conf |
3bb862c3 AF |
77 | %{systemdunitdir}/bootchart-done.service |
78 | %{systemdunitdir}/bootchart-done.timer | |
79 | %{systemdunitdir}/bootchart.service | |
80 | %{_mandir}/man1/bootchart2.1* | |
81 | %{_mandir}/man1/bootchartd.1* | |
82 | ||
83 | %files gui | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/pybootchartgui | |
86 | %{_mandir}/man1/pybootchartgui.1* | |
87 | %{py_sitescriptdir}/pybootchartgui |