summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpm/mongodb-enterprise-unstable.spec112
1 files changed, 66 insertions, 46 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec
index 7fe4a52476d..751eda3ea5f 100644
--- a/rpm/mongodb-enterprise-unstable.spec
+++ b/rpm/mongodb-enterprise-unstable.spec
@@ -3,41 +3,64 @@ Conflicts: mongo-10gen, mongo-10gen-enterprise, mongo-10gen-enterprise-server, m
Obsoletes: mongodb-enterprise-unstable,mongo-enterprise-unstable
Version: 2.5.2
Release: mongodb_1%{?dist}
-Summary: mongo client shell and tools
+Summary: MongoDB Enterprise server, shell, sharding server and tools
License: AGPL 3.0
URL: http://www.mongodb.org
Group: Applications/Databases
-Requires: cyrus-sasl, net-snmp-libs
+Requires: mongodb-enterprise-unstable-server, mongodb-enterprise-unstable-shell, mongodb-enterprise-unstable-mongos, mongodb-enterprise-unstable-tools
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
-Mongo (from "huMONGOus") is a schema-free document-oriented database.
+MongoDB (from "huMONGOus") is a schema-free document-oriented database.
It features dynamic profileable queries, full indexing, replication
and fail-over support, efficient storage of large binary data objects,
and auto-sharding.
-This package provides the mongo shell, import/export tools, and other
-client utilities.
+This package provides the mongo shell, import/export tools, other
+client utilities, server software, default configuration, and
+init.d scripts.
%package server
-Summary: mongo server, sharding server, and support scripts
-Group: Applications/Databases
-Requires: mongodb-enterprise-unstable
+Summary: MongoDB server and support scripts
+Requires: cyrus-sasl, net-snmp-libs
%description server
-Mongo (from "huMONGOus") is a schema-free document-oriented database.
+MongoDB (from "huMONGOus") is a schema-free document-oriented database.
+
+This package provides the mongo server software, default configuration
+files, and init.d scripts.
+
+%package shell
+Summary: MongoDB shell
+
+%description shell
+MongoDB (from "huMONGOus") is a schema-free document-oriented database.
+
+This package provides the mongo shell
-This package provides the mongo server software, mongo sharding server
-softwware, default configuration files, and init.d scripts.
+%package mongos
+Summary: MongoDB sharding server
+
+%description mongos
+MongoDB (from "huMONGOus") is a schema-free document-oriented database.
+
+This package provides mongos, the mongo sharding server
+
+%package tools
+Summary: MongoDB utilities
+
+%description tools
+MongoDB (from "huMONGOus") is a schema-free document-oriented database.
+
+This package provides tools for use with MongoDB
%package devel
-Summary: Headers and libraries for mongo development.
-Group: Applications/Databases
+Summary: Headers and libraries for mongo development.
%description devel
-Mongo (from "huMONGOus") is a schema-free document-oriented database.
+MongoDB (from "huMONGOus") is a schema-free document-oriented database.
This package provides the mongo static library and header files needed
to develop mongo client software.
@@ -46,11 +69,8 @@ to develop mongo client software.
%setup
%build
-#scons --prefix=$RPM_BUILD_ROOT/usr all
-# XXX really should have shared library here
%install
-#scons --prefix=$RPM_BUILD_ROOT/usr install
mkdir -p $RPM_BUILD_ROOT/usr
cp -rv BINARIES/usr/bin $RPM_BUILD_ROOT/usr
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
@@ -70,12 +90,11 @@ mkdir -p $RPM_BUILD_ROOT/var/run/mongodb
touch $RPM_BUILD_ROOT/var/log/mongodb/mongod.log
%clean
-#scons -c
rm -rf $RPM_BUILD_ROOT
%pre server
if ! /usr/bin/id -g mongodb &>/dev/null; then
- /usr/sbin/groupadd -r mongod
+ /usr/sbin/groupadd -r mongodb
fi
if ! /usr/bin/id mongodb &>/dev/null; then
/usr/sbin/useradd -M -r -g mongodb -d /var/lib/mongodb -s /bin/false -c mongodb mongodb > /dev/null 2>&1
@@ -100,11 +119,34 @@ then
fi
%files
+
+%files server
+%defattr(-,root,root,-)
+%config(noreplace) /etc/mongod.conf
+%{_bindir}/mongod
+%{_mandir}/man1/mongod.1*
+/etc/rc.d/init.d/mongod
+/etc/sysconfig/mongod
+%attr(0755,mongodb,mongodb) %dir /var/lib/mongodb
+%attr(0755,mongodb,mongodb) %dir /var/log/mongodb
+%attr(0755,mongodb,mongodb) %dir /var/run/mongodb
+%attr(0640,mongodb,mongodb) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
+
+%files shell
+%defattr(-,root,root,-)
+%{_bindir}/mongo
+%{_mandir}/man1/mongo.1*
+
+%files mongos
+%defattr(-,root,root,-)
+%{_bindir}/mongos
+%{_mandir}/man1/mongos.1*
+
+%files tools
%defattr(-,root,root,-)
#%doc README GNU-AGPL-3.0.txt
%{_bindir}/bsondump
-%{_bindir}/mongo
%{_bindir}/mongodump
%{_bindir}/mongoexport
%{_bindir}/mongofiles
@@ -114,43 +156,21 @@ fi
%{_bindir}/mongorestore
%{_bindir}/mongotop
%{_bindir}/mongostat
-# FIXME: uncomment when mongosniff is back in the package
-#%{_bindir}/mongosniff
-# FIXME: uncomment this when there's a stable release whose source
-# tree contains a bsondump man page.
%{_mandir}/man1/bsondump.1*
-%{_mandir}/man1/mongo.1*
%{_mandir}/man1/mongodump.1*
%{_mandir}/man1/mongoexport.1*
%{_mandir}/man1/mongofiles.1*
%{_mandir}/man1/mongoimport.1*
+%{_mandir}/man1/mongooplog.1*
+%{_mandir}/man1/mongoperf.1*
%{_mandir}/man1/mongorestore.1*
-%{_mandir}/man1/mongostat.1*
-# FIXME: uncomment when mongosniff is back in the package
-#%{_mandir}/man1/mongosniff.1*
%{_mandir}/man1/mongotop.1*
-%{_mandir}/man1/mongoperf.1*
-%{_mandir}/man1/mongooplog.1*
-
-%files server
-%defattr(-,root,root,-)
-%config(noreplace) /etc/mongod.conf
-%{_bindir}/mongod
-%{_bindir}/mongos
-%{_mandir}/man1/mongod.1*
-%{_mandir}/man1/mongos.1*
-/etc/rc.d/init.d/mongod
-/etc/sysconfig/mongod
-#/etc/rc.d/init.d/mongos
-%attr(0755,mongodb,mongodb) %dir /var/lib/mongodb
-%attr(0755,mongodb,mongodb) %dir /var/log/mongodb
-%attr(0755,mongodb,mongodb) %dir /var/run/mongodb
-%attr(0640,mongodb,mongodb) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
+%{_mandir}/man1/mongostat.1*
%changelog
* Thu Jan 28 2010 Richard M Kreuter <richard@10gen.com>
- Minor fixes.
-* Sat Oct 24 2009 Joe Miklojcik <jmiklojcik@shopwiki.com> -
+* Sat Oct 24 2009 Joe Miklojcik <jmiklojcik@shopwiki.com> -
- Wrote mongo.spec.