Summary: The companion C library for client side encryption in drivers
Name: libmongocrypt
Version: 1.0.4
-Release: 1
+Release: 2
# see kms-message/THIRD_PARTY_NOTICES
# kms-message/src/kms_b64.c is ISC
# everything else is ASL 2.0
Group: Libraries
Source0: https://github.com/mongodb/libmongocrypt/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: e8939c3ed5c8b797dd8d4ea1290f7652
+Patch0: no-Werror.patch
URL: https://github.com/mongodb/libmongocrypt
BuildRequires: cmake >= 3.5
%{?with_apidocs:BuildRequires: doxygen}
%prep
%setup -q
+%patch0 -p1
echo "%{version}" > VERSION_CURRENT
%build
--- /dev/null
+--- libmongocrypt-1.0.4/CMakeLists.txt~ 2020-05-13 21:08:12.000000000 +0200
++++ libmongocrypt-1.0.4/CMakeLists.txt 2021-10-06 22:18:39.746913269 +0200
+@@ -93,7 +93,7 @@
+ # TODO: add support for clang-cl which is detected as MSVC
+ else()
+ # GNU, Clang, AppleClang
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wno-missing-braces")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-missing-braces")
+ endif()
+
+ # Choose a Crypto provider
+--- libmongocrypt-1.0.4/kms-message/CMakeLists.txt~ 2020-05-13 21:08:12.000000000 +0200
++++ libmongocrypt-1.0.4/kms-message/CMakeLists.txt 2021-10-06 22:19:10.140304513 +0200
+@@ -94,7 +94,7 @@
+ endif ()
+
+ if ( CMAKE_COMPILER_IS_GNUCC )
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-function -Wsign-compare -Werror")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-function -Wsign-compare")
+ endif()
+ if ( MSVC )
+ # W4273 - inconsistent dll linkage