own %{_datadir}/%{name} and %{_libexecdir}/%{name} dirs

This commit is contained in:
Michal Hlavinka 2011-03-03 10:28:23 +01:00
parent 948f96b6bc
commit 25de0a108c

View File

@ -1,7 +1,7 @@
Summary: Tools for monitoring SMART capable hard disks Summary: Tools for monitoring SMART capable hard disks
Name: smartmontools Name: smartmontools
Version: 5.40 Version: 5.40
Release: 6%{?dist} Release: 7%{?dist}
Epoch: 1 Epoch: 1
Group: System Environment/Base Group: System Environment/Base
License: GPLv2+ License: GPLv2+
@ -96,9 +96,8 @@ if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart smartd.service >/dev/null 2>&1 || : /bin/systemctl try-restart smartd.service >/dev/null 2>&1 || :
fi fi
%triggerun -- smartmontools < 1:5.40-4 %triggerun -- smartmontools < 1:5.40-4
[ /sbin/chkconfig smartd ] && /bin/systemctl enable smartd.service >/dev/null 2>&1 || : /sbin/chkconfig smartd && /bin/systemctl enable smartd.service >/dev/null 2>&1 || :
%files %files
@ -112,10 +111,13 @@ fi
%{_sbindir}/update-smart-drivedb %{_sbindir}/update-smart-drivedb
%{_sbindir}/smartctl %{_sbindir}/smartctl
%{_mandir}/man?/smart*.* %{_mandir}/man?/smart*.*
%{_libexecdir}/%{name}/smartdnotify %{_libexecdir}/%{name}
%{_datadir}/%{name}/drivedb.h %{_datadir}/%{name}
%changelog %changelog
* Thu Mar 03 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-7
- own %%{_datadir}/%%{name} and %%{_libexecdir}/%%{name} dirs
* Thu Feb 17 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-6 * Thu Feb 17 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-6
- notify users when disk is failing - notify users when disk is failing