--- /dev/null
+--- mongodb-src-r2.2.2/src/SConscript.client.orig 2013-06-03 21:41:59.001480588 +0200
++++ mongodb-src-r2.2.2/src/SConscript.client 2013-06-04 15:51:40.623451163 +0200
+@@ -98,7 +98,7 @@
+ mongoclient_lib = env.Library('mongoclient', clientSource),
+ mongoclient_install = env.Install('#/', [
+ mongoclient_lib,
+- #env.SharedLibrary('mongoclient', clientSource),
++ env.SharedLibrary('mongoclient', clientSource),
+ ])
+ env.Alias('mongoclient', mongoclient_install)
+
# TODO:
# - add support for sharding server (init scripts, systemd units, sample config)
-# - fix 'libs' subpackage (disabled due to broken 'sharedclient' build option)
#
Summary: MongoDB client shell and tools
Summary(pl.UTF-8): Powłoka kliencka i narzędzia dla bazy danych MongoDB
Patch1: %{name}-system-libs.patch
Patch2: boost-1.50.patch
Patch3: %{name}-install.patch
+Patch4: %{name}-shared.patch
URL: http://www.mongodb.org/
BuildRequires: boost-devel >= 1.50
BuildRequires: libpcap-devel
BuildRequires: sed >= 4.0
BuildRequires: snappy-devel
BuildRequires: v8-devel
-#Requires: %{name}-libs = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary: Header files for MongoDB client library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej MongoDB
Group: Development/Libraries
-#Requires: %{name}-libs = %{version}-%{release}
-Requires: %{name}-static = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
%description devel
Mongo (from "huMONGOus") is a schema-free document-oriented database.
Summary: Static MongoDB client library
Summary(pl.UTF-8): Statyczna biblioteka kliencka MongoDB
Group: Development/Libraries
-#Requires: %{name}-libs = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Mongo (from "huMONGOus") is a schema-free document-oriented database.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
# Fix permissions
find -type f -executable | xargs chmod a-x
--extralib=pcrecpp,pcre,snappy \
--prefix=$RPM_BUILD_ROOT%{_prefix} \
--full=all \
+ --sharedclient \
--usev8 \
--cxx=%{__cxx}
# XXX: scons is so great, recompiles everything here!
%scons install \
+ CPPFLAGS="%{rpmcppflags} -DXP_UNIX" \
--use-system-all=yes \
--extralib=pcrecpp,pcre,snappy \
--prefix=$RPM_BUILD_ROOT%{_prefix} \
--full=all \
+ --sharedclient \
--usev8 \
--cxx=%{__cxx}
%{_mandir}/man1/mongostat.1*
%{_mandir}/man1/mongorestore.1*
-%if 0
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libmongoclient.so
-%endif
%files devel
%defattr(644,root,root,755)