  
  %description devel
  This package contains the header files and development libraries
-@@ -127,15 +125,14 @@
+@@ -107,7 +102,6 @@
+ 
+ %prep
+ %setup -q -n %{gh_project}-%{up_version}%{?up_prever:-%{up_prever}}
+-%patch0 -p1
+ 
+ 
+ %build
+@@ -130,7 +124,6 @@
  %endif
      -DENABLE_EXAMPLES:BOOL=OFF \
      -DENABLE_UNINSTALL:BOOL=OFF \
 -    -DENABLE_CLIENT_SIDE_ENCRYPTION:BOOL=ON \
-     .
+     -S .
  
--make %{?_smp_mflags}
-+%cmake_build
- 
- 
- 
- %install
--make install DESTDIR=%{buildroot}
-+%cmake_install
- 
- : Static library
- rm -f  %{buildroot}%{_libdir}/*.a
+ %if 0%{?cmake_build:1}

--- mongo-c-driver.spec.orig	2020-07-21 13:48:11.885805083 -0400
+++ mongo-c-driver.spec	2020-07-21 13:49:12.455105799 -0400
@@ -11,13 +11,13 @@
 %global libname      libmongoc
 %global libver       1.0
 %global up_version   1.17.0
-%global up_prever    rc0
+%global up_prever    pre
 # disabled as require a MongoDB server
 %bcond_with          tests
 
 Name:      mongo-c-driver
 Summary:   Client library written in C for MongoDB
-Version:   %{up_version}%{?up_prever:~%{up_prever}}
+Version:   %{up_version}%{up_prever}
 Release:   1%{?dist}
 # See THIRD_PARTY_NOTICES
 License:   ASL 2.0 and ISC and MIT and zlib
@@ -38,7 +38,6 @@
 BuildRequires: mongodb-server
 BuildRequires: openssl
 %endif

 BuildRequires: perl-interpreter
 # From man pages
 BuildRequires: python3
@@ -70,7 +66,6 @@
 Requires:   pkgconfig
 Requires:   cmake-filesystem
 Requires:   pkgconfig(libzstd)
