1 Summary: INN spam filter
2 Summary(pl): Filtr spamu dla INN
6 Copyright: distributable
7 Group: Networking/Daemons
8 Group(pl): Sieciowe/Serwery
9 Source0: ftp://ftp.exit109.com/users/jeremy/%{name}-%{version}.tar.gz
10 Patch0: cleanfeed-conf.patch
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 Requires: perl-Digest-MD5
15 %define _sysconfdir /etc/news
18 Cleanfeed is an automatic filter for INN that removes spam from
22 Automatyczny filtr spamu dla serwerów news.
29 sed -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" \
30 cleanfeed > cleanfeed.new
33 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT/{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
37 install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
38 install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
39 install cleanfeed.new $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %attr(640,root,news) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
50 %{_datadir}/news/filter/filter_innd.pl