]> git.pld-linux.org Git - packages/sysstat.git/blame - sysstat.spec
- added using %%{rpmcflags} macro.
[packages/sysstat.git] / sysstat.spec
CommitLineData
ae943c3e
AM
1Summary: SAR, MPSTAT and IOSTAT for Linux
2Summary(pl): SAR, MPSTAT and IOSTAT dla Linuxa
3Name: sysstat
c01e3dd5 4Version: 4.0.0
c452b910 5Release: 1
ae943c3e 6License: GPL
7b0005ef 7Group: Applications/System
8Group(de): Applikationen/System
9Group(pl): Aplikacje/System
c01e3dd5 10Source0: http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.bz2
9ff3620d 11Source1: %{name}.crond
12Source2: %{name}.init
7b0005ef 13Patch0: %{name}-opt.patch
ae943c3e 14URL: http://perso.wanadoo.fr/sebastien.godard/
9ff3620d 15Requires: crondaemon
16Requires: rc-scripts
ae943c3e
AM
17BuildRequires: gettext-devel
18BuildRequires: sh-utils
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
7b0005ef 22SAR, MPSTAT and IOSTAT for Linux.
ae943c3e
AM
23
24%description -l pl
7b0005ef 25SAR, MPSTAT and IOSTAT dla Linuxa.
ae943c3e
AM
26
27%prep
28%setup -q
29%patch0 -p1
30
31%build
32echo "%{_prefix}
c01e3dd5 33/var/log/sa
34n
ae943c3e
AM
35y
36n
37`id -gn`
38n" | /bin/sh build/Configure.sh
39
507e9137 40OPT_FLAGS="%{rpmcflags}" %{__make}
ae943c3e
AM
41
42%install
43rm -rf $RPM_BUILD_ROOT
c01e3dd5 44install -d $RPM_BUILD_ROOT{/etc/{cron.d,rc.d/init.d},/var/log/sa}
ae943c3e
AM
45
46%{__make} install
c01e3dd5 47
9ff3620d 48install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/sysstat
49install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
ae943c3e
AM
50
51gzip -9nf CHANGES CREDITS README *.sample TODO
52
53%find_lang %{name}
54
55%clean
56rm -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}/*
9ff3620d 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
ae943c3e 66%{_mandir}/man*/*
9ff3620d 67
68%post
69/sbin/chkconfig --add sysstat
This page took 0.239436 seconds and 4 git commands to generate.