[packages/php-pecl-mongodb] add sasl bcond.
glen
glen at pld-linux.org
Sun Oct 29 16:36:08 CET 2017
commit bc94cadc0c98cb579dc8c89375bfbbbe0b7cf9b6
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sun Oct 29 17:35:23 2017 +0200
add sasl bcond.
building without sasl support doesn't fix crash
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2017-October/025439.html
php-pecl-mongodb.spec | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec
index a6c49a7..51add1b 100644
--- a/php-pecl-mongodb.spec
+++ b/php-pecl-mongodb.spec
@@ -5,6 +5,7 @@
#
# Conditional build:
%bcond_without tests # build without tests
+%bcond_without sasl # Include Cyrus SASL support
%define php_name php%{?php_suffix}
%define modname mongodb
@@ -24,7 +25,7 @@ BuildRequires: %{php_name}-devel >= 4:5.4.0
BuildRequires: %{php_name}-json
BuildRequires: %{php_name}-pcre
BuildRequires: %{php_name}-spl
-BuildRequires: cyrus-sasl-devel
+%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: libbson-devel >= 1.5.0
BuildRequires: mongo-c-driver-devel >= 1.5.0
BuildRequires: openssl-devel
@@ -65,7 +66,7 @@ phpize
%configure \
--with-libbson \
--with-libmongoc \
- --with-mongodb-sasl \
+ --with-mongodb-sasl=%{!?with_sasl:no}%{?with_sasl:yes} \
--enable-mongodb
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-mongodb.git/commitdiff/bc94cadc0c98cb579dc8c89375bfbbbe0b7cf9b6
More information about the pld-cvs-commit
mailing list