]> git.pld-linux.org Git - packages/sysstat.git/blob - sysstat.spec
- use macros in %{pre,post}{,un}
[packages/sysstat.git] / sysstat.spec
1 Summary:        SAR, MPSTAT and IOSTAT for Linux
2 Summary(pl):    SAR, MPSTAT and IOSTAT dla Linuxa
3 Name:           sysstat
4 Version:        4.0.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.bz2
11 Source1:        %{name}.crond
12 Source2:        %{name}.init
13 Patch0:         %{name}-opt.patch
14 URL:            http://perso.wanadoo.fr/sebastien.godard/
15 Requires:       crondaemon
16 Requires:       rc-scripts
17 BuildRequires:  gettext-devel
18 BuildRequires:  sh-utils
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 SAR, MPSTAT and IOSTAT for Linux.
23
24 %description -l pl
25 SAR, MPSTAT and IOSTAT dla Linuxa.
26
27 %prep
28 %setup -q
29 %patch0 -p1
30
31 %build
32 echo "%{_prefix}
33 /var/log/sa
34 n
35 y
36 n
37 `id -gn`
38 n" | /bin/sh build/Configure.sh
39
40 OPT_FLAGS="%{rpmcflags}" %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{/etc/{cron.d,rc.d/init.d},/var/log/sa}
45
46 %{__make} install
47
48 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/sysstat
49 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
50
51 gzip -9nf CHANGES CREDITS README *.sample TODO
52
53 %find_lang %{name}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files -f %{name}.lang
59 %defattr(644,root,root,755)
60 %doc *.gz
61 %attr(755,root,root) %{_bindir}/*
62 %attr(750,root,root)%{_libdir}/sa*
63 %attr(755,root,root) %dir /var/log/sa
64 %attr(640,root,root) /etc/cron.d/sysstat
65 %attr(754,root,root) /etc/rc.d/init.d/sysstat
66 %{_mandir}/man*/*
67
68 %post
69 %chkconfig_add
70
71 %preun
72 %chkconfig_del
This page took 0.498299 seconds and 4 git commands to generate.