Do not install zz-fortune service when %%{rhel} is defined.

This commit is contained in:
Karel Klíč 2010-04-19 15:31:46 +00:00
parent e7221a039a
commit bcd70cc126

View File

@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.3.6
Release: 53%{?dist}
Release: 54%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@ -262,6 +262,15 @@ install -m 0644 logwatch.8 %{buildroot}%{_mandir}/man8
rm -f %{buildroot}%{_sysconfdir}/cron.daily/logwatch \
%{buildroot}%{_sbindir}/logwatch
# Do not install zz-fortune service on RHEL
%if 0%{?rhel}
rm -f %{buildroot}%{_datadir}/logwatch/scripts/services/zz-fortune* \
%{buildroot}%{_datadir}/logwatch/conf/services/zz-fortune* \
%{buildroot}%{_datadir}/logwatch/conf/logfiles/fortune*
touch %{buildroot}%{_datadir}/logwatch/scripts/services/zz-fortune
chmod 644 %{buildroot}%{_datadir}/logwatch/scripts/services/zz-fortune
%endif
# install cron script
install -m 0755 -d %{buildroot}%{_sysconfdir}/cron.daily
cat > %{buildroot}/%{_sysconfdir}/cron.daily/0logwatch <<EOF
@ -330,6 +339,9 @@ rm -rf %{buildroot}
%doc License project/CHANGES
%changelog
* Mon Apr 19 2010 Karel Klic <kklic@redhat.com> 7.3.6-54
- Do not install zz-fortune service when %%{rhel} is defined.
* Mon Apr 19 2010 Karel Klic <kklic@redhat.com> 7.3.6-53
- Removed zz-fortune patch as zz-disk_space is run every
time anyway.