]>
Commit | Line | Data |
---|---|---|
7a1ac7aa ER |
1 | # TODO |
2 | # - initscripts, logs, crons (see rpm files section at bottom of the spec) | |
8e1ee7f1 | 3 | Summary: AT Computing System and Process Monitor |
1b941686 | 4 | Summary(pl.UTF-8): Monitor obciążenia systemu alternatywny dla programu top |
9ee5db17 | 5 | Name: atop |
3ffacfd1 | 6 | Version: 2.7.1 |
bda29495 | 7 | Release: 1 |
c787f2ec | 8 | License: GPL v2+ |
6bcc3670 | 9 | Group: Applications/System |
2f608e67 | 10 | Source0: http://www.atoptool.nl/download/%{name}-%{version}.tar.gz |
3ffacfd1 | 11 | # Source0-md5: 25b41209435da224e4509dcc12bba328 |
2f608e67 | 12 | URL: https://www.atoptool.nl/ |
9ee5db17 | 13 | BuildRequires: ncurses-devel |
7a1ac7aa | 14 | BuildRequires: sed >= 4.0 |
8a1a4a5c | 15 | BuildRequires: zlib-devel |
8e1ee7f1 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9ee5db17 | 17 | |
18 | %description | |
19 | The program atop is an interactive monitor to view the load on a | |
20 | Linux-system. It shows the occupation of the most critical | |
21 | hardware-resources (from a performance point of view) on system-level, | |
22 | i.e. cpu, memory, disk and network. It also shows which processes are | |
23 | responsible for the indicated load (again cpu-, memory-, disk- and | |
24 | network-load on process-level). | |
25 | ||
66c71a22 JR |
26 | %description -l pl.UTF-8 |
27 | Program atop to interaktywny monitor służący do obserwacji obciążenia | |
28 | systemu linuksowego. Pokazuje zajętość najbardziej krytycznych dla | |
29 | funkcjonowania systemu zasobów (z wydajnościowego punktu widzenia) na | |
30 | poziomie systemu, np. procesora, pamięci, dysków czy sieci. Pokazuje | |
31 | również które procesy są odpowiedzialne za generowane obciążenie | |
32 | (znów: na poziomie procesora, pamięci, dysków czy sieci). | |
9ee5db17 | 33 | |
34 | %prep | |
4c28a75f | 35 | %setup -q |
9ee5db17 | 36 | |
7a1ac7aa ER |
37 | %{__sed} -i -e '/chown root/d' Makefile |
38 | ||
9ee5db17 | 39 | %build |
40 | %{__make} \ | |
2cafabeb | 41 | CC="%{__cc}" \ |
b5153f91 | 42 | LDFLAGS="%{rpmldflags}" \ |
3ffacfd1 | 43 | CFLAGS="%{rpmcppflags} %{rpmcflags}" |
9ee5db17 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
d739bf1c | 47 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/default} |
2f608e67 | 48 | |
3ffacfd1 | 49 | %{__make} -j1 sysvinstall install \ |
7a1ac7aa | 50 | INIPATH=/etc/rc.d/init.d \ |
3ffacfd1 | 51 | DEFPATH=%{_sysconfdir}/sysconfig \ |
7a1ac7aa | 52 | DESTDIR=$RPM_BUILD_ROOT |
9ee5db17 | 53 | |
7a1ac7aa ER |
54 | # drop versioned links |
55 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{atop,atopsar}-%{version} | |
9ee5db17 | 56 | |
8e1ee7f1 | 57 | %clean |
0da4c31d | 58 | rm -rf $RPM_BUILD_ROOT |
9ee5db17 | 59 | |
60 | %files | |
61 | %defattr(644,root,root,755) | |
c787f2ec | 62 | %doc AUTHOR ChangeLog README |
9ee5db17 | 63 | %attr(755,root,root) %{_bindir}/atop |
3ffacfd1 AM |
64 | %attr(755,root,root) %{_bindir}/atopcat |
65 | %attr(755,root,root) %{_bindir}/atopconvert | |
7a1ac7aa ER |
66 | %attr(755,root,root) %{_bindir}/atopsar |
67 | %attr(755,root,root) %{_sbindir}/atopacctd | |
3ffacfd1 | 68 | %attr(755,root,root) %{_sbindir}/atopgpud |
d272f606 | 69 | %{_mandir}/man1/atop*.1* |
e15dd76a | 70 | %{_mandir}/man5/atoprc*.5* |
7a1ac7aa | 71 | %{_mandir}/man8/atopacctd.8* |
3ffacfd1 | 72 | %{_mandir}/man8/atopgpud.8* |
7a1ac7aa ER |
73 | |
74 | # review and package these: | |
75 | # don't forget R: procps, find, etc what they use | |
76 | %if 0 | |
77 | %dir %{_sysconfdir}/%{name} | |
78 | # atop.daily - invoked from cron, move to %{_prefix}/lib instead? | |
79 | %attr(755,root,root) %{_sysconfdir}/%{name}/atop.daily | |
80 | %attr(754,root,root) /etc/rc.d/init.d/atop | |
81 | %attr(754,root,root) /etc/rc.d/init.d/atopacct | |
82 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/atop | |
83 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/psaccs_atop | |
84 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/psaccu_atop | |
3ffacfd1 | 85 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atop |
7a1ac7aa ER |
86 | %dir /var/log/atop |
87 | %ghost /var/log/atop/dummy_after | |
88 | %ghost /var/log/atop/dummy_before | |
89 | %endif |