[zarafa/f21] Handle "su" option in logrotate >= 3.8.0 to avoid errors

Robert Scheck robert at fedoraproject.org
Wed Mar 18 12:17:38 UTC 2015


commit c7ecef187edd7fa348ed6ad7ca11525806461993
Author: Robert Scheck <robert at fedoraproject.org>
Date:   Wed Mar 18 13:17:27 2015 +0100

    Handle "su" option in logrotate >= 3.8.0 to avoid errors

 zarafa.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/zarafa.spec b/zarafa.spec
index e14ac54..4fc0f9a 100644
--- a/zarafa.spec
+++ b/zarafa.spec
@@ -488,6 +488,10 @@ done
 
 # Move the logrotate configuration file to its correct place
 install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
+sed -e 's/}/\tsu root root\n}/' -i $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+touch -c -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+%endif
 
 # Move the userscripts to their correct place and symlink them
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/userscripts/
@@ -953,6 +957,7 @@ fi
 * Sun Feb 22 2015 Robert Scheck <robert at fedoraproject.org> 7.1.11-3
 - Added multiple minor enhancement and bugfix patches
 - Added patch to fix CVE-2014-0103 for PHP < 5.3 (#1073618)
+- Handle "su" option in logrotate >= 3.8.0 to avoid errors
 
 * Sat Oct 25 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> 7.1.11-2
 - Rebuild for reference-counting-enabled clucene09


More information about the scm-commits mailing list