1 %include /usr/lib/rpm/macros.perl
2 Summary: INN spam filter
3 Summary(pl): Filtr spamu dla INN
8 Group: Networking/Daemons
9 Source0: ftp://ftp.exit109.com/users/jeremy/%{name}-%{version}.tar.gz
10 Patch0: %{name}-conf.patch
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 Requires: perl-Digest-MD5
16 %define _sysconfdir /etc/news
19 Cleanfeed is an automatic filter for INN that removes spam from
23 Automatyczny filtr spamu dla serwerów news.
31 sed -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" \
32 cleanfeed > cleanfeed.new
35 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT/{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
39 install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
40 install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
41 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