10
10
%global gh_project mongo-c-driver
11
11
%global libname libmongoc
12
12
%global libver 1.0
13
- %global up_version 1.19.2
13
+ %global up_version 1.20.0
14
14
#global up_prever rc0
15
15
# disabled as require a MongoDB server
16
16
%bcond_with tests
17
17
18
+ # disable for bootstrap (libmongocrypt needs libbson)
19
+ %bcond_without libmongocrypt
20
+
18
21
Name: mongo-c-driver
19
22
Summary: Client library written in C for MongoDB
20
23
Version: %{up_version }%{?up_prever:~%{up_prever }}
@@ -27,6 +30,7 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/releases/download/%{up_v
27
30
28
31
BuildRequires: cmake >= 3.1
29
32
BuildRequires: gcc
33
+ BuildRequires: gcc-c++
30
34
BuildRequires: make
31
35
# pkg-config may pull compat-openssl10
32
36
BuildRequires: openssl-devel
@@ -39,7 +43,9 @@ BuildRequires: pkgconfig(libzstd)
39
43
BuildRequires: mongodb-server
40
44
BuildRequires: openssl
41
45
%endif
42
- BuildRequires: cmake(mongocrypt)
46
+ %if %{with libmongocrypt }
47
+ BuildRequires: cmake(mongocrypt) >= 1.3.0
48
+ %endif
43
49
BuildRequires: perl-interpreter
44
50
# From man pages
45
51
BuildRequires: python3
@@ -69,7 +75,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
69
75
Requires: pkgconfig
70
76
Requires: cmake-filesystem
71
77
Requires: pkgconfig(libzstd)
78
+ %if %{with libmongocrypt }
72
79
Requires: cmake(mongocrypt)
80
+ %endif
73
81
74
82
%description devel
75
83
This package contains the header files and development libraries
@@ -128,7 +136,11 @@ Documentation: http://mongoc.org/libbson/%{version}/
128
136
%endif
129
137
-DENABLE_EXAMPLES:BOOL=OFF \
130
138
-DENABLE_UNINSTALL:BOOL=OFF \
139
+ %if %{with libmongocrypt }
131
140
-DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL=ON \
141
+ %else
142
+ -DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL=OFF \
143
+ %endif
132
144
-DCMAKE_SKIP_RPATH:BOOL=ON \
133
145
-S .
134
146
@@ -224,6 +236,9 @@ exit $ret
224
236
225
237
226
238
%changelog
239
+ *
Thu Nov 18 2021 Remi Collet <[email protected] > -
1.20.0-1
240
+ - update to 1.20.0
241
+
227
242
*
Thu Nov 4 2021 Remi Collet <[email protected] > -
1.19.2-1
228
243
- update to 1.19.2
229
244
0 commit comments