# TODO:
# - add support for sharding server (init scripts, systemd units, sample config)
+# - \> escape not liked?
+# Sep 11 00:20:18 blodnatt systemd[1]: [/lib/systemd/system/mongod@.service:8] Invalid escape sequences in command line: "/bin/sh -c "if grep -q '^[ \t]*fork\>' /etc/mongod/%i.conf ; then echo there must be no 'fork' in /etc/mongod/%i.conf >&2 ; exit 1 ; fi""
+# TODO
#
Summary: MongoDB client shell and tools
Summary(pl.UTF-8): Powłoka kliencka i narzędzia dla bazy danych MongoDB
Name: mongodb
Version: 2.2.4
-Release: 8
+Release: 11
License: AGPL v3
Group: Applications/Databases
Source0: http://downloads.mongodb.org/src/%{name}-src-r%{version}.tar.gz
Patch3: %{name}-install.patch
Patch4: %{name}-shared.patch
Patch5: gcc4.patch
+Patch6: no-Werror.patch
+Patch7: gcc6.patch
+Patch8: %{name}-pcap.patch
URL: http://www.mongodb.org/
BuildRequires: boost-devel >= 1.50
BuildRequires: libpcap-devel
BuildRequires: snappy-devel
BuildRequires: v8-devel
Requires: %{name}-libs = %{version}-%{release}
+# matching v8-devel
+ExclusiveArch: %{ix86} %{x8664} arm mips
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
# Fix permissions
find -type f -executable | xargs chmod a-x