10
10
%global gh_project mongo-c-driver
11
11
%global libname libmongoc
12
12
%global libver 1.0
13
- %global up_version 1.26.2
13
+ %global up_version 1.27.1
14
14
#global up_prever rc0
15
15
# disabled as require a MongoDB server
16
16
%bcond_with tests
17
17
18
18
# disable for bootstrap (libmongocrypt needs libbson)
19
19
%bcond_without libmongocrypt
20
20
21
+ %if 0%{?rhel } == 8
22
+ %bcond_with libutf8proc
23
+ %else
24
+ %bcond_without libutf8proc
25
+ %endif
26
+
21
27
Name: mongo-c-driver
22
28
Summary: Client library written in C for MongoDB
23
29
Version: %{up_version }%{?up_prever:~%{up_prever }}
@@ -37,15 +43,17 @@ BuildRequires: openssl-devel
37
43
BuildRequires: pkgconfig(libsasl2)
38
44
BuildRequires: pkgconfig(zlib)
39
45
BuildRequires: pkgconfig(snappy)
46
+ %if %{with libutf8proc }
40
47
BuildRequires: pkgconfig(libutf8proc)
48
+ %endif
41
49
BuildRequires: pkgconfig(libzstd) >= 0.8.0
42
50
%if %{with tests }
43
51
BuildRequires: mongodb-server
44
52
BuildRequires: openssl
45
53
%endif
46
54
%if %{with libmongocrypt }
47
55
# grep VERSION_LESS src/*/CMakeLists.txt
48
- BuildRequires: cmake(mongocrypt) >= 1.8 .0
56
+ BuildRequires: cmake(mongocrypt) >= 1.10 .0
49
57
%endif
50
58
BuildRequires: perl-interpreter
51
59
# From man pages
@@ -65,6 +73,10 @@ Provides: %{name}-tools%{?_isa} = %{version}
65
73
66
74
%package libs
67
75
Summary: Shared libraries for %{name }
76
+ %if %{without libutf8proc}
77
+ Provides: bundled(libutf8proc) = 2.8.0
78
+ %endif
79
+ Provides: bundled(uthash) = 2.3.0
68
80
69
81
%description libs
70
82
This package contains the shared libraries for %{name }.
@@ -146,7 +158,11 @@ Documentation: http://mongoc.org/libbson/%{version}/
146
158
-DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL= OFF \
147
159
%endif
148
160
-DCMAKE_SKIP_RPATH:BOOL= ON \
161
+ %if %{with libutf8proc }
149
162
-DUSE_BUNDLED_UTF8PROC:BOOL= OFF \
163
+ %else
164
+ -DUSE_BUNDLED_UTF8PROC:BOOL= ON \
165
+ %endif
150
166
-DENABLE_SRV:BOOL= ON \
151
167
-DENABLE_MONGODB_AWS_AUTH:STRING= ON \
152
168
-S .
@@ -243,6 +259,13 @@ exit $ret
243
259
244
260
245
261
%changelog
262
+ *
Mon May 13 2024 Remi Collet <[email protected] > -
1.27.1-1
263
+ - update to 1.27.1
264
+
265
+ *
Thu May 2 2024 Remi Collet <[email protected] > -
1.27.0-1
266
+ - update to 1.27.0
267
+ - raise dependency to libmongocrypt 1.10.0
268
+
246
269
*
Wed Apr 3 2024 Remi Collet <[email protected] > -
1.26.2-1
247
270
- update to 1.26.2
248
271
0 commit comments