# for better compatibility with SCL spec file %global pkg_name mongo-cxx-driver Name: mongo-cxx-driver Version: 3.2.0 Release: 1%{?dist} Summary: MongoDB C++ Client Driver Group: Development/Libraries License: ASL 2.0 URL: https://github.com/mongodb/mongo-cxx-driver/wiki Source0: https://github.com/mongodb/%{pkg_name}/archive/tar.gz/r%{version}#/%{name}-r%{version}.tar.gz Patch0: %{name}-3.2.0-libsuffix.patch BuildRequires: mongo-c-driver-devel >= 1.8.2 BuildRequires: cmake BuildRequires: gcc-c++ >= 7.3 # pkg-config may pull compat-openssl10 BuildRequires: openssl-devel BuildRequires: pkgconfig(libbson-1.0) > %{bsonver} BuildRequires: pkgconfig(libsasl2) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(snappy) %description This package provides the shared library for the MongoDB C++ Driver. %package devel Summary: MongoDB C++ header files Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the header files for MongoDB C++ driver. %prep # -n the name of the directory to cd after unpacking %setup -q -n %{name}-r%{version} %patch0 -p1 -b .libsuffix %build %cmake \ -DBSONCXX_POLY_USE_STD=1 \ -DCMAKE_CXX_STANDARD=17 \ -DCMAKE_CXX_STANDARD_REQUIRED=1 \ . %make_build %install %make_install %check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README.md LICENSE %{_libdir}/libmongocxx.so.* %{_libdir}/libbsoncxx.so.* %files devel %{_includedir}/* %{_libdir}/libmongocxx.so %{_libdir}/libbsoncxx.so %{_libdir}/pkgconfig/* %{_libdir}/cmake/* %changelog * Sun Mar 25 2018 Tim Niemueller - 3.2.0-1 - Update to C++11 mongo-cxx-driver * Thu Aug 03 2017 Fedora Release Engineering - 1.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.1.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jul 19 2017 Jonathan Wakely - 1.1.2-8 - Rebuilt for s390x binutils bug * Mon Jul 03 2017 Jonathan Wakely - 1.1.2-7 - Rebuilt for Boost 1.64 * Mon May 15 2017 Fedora Release Engineering - 1.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Tue Feb 28 2017 Marek Skalický - 1.1.2-5 - Temporary disable optimizations (some tests are failing with it) * Fri Feb 10 2017 Fedora Release Engineering - 1.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Nov 19 2016 Peter Robinson 1.1.2-3 - Remove ExclusiveArch. While a MongoDB instance is little endian only, this is a client - Build with openssl 1.0 * Tue Aug 02 2016 Marek Skalický - 1.1.2-2 - Enabled sasl support - Unit tests added in check section * Wed Jun 22 2016 Marek Skalicky - 1.1.2-1 - Upgrade to version 1.1.2 * Tue May 17 2016 Jonathan Wakely - 1.1.0-4 - Rebuilt for linker errors in boost (#1331983) * Thu Feb 04 2016 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 18 2016 Jonathan Wakely - 1.1.0-2 - Rebuilt for Boost 1.60 * Thu Dec 10 2015 Marek Skalicky - 1.1.0-1 - Upgrade to version 1.1.0 * Fri Nov 20 2015 Marek Skalicky - 1.0.7-1 - Upgrade to version 1.0.7 * Thu Oct 22 2015 Tim Niemueller - 1.0.6-1 - Upgrade to version 1.0.6 - Add --c++11 flag * Thu Aug 27 2015 Jonathan Wakely - 1.0.5-2 - Rebuilt for Boost 1.59 * Wed Aug 19 2015 Marek Skalicky - 1.0.5-1 - Upgrade to version 1.0.5 * Mon Aug 17 2015 Marek Skalicky - 1.0.4-1 - Upgrade to version 1.0.4 * Wed Jul 29 2015 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Wed Jul 22 2015 David Tardon - 1.0.2-3 - rebuild for Boost 1.58 * Wed Jun 17 2015 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue May 26 2015 Marek Skalicky - 1.0.2-1 - Upgrade to version 1.0.2 * Tue Apr 14 2015 Marek Skalicky - 1.0.1-1 - Upgrade to version 1.0.1 * Tue Feb 10 2015 Marek Skalicky - 1.0.0-3 - Disabled -Werror (dont't build with gcc 5.0) * Wed Feb 04 2015 Petr Machata - 1.0.0-2 - Bump for rebuild. * Thu Jan 29 2015 Marek Skalicky - 1.0.0-1 - Upgrade to stable version 1.0.0 * Tue Jan 27 2015 Petr Machata - 1.0.0-0.8.rc3 - Rebuild for boost 1.57.0 * Fri Jan 02 2015 Marek Skalicky - 1.0.0-0.7.rc3 - Upgrade to rc3 * Tue Nov 18 2014 Marek Skalický - 1.0.0-0.6.rc2 - Upgrade to rc2 - Changed scons target to build only driver * Mon Oct 27 2014 Marek Skalický - 1.0.0-0.5.rc1 - Upgrade to rc1 - Added mongo-cxx-driver-devel requires (openssl-devel, boost-devel) * Sat Oct 25 2014 Peter Robinson 1.0.0-0.4.rc1 - Don't reset the Release until 1.0.0 GA * Fri Oct 24 2014 Marek Skalický - 1.0.0-0.1.rc1 - Upgrade to rc1 * Thu Oct 9 2014 Marek Skalický - 1.0.0-0.3.rc0 - Added Provides: mongodb-devel = 2.6.0-1 provided by libmongo-devel * Thu Oct 9 2014 Marek Skalický - 1.0.0-0.2.rc0 - Added Provides: libmongodb%{?_isa} packages * Tue Sep 30 2014 Marek Skalický - 1.0.0-0.1.rc0 - initial port