summaryrefslogtreecommitdiff
path: root/rpm/mongo.spec
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-01-29 16:38:27 -0500
committerRichard Kreuter <richard@10gen.com>2010-01-29 16:42:38 -0500
commit96badcb5ca29cf6f4df8be408e58409c868aff18 (patch)
tree2846734ddb53d96010273666c867ffe4a48bb30c /rpm/mongo.spec
parentc81ca9783f77348c735dad627a7b9be706dceb64 (diff)
downloadmongo-96badcb5ca29cf6f4df8be408e58409c868aff18.tar.gz
Add stanzas to specfile for making mostly statically linked RPMs MINOR
Diffstat (limited to 'rpm/mongo.spec')
-rw-r--r--rpm/mongo.spec18
1 files changed, 18 insertions, 0 deletions
diff --git a/rpm/mongo.spec b/rpm/mongo.spec
index a7c4be8b072..88fc9da4787 100644
--- a/rpm/mongo.spec
+++ b/rpm/mongo.spec
@@ -47,6 +47,9 @@ to develop mongo client software.
scons --prefix=$RPM_BUILD_ROOT/usr all
# XXX really should have shared library here
+%build mostlystatic
+scons --prefix=$RPM_BUILD_ROOT/usr --extralib=nspr4 --staticlib=boost_system-mt,boost_thread-mt,boost_filesystem-mt,boost_program_options-mt,js install
+
%install
scons --prefix=$RPM_BUILD_ROOT/usr install
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
@@ -62,6 +65,21 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/mongo
mkdir -p $RPM_BUILD_ROOT/var/log
touch $RPM_BUILD_ROOT/var/log/mongo
+%install mostlystatic
+scons --prefix=$RPM_BUILD_ROOT/usr install
+mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
+cp debian/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
+mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
+cp rpm/init.d-mongod $RPM_BUILD_ROOT/etc/rc.d/init.d/mongod
+chmod a+x $RPM_BUILD_ROOT/etc/rc.d/init.d/mongod
+mkdir -p $RPM_BUILD_ROOT/etc
+cp rpm/mongod.conf $RPM_BUILD_ROOT/etc/mongod.conf
+mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
+cp rpm/mongod.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/mongod
+mkdir -p $RPM_BUILD_ROOT/var/lib/mongo
+mkdir -p $RPM_BUILD_ROOT/var/log
+touch $RPM_BUILD_ROOT/var/log/mongo
+
%clean
scons -c
rm -rf $RPM_BUILD_ROOT