[packages/mongo-c-driver] add ssl bcond
glen
glen at pld-linux.org
Sun Oct 29 21:24:19 CET 2017
commit a9b4913f8b2abf056934e65d761ab4a6cdb11edf
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sun Oct 29 22:16:19 2017 +0200
add ssl bcond
mongo-c-driver.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec
index 67e4665..e78200e 100644
--- a/mongo-c-driver.spec
+++ b/mongo-c-driver.spec
@@ -3,6 +3,7 @@
%bcond_with tests # build with tests
%bcond_with doc # build docs
%bcond_without sasl # Use libsasl for Kerberos.
+%bcond_without ssl # Enable TLS connections and SCRAM-SHA-1 authentication.
# NOTE about arch:
# See https://jira.mongodb.org/browse/CDRIVER-1186
@@ -24,7 +25,7 @@ BuildRequires: automake
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: libbson-devel >= 1.8
BuildRequires: libtool
-BuildRequires: openssl-devel
+%{?with_ssl:BuildRequires: openssl-devel}
BuildRequires: perl-base
BuildRequires: pkgconfig
BuildRequires: snappy-devel
@@ -44,7 +45,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define libver 1.0
%description
-%{name} is a client library written in C for MongoDB.
+mongo-c-driver is a client library written in C for MongoDB.
%package libs
Summary: Shared libraries for %{name}
@@ -80,11 +81,10 @@ export LIBS=-lpthread
--enable-debug-symbols \
--enable-shm-counters \
--disable-automatic-init-and-cleanup \
- --enable-crypto-system-profile \
%{__enable_disable doc man-pages} \
%{__enable_disable tests} \
--enable-sasl=%{!?with_sasl:no}%{?with_sasl:yes} \
- --enable-ssl \
+ --enable-ssl=%{!?with_ssl:no}%{?with_ssl:openssl --enable-crypto-system-profile} \
--with-libbson=system \
--with-snappy=system \
--with-zlib=system \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mongo-c-driver.git/commitdiff/46f361300895546b6325bbb8934e4775111e37ef
More information about the pld-cvs-commit
mailing list