2 # - initscripts, logs, crons (see rpm files section at bottom of the spec)
3 Summary: AT Computing System and Process Monitor
4 Summary(pl.UTF-8): Monitor obciążenia systemu alternatywny dla programu top
9 Group: Applications/System
10 Source0: http://www.atoptool.nl/download/%{name}-%{version}.tar.gz
11 # Source0-md5: 25b41209435da224e4509dcc12bba328
12 URL: https://www.atoptool.nl/
13 BuildRequires: ncurses-devel
14 BuildRequires: sed >= 4.0
15 BuildRequires: zlib-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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).
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).
37 %{__sed} -i -e '/chown root/d' Makefile
42 LDFLAGS="%{rpmldflags}" \
43 CFLAGS="%{rpmcppflags} %{rpmcflags}"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/default}
49 %{__make} -j1 sysvinstall install \
50 INIPATH=/etc/rc.d/init.d \
51 DEFPATH=%{_sysconfdir}/sysconfig \
52 DESTDIR=$RPM_BUILD_ROOT
54 # drop versioned links
55 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{atop,atopsar}-%{version}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc AUTHOR ChangeLog README
63 %attr(755,root,root) %{_bindir}/atop
64 %attr(755,root,root) %{_bindir}/atopcat
65 %attr(755,root,root) %{_bindir}/atopconvert
66 %attr(755,root,root) %{_bindir}/atopsar
67 %attr(755,root,root) %{_sbindir}/atopacctd
68 %attr(755,root,root) %{_sbindir}/atopgpud
69 %{_mandir}/man1/atop*.1*
70 %{_mandir}/man5/atoprc*.5*
71 %{_mandir}/man8/atopacctd.8*
72 %{_mandir}/man8/atopgpud.8*
74 # review and package these:
75 # don't forget R: procps, find, etc what they use
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
85 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atop
87 %ghost /var/log/atop/dummy_after
88 %ghost /var/log/atop/dummy_before