]> git.pld-linux.org Git - packages/mongodb.git/blobdiff - mongodb.spec
- 1.8.3
[packages/mongodb.git] / mongodb.spec
index e535b468da5e99b42aca466f7b98ae666f34e62f..54ea2db1f3ea1a873a7e220813106aff98c1127e 100644 (file)
@@ -1,18 +1,19 @@
 #
 # TODO
-# - pass our rpm*cflags, use CXX
+# - pass our rpm*cflags
 #
 Summary:       MongoDB client shell and tools
 Name:          mongodb
-Version:       1.6.4
+Version:       1.8.3
 Release:       0.1
 License:       AGPL 3.0
 Group:         Applications/Databases
 URL:           http://www.mongodb.org/
 Source0:       http://downloads.mongodb.org/src/%{name}-src-r%{version}.tar.gz
-# Source0-md5: 4df15dba13d7e743f0148127122baec6
+# Source0-md5: 662e7ad6ff9f8e4d16c72c038b4a0c60
 Source1:       %{name}.logrotate
 Source2:       %{name}.init
+Patch0:                config.patch
 # BuildRequires:  libpcap-devel
 BuildRequires: boost-devel >= 1.42
 BuildRequires: libstdc++-devel >= 6:4.0
@@ -21,6 +22,7 @@ BuildRequires:        pcre-devel
 BuildRequires: readline-devel
 BuildRequires: rpmbuild(macros) >= 1.228
 BuildRequires: scons >= 1.2
+BuildRequires: sed >= 4.0
 BuildRequires: v8-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -67,6 +69,8 @@ softwware, default configuration files, and init.d scripts.
 
 %prep
 %setup -q -n %{name}-src-r%{version}
+%patch0 -p1
+%{__sed} -i 's,-O3,,' SConstruct
 
 # Fix permissions
 find -type f -executable | xargs chmod a-x
@@ -76,7 +80,8 @@ find -type f -executable | xargs chmod a-x
        --prefix=$RPM_BUILD_ROOT%{_prefix} \
        --sharedclient \
        --full all \
-       --usev8
+       --usev8 \
+       --cxx=%{__cxx}
 
 # XXX really should have shared library here
 
@@ -134,6 +139,7 @@ fi
 %attr(755,root,root) %{_bindir}/mongofiles
 %attr(755,root,root) %{_bindir}/mongoimport
 %attr(755,root,root) %{_bindir}/mongorestore
+#%%attr(755,root,root) %{_bindir}/mongosniff
 %attr(755,root,root) %{_bindir}/mongostat
 %attr(755,root,root) %{_bindir}/bsondump
 %{_mandir}/man1/mongo.1*
This page took 0.148188 seconds and 4 git commands to generate.