From 12c8851b25ae35f343d0763b7dc91525ed1114cd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 11 Aug 2015 14:52:17 +0200 Subject: roundcubemail: Remove "su" option .. (EL <= 6) --- roundcubemail.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roundcubemail.spec b/roundcubemail.spec index 83ddb1a..3676418 100644 --- a/roundcubemail.spec +++ b/roundcubemail.spec @@ -19,7 +19,7 @@ %global _logdir /var/log Name: roundcubemail Version: 1.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Round Cube Webmail is a browser-based multilingual IMAP client Group: Applications/System @@ -205,6 +205,11 @@ mkdir -p %{buildroot}%{_sysconfdir}/roundcubemail mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d cp -pr %SOURCE2 %{buildroot}%{_sysconfdir}/logrotate.d/roundcubemail +%if 0%{?rhel} == 5 || 0%{?rhel} == 6 +: Remove "su" option from logrotate configuration file - requires logrotate 3.8+ +sed -e '/su /d' -i %{buildroot}%{_sysconfdir}/logrotate.d/roundcubemail +%endif + # Log files mkdir -p %{buildroot}/var/log/roundcubemail # Temp files @@ -268,6 +273,10 @@ rm -rf %{buildroot} %changelog +* Tue Aug 11 2015 Remi Collet - 1.1.2-2 +- Remove "su" option from logrotate configuration file (requires + logrotate >= 3.8.0) to avoid daily logrotate errors with old RHEL + * Fri Jun 5 2015 Remi Collet - 1.1.2-1 - update to 1.1.2 -- cgit