]> git.pld-linux.org Git - packages/mongodb.git/blobdiff - mongodb.spec
- rebuild with boost 1.71
[packages/mongodb.git] / mongodb.spec
index cfd59eb32773cf06801b1facbf4ee9547c67aedd..03de8ad44e4447392f5d245e48759760ad6825ab 100644 (file)
@@ -1,11 +1,14 @@
 # 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:       1
+Release:       11
 License:       AGPL v3
 Group:         Applications/Databases
 Source0:       http://downloads.mongodb.org/src/%{name}-src-r%{version}.tar.gz
@@ -19,6 +22,10 @@ Patch1:              %{name}-system-libs.patch
 Patch2:                boost-1.50.patch
 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
@@ -35,6 +42,8 @@ BuildRequires:        sed >= 4.0
 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
@@ -145,6 +154,10 @@ konfiguracji oraz skrypty init.d.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 # Fix permissions
 find -type f -executable | xargs chmod a-x
@@ -198,6 +211,11 @@ for f in $RPM_BUILD_ROOT%{_includedir}/mongo/*; do
        rm -r "$RPM_BUILD_ROOT%{_includedir}/$(basename $f)" || :
 done
 
+%ifarch %{x8664}
+chmod -R a+rX $RPM_BUILD_ROOT/usr/lib
+%{__rm} -r $RPM_BUILD_ROOT/usr/lib
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.045337 seconds and 4 git commands to generate.