SPECS: dspam.spec - package txt files - add dspam_clean speedup patch

glen glen at pld-linux.org
Sun May 7 23:59:27 CEST 2006


Author: glen                         Date: Sun May  7 21:59:27 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- package txt files
- add dspam_clean speedup patch

---- Files affected:
SPECS:
   dspam.spec (1.61 -> 1.62) 

---- Diffs:

================================================================
Index: SPECS/dspam.spec
diff -u SPECS/dspam.spec:1.61 SPECS/dspam.spec:1.62
--- SPECS/dspam.spec:1.61	Sun May  7 19:55:39 2006
+++ SPECS/dspam.spec	Sun May  7 23:59:22 2006
@@ -20,13 +20,14 @@
 Summary(pl):	Biblioteka i MDA do bayesowskiego filtrowania spamu
 Name:		dspam
 Version:	3.6.5
-Release:	0.25
+Release:	0.27
 License:	GPL
 Group:		Applications/Mail
 Source0:	http://www.nuclearelephant.com/projects/dspam/sources/%{name}-%{version}.tar.gz
 # Source0-md5:	da4f0e00633bff49d71fde418caaf14b
 Patch0:		%{name}-webui.patch
 Patch1:		%{name}-config.patch
+Patch2:		%{name}-speedup.patch
 Source1:	%{name}.init
 Source2:	%{name}-apache.conf
 URL:		http://www.nuclearelephant.com/projects/dspam/
@@ -249,6 +250,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 sed -i -e 's#\-static##g' src/Makefile* src/*/Makefile*
 %{?with_mysql40:sed -i -e 's#40100#99999#g' src/mysql_drv.c}
 sed -i -e 's,/usr/local/dspam/bin,/usr/bin,' ./scripts/train.pl
@@ -309,13 +311,15 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/var/run/dspam,/etc/{rc.d/init.d,sysconfig}} \
-	$RPM_BUILD_ROOT/var/lib/%{name}/data
+	$RPM_BUILD_ROOT/var/lib/%{name}/{txt,data}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dspam
 
+cp -a txt/*.txt $RPM_BUILD_ROOT/var/lib/%{name}/txt
+
 # install devel files
 install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},/var/{log,lib}/%{name}}
 install src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
@@ -434,6 +438,8 @@
 %dir %attr(775,root,mail) /var/run/dspam
 %dir %attr(750,root,mail) /var/lib/%{name}
 %dir %attr(770,root,mail) /var/lib/%{name}/data
+%dir /var/lib/%{name}/txt
+%config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/txt/*.txt
 %dir %attr(770,root,mail) /var/log/dspam
 %attr(754,root,root) /etc/rc.d/init.d/dspam
 %attr(755,root,root) %config(noreplace) /etc/cron.daily/%{name}
@@ -532,6 +538,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.62  2006/05/07 21:59:22  glen
+- package txt files
+- add dspam_clean speedup patch
+
 Revision 1.61  2006/05/07 17:55:39  glen
 - drop unused /var/lib/%{name}/log symlink
 - package /var/lib/%{name}/data and make it's parent not writable
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dspam.spec?r1=1.61&r2=1.62&f=u



More information about the pld-cvs-commit mailing list