|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
Name: mongodb
|
|
|
Version: 2.2.0
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Release: 4%{?_dist_release}
|
|
|
Summary: High-performance, schema-free document-oriented database
|
|
|
Summary(ja): 高性能なスキーマ不要のドキュメント指向データベース
|
|
|
Group: Applications/Databases
|
|
@@ -36,6 +36,11 @@ Patch8: mongodb-2.2.0-shared-library.patch
|
|
|
##Patch 9 - https://jira.mongodb.org/browse/SERVER-5575
|
|
|
Patch9: mongodb-2.2.0-full-flag.patch
|
|
|
|
|
|
+## Patch100: avoid build error under libboost-1.66.0
|
|
|
+## https://stackoverflow.com/questions/2333952/g-4-4-compile-error-lower-versions-works
|
|
|
+Patch100: mongodb-2.2.0-linenoise_utf8.h.patch
|
|
|
+
|
|
|
+
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildRequires: python-devel
|
|
@@ -126,6 +131,8 @@ software, default configuration files, and init scripts.
|
|
|
%patch9 -p1
|
|
|
%endif
|
|
|
|
|
|
+%patch100
|
|
|
+
|
|
|
# spurious permissions
|
|
|
chmod -x README
|
|
|
|
|
@@ -138,22 +145,23 @@ scons %{?_smp_mflags} --sharedclient \
|
|
|
--prefix=%{buildroot}%{_prefix} \
|
|
|
--extrapath=%{_prefix} \
|
|
|
%if %{with v8}
|
|
|
- --usev8
|
|
|
+ --usev8 \
|
|
|
%endif
|
|
|
+ CXXFLAGS="-std=c++11"
|
|
|
|
|
|
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
scons install \
|
|
|
- --sharedclient \
|
|
|
- --use-system-all \
|
|
|
- --prefix=%{buildroot}%{_prefix} \
|
|
|
- --extrapath=%{_prefix} \
|
|
|
+ --sharedclient \
|
|
|
+ --use-system-all \
|
|
|
+ --prefix=%{buildroot}%{_prefix} \
|
|
|
+ --extrapath=%{_prefix} \
|
|
|
%if %{with v8}
|
|
|
- --usev8 \
|
|
|
+ --usev8 \
|
|
|
%endif
|
|
|
- --nostrip \
|
|
|
- --full
|
|
|
+ --nostrip \
|
|
|
+ --full
|
|
|
rm -f %{buildroot}%{_libdir}/libmongoclient.a
|
|
|
rm -f %{buildroot}/usr/lib/libmongoclient.a
|
|
|
|
|
@@ -252,7 +260,12 @@ fi
|
|
|
%defattr(-,root,root,-)
|
|
|
%{_includedir}
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Thu Jan 18 2018 Toshiaki Ara <ara_t@384.jp> 2.2.0-4
|
|
|
+- rebuild with libboost-1.66.0
|
|
|
+- add Patch100 (mongodb-2.2.0-linenoise_utf8.h.patch)
|
|
|
+
|
|
|
* Mon Dec 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-2
|
|
|
- rebuild with libboost-1.54.0
|
|
|
|