Summary: Spamassassin Milter Name: spamass-milter Version: 0.2.0 Release: 2.9.20031024 Source: spamass-milter-%{version}+cvs.tar.bz2 Patch0: spamass-milter-0.2.0.nodefaultrun.patch URL: http://savannah.gnu.org/projects/spamass-milt/ License: GPL Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-root BuildRequires: spamassassin sendmail-devel autoconf automake # Requires sendmail to have milter support, too. Requires: spamassassin sendmail %description A little plugin for the Sendmail Milter (Mail Filter) library that pipes all incoming mail (including things received by rmail/UUCP) through the SpamAssassin, a highly customizable SpamFilter. %prep %setup -q -n spamass-milter-0.2.0+cvs %patch0 -p1 -b .nodefrun %build %configure make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %makeinstall mkdir -p $RPM_BUILD_ROOT%{_initrddir} install -m755 contrib/spamass-milter-redhat.rc \ $RPM_BUILD_ROOT%{_initrddir}/spamass-milter %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add spamass-milter %postun if [ "$1" -ge "1" ]; then /sbin/service spamass-milter condrestart > /dev/null 2>&1 fi %preun if [ $1 = 0 ] ; then /sbin/service spamass-milter stop >/dev/null 2>&1 /sbin/chkconfig --del spamass-milter fi exit 0 %files %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS README %{_sbindir}/spamass-milter %{_initrddir}/spamass-milter %{_mandir}/man1/spamass-milter.1* %changelog * Mon Oct 27 2003 Milan Kerslager 0.2.0-2.9.20031024 - null message body causes crash of filter -> update to CVS version * Sun Oct 5 2003 Milan Kerslager 0.2.0-2.9 - SPEC file fixes - spamass-milter is not run by default * Sat Aug 9 2003 Milan Kerslager 0.2.0-1.9 - rebuild for RH 8.0 and 9 * Mon Aug 19 2002 Fritz Elfert - Use RPM macros everywhere (this fixes install of manpage) - Changed Group to an official group of RedHat - Added preun and post scriptlets - Made clean scriptlet foolproof - Added condrestart to redhat rc script