packages: mailman/mailman.spec - package dirs in spool, drop tests from pac...

glen glen at pld-linux.org
Wed Aug 25 17:07:48 CEST 2010


Author: glen                         Date: Wed Aug 25 15:07:48 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package dirs in spool, drop tests from package

---- Files affected:
packages/mailman:
   mailman.spec (1.168 -> 1.169) 

---- Diffs:

================================================================
Index: packages/mailman/mailman.spec
diff -u packages/mailman/mailman.spec:1.168 packages/mailman/mailman.spec:1.169
--- packages/mailman/mailman.spec:1.168	Wed Aug 18 09:48:48 2010
+++ packages/mailman/mailman.spec	Wed Aug 25 17:07:42 2010
@@ -14,7 +14,7 @@
 Epoch:		5
 License:	GPL v2+
 Group:		Applications/System
-Source0:	http://dl.sourceforge.net/mailman/%{name}-%{version}.tgz
+Source0:	http://downloads.sourceforge.net/mailman/%{name}-%{version}.tgz
 # Source0-md5:	3235323ccb3e0135c10b7c66a440390b
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
 # Source1-md5:	6b55f9f8051c76961b84a12ed17fc14f
@@ -216,8 +216,7 @@
 install -d $RPM_BUILD_ROOT{/etc/{cron.d,logrotate.d,rc.d/init.d,sysconfig,smrsh},%{_mandir}} \
 	$RPM_BUILD_ROOT{%{_sysconfdir},%{_logarchdir}}
 
-PYTHONPATH=$RPM_BUILD_ROOT%{_libdir}/%{name}:$RPM_BUILD_ROOT%{_libdir}/%{name}/pythonlib/
-export PYTHONPATH
+export PYTHONPATH=$RPM_BUILD_ROOT%{_libdir}/%{name}:$RPM_BUILD_ROOT%{_libdir}/%{name}/pythonlib
 
 %{__make} doinstall \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -233,10 +232,10 @@
 	> $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 sed -e 's#/usr/lib/mailman#%{_libdir}/mailman#g' %{SOURCE3} \
 	> $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
-install cron/crontab.in $RPM_BUILD_ROOT/etc/cron.d/%{name}
+cp -a cron/crontab.in $RPM_BUILD_ROOT/etc/cron.d/%{name}
 
 install -p contrib/{subscribe_list,add_nonmembers} $RPM_BUILD_ROOT%{_libdir}/%{name}/bin
 
@@ -288,6 +287,10 @@
 rm -f $RPM_BUILD_ROOT%{_mandir}/README-mailman-man-pages
 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.arch.8
 rm -f $RPM_BUILD_ROOT%{_libdir}/mailman/messages/*/LC_MESSAGES/*.po
+rm -rf $RPM_BUILD_ROOT%{_libdir}/mailman/tests
+
+# create dirs to package them
+touch $RPM_BUILD_ROOT%{_queuedir}/{archive,bad,bounces,commands,in,news,out,retry,shunt,virgin}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -384,7 +387,7 @@
 mv -f /var/spool/mailman/qfiles/* %{_queuedir}/
 # Fix symlinks for public archives
 cd %{_var}/lib/mailman/archives/public/
-for i in * ; do
+for i in *; do
 	link=$(readlink "$i")
 	dn=$(dirname "$link")
 	if [ "$dn" = "/var/spool/mailman/archives/private" ]; then
@@ -454,7 +457,6 @@
 %dir %{_libdir}/%{name}/scripts
 %dir %{_libdir}/%{name}/templates
 %dir %{_libdir}/%{name}/messages
-%dir %{_libdir}/%{name}/tests
 %dir %{_libdir}/%{name}/Mailman
 
 # move to %{py_sitedir}?
@@ -534,7 +536,6 @@
 %attr(2755,root,mailman) %{_libdir}/%{name}/mail/mailman
 %{_libdir}/%{name}/templates/*
 %{_libdir}/%{name}/messages/*
-%{_libdir}/%{name}/tests/*
 
 %dir %{_var}/lib/%{name}
 %dir %{_var}/lib/%{name}/archives
@@ -546,6 +547,7 @@
 %dir %{_var}/lib/%{name}/lists
 %dir %{_var}/lib/%{name}/spam
 %dir %{_queuedir}
+%dir %{_queuedir}/*
 %dir %{_lockdir}
 %dir %{_logdir}
 %dir %{_logarchdir}
@@ -561,6 +563,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.169  2010/08/25 15:07:42  glen
+- package dirs in spool, drop tests from package
+
 Revision 1.168  2010/08/18 07:48:48  arekm
 - release 3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mailman/mailman.spec?r1=1.168&r2=1.169&f=u



More information about the pld-cvs-commit mailing list