Skip to content

Commit 8159201

Browse files
committed
sync RPM spec file for 1.20.0 release
1 parent 74c950b commit 8159201

File tree

2 files changed

+23
-29
lines changed

2 files changed

+23
-29
lines changed

.evergreen/mongo-c-driver.spec

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
%global gh_project mongo-c-driver
1111
%global libname libmongoc
1212
%global libver 1.0
13-
%global up_version 1.19.2
13+
%global up_version 1.20.0
1414
#global up_prever rc0
1515
# disabled as require a MongoDB server
1616
%bcond_with tests
1717

18+
# disable for bootstrap (libmongocrypt needs libbson)
19+
%bcond_without libmongocrypt
20+
1821
Name: mongo-c-driver
1922
Summary: Client library written in C for MongoDB
2023
Version: %{up_version}%{?up_prever:~%{up_prever}}
@@ -27,6 +30,7 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/releases/download/%{up_v
2730

2831
BuildRequires: cmake >= 3.1
2932
BuildRequires: gcc
33+
BuildRequires: gcc-c++
3034
BuildRequires: make
3135
# pkg-config may pull compat-openssl10
3236
BuildRequires: openssl-devel
@@ -39,7 +43,9 @@ BuildRequires: pkgconfig(libzstd)
3943
BuildRequires: mongodb-server
4044
BuildRequires: openssl
4145
%endif
42-
BuildRequires: cmake(mongocrypt)
46+
%if %{with libmongocrypt}
47+
BuildRequires: cmake(mongocrypt) >= 1.3.0
48+
%endif
4349
BuildRequires: perl-interpreter
4450
# From man pages
4551
BuildRequires: python3
@@ -69,7 +75,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
6975
Requires: pkgconfig
7076
Requires: cmake-filesystem
7177
Requires: pkgconfig(libzstd)
78+
%if %{with libmongocrypt}
7279
Requires: cmake(mongocrypt)
80+
%endif
7381

7482
%description devel
7583
This package contains the header files and development libraries
@@ -128,7 +136,11 @@ Documentation: http://mongoc.org/libbson/%{version}/
128136
%endif
129137
-DENABLE_EXAMPLES:BOOL=OFF \
130138
-DENABLE_UNINSTALL:BOOL=OFF \
139+
%if %{with libmongocrypt}
131140
-DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL=ON \
141+
%else
142+
-DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL=OFF \
143+
%endif
132144
-DCMAKE_SKIP_RPATH:BOOL=ON \
133145
-S .
134146

@@ -224,6 +236,9 @@ exit $ret
224236

225237

226238
%changelog
239+
* Thu Nov 18 2021 Remi Collet <[email protected]> - 1.20.0-1
240+
- update to 1.20.0
241+
227242
* Thu Nov 4 2021 Remi Collet <[email protected]> - 1.19.2-1
228243
- update to 1.19.2
229244

.evergreen/spec.patch

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,22 @@
11
--- mongo-c-driver.spec.orig 2021-11-04 16:34:50.350572049 -0400
22
+++ mongo-c-driver.spec 2021-11-04 16:37:54.962271319 -0400
3-
@@ -10,14 +10,14 @@
3+
@@ -10,17 +10,17 @@
44
%global gh_project mongo-c-driver
55
%global libname libmongoc
66
%global libver 1.0
7-
-%global up_version 1.19.2
8-
+%global up_version 1.20.0
7+
-%global up_version 1.20.0
8+
+%global up_version 1.21.0
99
#global up_prever rc0
1010
# disabled as require a MongoDB server
1111
%bcond_with tests
1212

13+
# disable for bootstrap (libmongocrypt needs libbson)
14+
%bcond_without libmongocrypt
15+
1316
Name: mongo-c-driver
1417
Summary: Client library written in C for MongoDB
1518
-Version: %{up_version}%{?up_prever:~%{up_prever}}
1619
+Version: %{up_version}%{up_prever}
1720
Release: 1%{?dist}
1821
# See THIRD_PARTY_NOTICES
1922
License: ASL 2.0 and ISC and MIT and zlib
20-
@@ -39,7 +39,6 @@
21-
BuildRequires: mongodb-server
22-
BuildRequires: openssl
23-
%endif
24-
-BuildRequires: cmake(mongocrypt)
25-
BuildRequires: perl-interpreter
26-
# From man pages
27-
BuildRequires: python3
28-
@@ -69,7 +68,6 @@
29-
Requires: pkgconfig
30-
Requires: cmake-filesystem
31-
Requires: pkgconfig(libzstd)
32-
-Requires: cmake(mongocrypt)
33-
34-
%description devel
35-
This package contains the header files and development libraries
36-
@@ -128,7 +126,6 @@
37-
%endif
38-
-DENABLE_EXAMPLES:BOOL=OFF \
39-
-DENABLE_UNINSTALL:BOOL=OFF \
40-
- -DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL=ON \
41-
-DCMAKE_SKIP_RPATH:BOOL=ON \
42-
-S .
43-

0 commit comments

Comments
 (0)