- used macros instead of var, etc
This commit is contained in:
parent
ed85f81661
commit
5adae2a890
19
sysstat.spec
19
sysstat.spec
@ -1,6 +1,6 @@
|
|||||||
Name: sysstat
|
Name: sysstat
|
||||||
Version: 8.0.2
|
Version: 8.0.2
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: The sar and iostat system monitoring commands
|
Summary: The sar and iostat system monitoring commands
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -37,8 +37,8 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir}
|
make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir}
|
||||||
|
|
||||||
mkdir -p %{buildroot}/etc/cron.d
|
mkdir -p %{buildroot}/%{_sysconfdir}/cron.d
|
||||||
install -m 0644 sysstat.crond %{buildroot}/etc/cron.d/sysstat
|
install -m 0644 sysstat.crond %{buildroot}/%{_sysconfdir}/cron.d/sysstat
|
||||||
mkdir -p %{buildroot}%{_initrddir}
|
mkdir -p %{buildroot}%{_initrddir}
|
||||||
install -m 0755 sysstat %{buildroot}%{_initrddir}/
|
install -m 0755 sysstat %{buildroot}%{_initrddir}/
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ install -m 0755 sysstat %{buildroot}%{_initrddir}/
|
|||||||
%preun
|
%preun
|
||||||
if [ "$1" = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
# Remove sa logs if removing sysstat completely
|
# Remove sa logs if removing sysstat completely
|
||||||
rm -f /var/log/sa/*
|
rm -f %{_localstatedir}/log/sa/*
|
||||||
# Remove service
|
# Remove service
|
||||||
/sbin/chkconfig --del sysstat
|
/sbin/chkconfig --del sysstat
|
||||||
fi
|
fi
|
||||||
@ -61,17 +61,20 @@ rm -rf %{buildroot}
|
|||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES COPYING CREDITS README TODO FAQ
|
%doc CHANGES COPYING CREDITS README TODO FAQ
|
||||||
%config(noreplace) /etc/cron.d/sysstat
|
%config(noreplace) %{_sysconfdir}/cron.d/sysstat
|
||||||
%config(noreplace) /etc/sysconfig/sysstat
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
|
||||||
%config(noreplace) /etc/sysconfig/sysstat.ioconf
|
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
|
||||||
%{_initrddir}/sysstat
|
%{_initrddir}/sysstat
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/sa
|
%{_libdir}/sa
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
/var/log/sa
|
%{_localstatedir}/log/sa
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 9 2007 Ivana Varekova <varekova@redhat.com> - 8.0.2-3
|
||||||
|
- used macros instead of var, etc
|
||||||
|
|
||||||
* Thu Nov 8 2007 Ivana Varekova <varekova@redhat.com> - 8.0.2-2
|
* Thu Nov 8 2007 Ivana Varekova <varekova@redhat.com> - 8.0.2-2
|
||||||
- change license tag
|
- change license tag
|
||||||
- remove sysstat.crond source (add -d)
|
- remove sysstat.crond source (add -d)
|
||||||
|
Loading…
Reference in New Issue
Block a user