From bcd70cc12600a11a605036075803e7bd18bb3875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kl=C3=AD=C4=8D?= Date: Mon, 19 Apr 2010 15:31:46 +0000 Subject: [PATCH] Do not install zz-fortune service when %%{rhel} is defined. --- logwatch.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/logwatch.spec b/logwatch.spec index 9c018e0..fbfbf15 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -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 < 7.3.6-54 +- Do not install zz-fortune service when %%{rhel} is defined. + * Mon Apr 19 2010 Karel Klic 7.3.6-53 - Removed zz-fortune patch as zz-disk_space is run every time anyway.