]> granicus.if.org Git - sysstat/blob - sysstat-11.3.3.spec
NLS: Sync with translation project
[sysstat] / sysstat-11.3.3.spec
1 Summary:        SAR, SADF, MPSTAT, IOSTAT, TAPESTAT, PIDSTAT and CIFSIOSTAT for Linux
2 Name:           sysstat
3 Version:        11.3.3
4 Release:        1
5 License:        GPL
6 Group:          Applications/System
7 Source0:        %{name}-%{version}.tar.gz
8 URL:            http://pagesperso-orange.fr/sebastien.godard/
9 Packager:       Sebastien Godard <sysstat _at_ orange.fr>
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
11 Requires:       gettext
12
13 %description
14 The sysstat package contains the sar, sadf, mpstat, iostat, tapestat,
15 pidstat, cifsiostat and sa tools for Linux.
16 The sar command collects and reports system activity information.
17 The information collected by sar can be saved in a file in a binary
18 format for future inspection. The statistics reported by sar concern
19 I/O transfer rates, paging activity, process-related activities,
20 interrupts, network activity, memory and swap space utilization, CPU
21 utilization, kernel activities and TTY statistics, among others. Both
22 UP and SMP machines are fully supported.
23 The sadf command may  be used to display data collected by sar in
24 various formats (CSV, XML, etc.) and to draw graphs (SVG).
25 The iostat command reports CPU utilization and I/O statistics for disks.
26 The tapestat command reports statistics for tapes connected to the system.
27 The mpstat command reports global and per-processor statistics.
28 The pidstat command reports statistics for Linux tasks (processes).
29 The cifsiostat command reports I/O statistics for CIFS filesystems.
30
31 %prep
32 %setup
33
34 %build
35 # To include cron installation, add options --enable-install-cron and --enable-copy-only
36 ./configure --prefix=%{_prefix} \
37         --disable-file-attr \
38         sa_lib_dir=%{_libdir}/sa \
39         --mandir=%{_mandir} \
40         DESTDIR=$RPM_BUILD_ROOT
41 make
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/var/log/sa
46
47 make install
48
49 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
50 install -m 755  sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
51 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
52 install -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat
53 install -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconf
54 mkdir -p $RPM_BUILD_ROOT/etc/cron.d
55 install -m 644 cron/sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstat
56 mkdir -p $RPM_BUILD_ROOT/etc/rc2.d
57 cd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S01sysstat
58 mkdir -p $RPM_BUILD_ROOT/etc/rc3.d
59 cd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S01sysstat
60 mkdir -p $RPM_BUILD_ROOT/etc/rc5.d
61 cd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S01sysstat
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc %{_datadir}/doc/sysstat-%{version}/*
69 %attr(755,root,root) %{_bindir}/*
70 %attr(755,root,root) %{_libdir}/sa/*
71 %attr(644,root,root) %{_mandir}/man*/*
72 %attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo
73 %attr(755,root,root) %dir /var/log/sa
74 %attr(755,root,root) /etc/rc.d/init.d/sysstat
75 %attr(644,root,root) /etc/sysconfig/sysstat
76 %attr(644,root,root) /etc/sysconfig/sysstat.ioconf
77 /etc/rc2.d/S01sysstat
78 /etc/rc3.d/S01sysstat
79 /etc/rc5.d/S01sysstat
80 %config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat
81