SPECS: spamassassin.spec - package /var/lib/spamassassin/* for sa-...

glen glen at pld-linux.org
Wed Aug 23 16:19:54 CEST 2006


Author: glen                         Date: Wed Aug 23 14:19:54 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- package /var/lib/spamassassin/* for sa-update
- drop non-cvs changelog

---- Files affected:
SPECS:
   spamassassin.spec (1.98 -> 1.99) 

---- Diffs:

================================================================
Index: SPECS/spamassassin.spec
diff -u SPECS/spamassassin.spec:1.98 SPECS/spamassassin.spec:1.99
--- SPECS/spamassassin.spec:1.98	Tue Aug 22 15:14:06 2006
+++ SPECS/spamassassin.spec	Wed Aug 23 16:19:49 2006
@@ -1,10 +1,11 @@
 # $Revision$, $Date$
+# TODO
+# - build lib{,ssl}spamc.so (if there is a point)
+# - separate package for sa-update? (as it has extra perl deps)
 #
 # Conditional build:
 %bcond_without	tests		# perform "make test"
 #
-# TODO: build lib{,ssl}spamc.so (if there is a point)
-#
 %include	/usr/lib/rpm/macros.perl
 %define		pdir	Mail
 %define		pnam	SpamAssassin
@@ -12,7 +13,7 @@
 Summary(pl):	Filtr antyspamowy, przeznaczony dla programów dostarczających pocztę (MDA)
 Name:		spamassassin
 Version:	3.1.4
-Release:	1
+Release:	1.1
 License:	Apache Software License v2
 Group:		Applications/Mail
 Source0:	http://www.apache.org/dist/spamassassin/source/%{pdir}-%{pnam}-%{version}.tar.bz2
@@ -46,6 +47,8 @@
 %endif
 BuildRequires:	rpm-perlprov >= 4.1-13
 Requires:	perl-Mail-SpamAssassin = %{version}-%{release}
+# for sa-update
+Requires:	perl-Archive-Tar
 Obsoletes:	SpamAssassin
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -185,7 +188,11 @@
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/spamd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/spamd
 
+# sa-update dir
+install -d $RPM_BUILD_ROOT/var/lib/spamassassin/$(printf %d.%03d%03d $(echo %{version} | tr '.' ' '))
+
 rm -f $RPM_BUILD_ROOT{%{perl_archlib}/perllocal.pod,%{perl_vendorarch}/auto/Mail/SpamAssassin/.packlist,%{_mandir}/man3/spamassassin-run.*}
+rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/spamassassin-run.pod
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -219,7 +226,8 @@
 %{_mandir}/man1/sa-learn*
 %{_mandir}/man1/sa-update*
 %{_mandir}/man1/spamassassin*
-%{perl_vendorlib}/spamassassin-run.pod
+%dir /var/lib/spamassassin
+%dir /var/lib/spamassassin/*
 
 %files tools
 %defattr(644,root,root,755)
@@ -254,6 +262,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.99  2006/08/23 14:19:49  glen
+- package /var/lib/spamassassin/* for sa-update
+- drop non-cvs changelog
+
 Revision 1.98  2006/08/22 13:14:06  radek
 - _noautoreq Net::Ident (this piece of trash is optional)
 
@@ -613,28 +625,3 @@
 
 Revision 1.1  2002/07/20 13:55:37  radek
 - initial revision, rewritten from RH.
-
-* Fri Apr 19 2002 Theo Van Dinter <felicity at kluge.net>
-- Updated for 2.20 release
-- made /etc/mail/spamassassin a config directory so local.cf doesn't get wiped out
-- added a patch to remove findbin stuff
-
-* Wed Feb 27 2002 Craig Hughes <craig at hughes-family.org>
-- Updated for 2.1 release
-
-* Sat Feb 02 2002 Theo Van Dinter <felicity at kluge.net>
-- Updates for 2.01 release
-- Fixed rc file
-- RPM now buildable as non-root
-- fixed post_service errors
-- fixed provides to include perl modules
-- use file find instead of manually specifying files
-
-* Tue Jan 15 2002 Craig Hughes <craig at hughes-family.org>
-- Updated for 2.0 release
-
-* Wed Dec 05 2001 Craig Hughes <craig at hughes-family.org>
-- Updated for final 1.5 distribution.
-
-* Sun Nov 18 2001 Craig Hughes <craig at hughes-family.org>
-- first version of rpm.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/spamassassin.spec?r1=1.98&r2=1.99&f=u



More information about the pld-cvs-commit mailing list