# TODO
# - update paths in manuals (create .in files and send upstream)
# - make /etc/pam.d independant of sysconfdir (configure-able option and send upstream)
+# - https://fedorahosted.org/cronie/changeset/272c4a5c417bfa6e04148fc35a4fe4c6956b17e1
+# should we follow it too? our pam contains cron.{allow,deny} listfile rules,
+# cronie itself checks these files so safe to drop?
#
# Conditional build:
%bcond_without inotify # without inotify support
Summary: Cron daemon for executing programs at set times
Name: cronie
-Version: 1.4.2
+Version: 1.4.3
Release: 1
License: MIT and BSD and GPL v2
Group: Daemons
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
-# Source0-md5: 9c7cef09ff9c92a90a314a1e947fae5c
+# Source0-md5: 2393b3e5828fc09d9acf04dfd7796ab9
Source1: %{name}.init
Source2: cron.logrotate
Source3: cron.sysconfig
Source5: %{name}.pam
Patch0: inotify-nosys.patch
Patch1: %{name}-nosyscrontab.patch
+Patch2: sendmail-path.patch
URL: https://fedorahosted.org/cronie/
%{?with_audit:BuildRequires: audit-libs-devel}
BuildRequires: autoconf
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post): fileutils
Requires(post,preun): /sbin/chkconfig
-Requires(post,preun): rc-scripts
Requires(postun): /usr/sbin/groupdel
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires: /bin/run-parts
Requires: /sbin/chkconfig
Requires: psmisc >= 20.1
-Requires: rc-scripts
+Requires: rc-scripts >= 0.4.0.19
%{?with_inotify:Requires: uname(release) >= 2.6.13}
Provides: crondaemon
Provides: crontabs = 1.7
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__aclocal}