[Pacemaker] [PATCH 3 of 4] Low: build: introduce "--without esmtp" rpmbuild option

Florian Haas florian.haas at linbit.com
Fri Feb 5 08:47:20 EST 2010


# HG changeset patch
# User Florian Haas <florian.haas at linbit.com>
# Date 1265375339 -3600
# Branch stable-1.0
# Node ID 35eba1386aff888c38b181054c5afcb0f80a2910
# Parent  efc54adb199234e3e7fc8c9b5e2cf3b1924e0923
Low: build: introduce "--without esmtp" rpmbuild option

libesmtp-devel is not available in RHEL or CentOS, but only in
EPEL. For those who do not wish to install EPEL packages, introduce a
"--without esmtp" build option so the RPM build does not fail with an
unresolvable build dependency.

diff -r efc54adb1992 -r 35eba1386aff pacemaker.spec
--- a/pacemaker.spec	Fri Feb 05 14:05:04 2010 +0100
+++ b/pacemaker.spec	Fri Feb 05 14:08:59 2010 +0100
@@ -16,6 +16,9 @@
 # to disable or enable specific features
 %bcond_without ais
 %bcond_without heartbeat
+# ESMTP is not available in RHEL, only in EPEL. Allow people to build
+# the RPM without ESMTP in case they choose not to use EPEL packages
+%bcond_without esmtp
 
 Name:		pacemaker
 Summary:	Scalable High-Availability cluster resource manager
@@ -48,7 +51,10 @@
 
 # Enables optional functionality
 BuildRequires:	ncurses-devel net-snmp-devel openssl-devel 
-BuildRequires:	libesmtp-devel lm_sensors-devel libselinux-devel
+BuildRequires:	lm_sensors-devel libselinux-devel
+%if %{with esmtp}
+BuildRequires:	libesmtp-devel
+%endif
 
 %if %{with ais}
 BuildRequires:	corosynclib-devel




More information about the Pacemaker mailing list