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