packages: mongodb/mongodb.spec - cleanup files (remove suse junk), pldize -...

glen glen at pld-linux.org
Thu Oct 28 10:45:19 CEST 2010


Author: glen                         Date: Thu Oct 28 08:45:19 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- cleanup files (remove suse junk), pldize
- (kind of) unified package order

---- Files affected:
packages/mongodb:
   mongodb.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/mongodb/mongodb.spec
diff -u packages/mongodb/mongodb.spec:1.5 packages/mongodb/mongodb.spec:1.6
--- packages/mongodb/mongodb.spec:1.5	Thu Oct 28 10:37:55 2010
+++ packages/mongodb/mongodb.spec	Thu Oct 28 10:45:14 2010
@@ -31,17 +31,6 @@
 This package provides the mongo shell, import/export tools, and other
 client utilities.
 
-%package server
-Summary:	MongoDB server, sharding server, and support scripts
-Group:		Applications/Databases
-Requires:	%{name} = %{version}-%{release}
-
-%description server
-Mongo (from "huMONGOus") is a schema-free document-oriented database.
-
-This package provides the mongo server software, mongo sharding server
-softwware, default configuration files, and init.d scripts.
-
 %package devel
 Summary:	Headers and libraries for mongo development
 Group:		Development/Libraries
@@ -53,6 +42,17 @@
 This package provides the mongo static library and header files needed
 to develop mongo client software.
 
+%package server
+Summary:	MongoDB server, sharding server, and support scripts
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description server
+Mongo (from "huMONGOus") is a schema-free document-oriented database.
+
+This package provides the mongo server software, mongo sharding server
+softwware, default configuration files, and init.d scripts.
+
 %prep
 %setup -q -n %{name}-src-r%{version}
 
@@ -71,32 +71,24 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1} \
-	$RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d} \
+	$RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
 	$RPM_BUILD_ROOT%{_var}/{lib,log}/mongo
+
 %scons install \
 	--prefix=$RPM_BUILD_ROOT%{_prefix} \
 	--sharedclient \
 	--full \
 	--usev8
 
-cp -a debian/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-#install -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d
-#cp rpm/init.d-mongod $RPM_BUILD_ROOT%{_sysconfdir}/init.d/mongod
-#chmod a+x $RPM_BUILD_ROOT%{_sysconfdir}/init.d/mongod
+install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mongod
+cp -a rpm/mongod.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/mongod
 
+cp -a %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/mongod
 cp -a rpm/mongod.conf $RPM_BUILD_ROOT%{_sysconfdir}/mongod.conf
-#install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
-#cp rpm/mongod.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/mongod
-#cp rpm/mongod.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/mongod
 
-touch $RPM_BUILD_ROOT%{_var}/log/mongo/mongod.log
-cp -a %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/mongod
-install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mongod
+cp -a debian/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-#install -d $RPM_BUILD_ROOT%{_sbindir}
-#ln -s %{_sysconfdir}/init.d/mongod $RPM_BUILD_ROOT%{_sbindir}/rcmongod
-# XXX PFF?
-ln -s ../../etc/rc.d/init.d/mongod $RPM_BUILD_ROOT%{_sbindir}/rcmongod
+touch $RPM_BUILD_ROOT%{_var}/log/mongo/mongod.log
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -137,11 +129,11 @@
 
 %files server
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/mongod.conf
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mongod.conf
+%attr(754,root,root) /etc/rc.d/init.d/mongod
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mongod
 %config(noreplace) /etc/logrotate.d/mongod
-%attr(754,root,root) %config /etc/rc.d/init.d/mongod
-%attr(755,root,root) %{_sbindir}/rcmongod
-%config %{_var}/adm/fillup-templates/sysconfig.mongod
 %attr(755,root,root) %{_bindir}/mongod
 %attr(755,root,root) %{_bindir}/mongos
 %{_mandir}/man1/mongos.1*
@@ -162,6 +154,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2010/10/28 08:45:14  glen
+- cleanup files (remove suse junk), pldize
+- (kind of) unified package order
+
 Revision 1.5  2010/10/28 08:37:55  glen
 - fix deps, drop bogus ldconfig
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mongodb/mongodb.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list