Sisyphus repository
Last update: 27 may 2020 | SRPMs: 17560 | Visits: 18622725
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: libmongoc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable tests

Name: libmongoc
Version: 1.9.3
Release: alt1%ubt
Summary: Client library written in C for MongoDB
Group: System/Libraries
License: ASL 2.0
Source: %name-%version.tar

BuildRequires(pre): rpm-build-ubt
BuildRequires: python-module-sphinx
BuildRequires: libbson-devel >= %version
BuildRequires: libssl-devel libsasl2-devel gcc-c++
BuildRequires: zlib-devel libsnappy-devel

%{?_enable_tests:BuildRequires: mongodb-server openssl}

mongo-c-driver is a client library written in C for MongoDB.

%package devel
Group: Development/C
Summary: C Driver for MongoDB
Requires: %name = %EVR

%description devel
This package contains the header files and development libraries
for mongo-c-driver


mkdir -p src/libbson
# Generate build scripts from sources
%autoreconf -I build/autotools
# delete bundled libbson sources
rm -rf src/libbson
mkdir -p src/libbson
%configure \
--enable-shared \
--disable-static \
--disable-lto \
--disable-maintainer-flags \
--disable-optimizations \
--disable-silent-rules \
--enable-debug-symbols \
--enable-shm-counters \
--disable-automatic-init-and-cleanup \
%{subst_enable tests} \
--enable-sasl \
--enable-ssl \
--with-libbson=system \
--with-snappy=system \
--with-zlib=system \
--disable-html-docs \

rm -rf src/zlib-*

%make_build all doc/man


%if_enabled tests
# Run a server
mkdir dbtest
mongod \
 --journal \
 --unixSocketPrefix /tmp \
 --logpath     $PWD/server.log \
 --pidfilepath $PWD/ \
 --dbpath      $PWD/dbtest \
# Run the test suite
make check || ret=1
# Cleanup
[ -s ] && kill $(cat
exit $ret

%doc COPYING NEWS *.md *.rst

%files devel


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin