-%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
-%define WITH_SELINUX 1
-%endif
-%if %{?WITH_PAM:0}%{!?WITH_PAM:1}
-%define WITH_PAM 1
-%endif
-%if %{?WITH_AUDIT:0}%{!?WITH_AUDIT:1}
-%define WITH_AUDIT 1
-%endif
+%bcond_without selinux
+%bcond_without pam
+%bcond_without audit
Summary: The Vixie cron daemon for executing specified programs at set times
Name: vixie-cron
Version: 4.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Epoch: 4
License: MIT and BSD
Group: System Environment/Base
Buildrequires: automake, autoconf
Conflicts: sysklogd < 1.4.1
-%if %{WITH_SELINUX}
+%if %{with_selinux}
Requires: libselinux >= 2.0.0
Buildrequires: libselinux-devel >= 2.0.0
%endif
-%if %{WITH_PAM}
+%if %{with_pam}
Requires: pam >= 0.99.6.2
Buildrequires: pam-devel >= 0.99.6.2
%endif
-%if %{WITH_AUDIT}
-Requires: audit-libs >= 1.4.1
-Buildrequires: audit-libs >= 1.4.1
+%if %{with_audit}
Buildrequires: audit-libs-devel >= 1.4.1
%endif
LDFLAGS="$LDFLAGS -fpie"; export LDFLAGS
%configure \
-%if %{WITH_SELINUX}
---with-selinux \
-%endif
-%if %{WITH_PAM}
+%if %{with_pam}
--with-pam \
%endif
-%if %{WITH_AUDIT}
+%if %{with_selinux}
+--with-selinux \
+%endif
+%if %{with_audit}
--with-audit
%endif
mv ./vixie-cron.init $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/crond
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/
mv ./crond.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/crond
-%if ! %{WITH_PAM}
- rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d}
+%if ! %{with_pam}
+ rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
%endif
touch $RPM_BUILD_ROOT/%{_sysconfdir}/cron.deny
%attr(755,root,root) %dir %{_localstatedir}/spool/cron
%attr(755,root,root) %dir %{_sysconfdir}/cron.d
%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/crond
-%if %{WITH_PAM}
+%if %{with_pam}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/crond
%endif
%config(noreplace) %{_sysconfdir}/sysconfig/crond
%config(noreplace) %{_sysconfdir}/cron.deny
%changelog
+* Mon Oct 29 2007 Marcela Maslanova <mmaslano@redhat.com> - 4:4.2-4
+- 247228: cron jobs fail semi-randomly if sendmail incapacitated
+- 226529: Merge Review: vixie-cron (use bcond macros)
+
* Mon Sep 24 2007 Marcela Maslanova <mmaslano@redhat.com> - 4:4.2-3
- cron own cron.deny
- correct license tag