From 025fa37de193795ce1d2391a300dab9d16de52f5 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Dec 08 2016 12:05:20 +0000 Subject: make the package build on RHEL-6, too --- diff --git a/logrotate.spec b/logrotate.spec index 6cb6a0c..74f0e57 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -1,7 +1,7 @@ Summary: Rotates, compresses, removes and mails system log files Name: logrotate Version: 3.11.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ Url: https://github.com/logrotate/logrotate Source: https://github.com/logrotate/logrotate/releases/download/%{version}/logrotate-%{version}.tar.xz @@ -33,6 +33,14 @@ printf "/autom4te.cache\n/build\n" >> .gitignore git add .gitignore git commit -m "update .gitignore" +%if 0%{?fedora} == 0 && 0%{?rhel} < 7 +sed -e 's/^AM_EXTRA_RECURSIVE_TARGETS/dnl AM_EXTRA_RECURSIVE_TARGETS/' \ + -e 's/ serial-tests//' \ + -i configure.ac +git add configure.ac +git commit -m "configure.ac: compatibility fixes for RHEL-6" +%endif + autoreconf -fiv git add configure git commit -m "force autoreconf" --allow-empty @@ -81,10 +89,13 @@ fi %config(noreplace) %{_sysconfdir}/logrotate.conf %dir %{_sysconfdir}/logrotate.d %dir %{_localstatedir}/lib/logrotate -%ghost %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status +%ghost %verify(not size md5 mtime) %attr(0644, root, root) %{_localstatedir}/lib/logrotate/logrotate.status %config(noreplace) %{_sysconfdir}/rwtab.d/logrotate %changelog +* Thu Dec 08 2016 Kamil Dudka - 3.11.0-2 +- make the package build on RHEL-6, too + * Fri Dec 02 2016 Kamil Dudka - 3.11.0-1 - build out of source tree - new upstream version 3.11.0