]> git.pld-linux.org Git - packages/cleanfeed.git/blob - cleanfeed.spec
- added conflicts inn < 2.3
[packages/cleanfeed.git] / cleanfeed.spec
1 Summary:        INN spam filter
2 Summary(pl):    Filtr spamu dla INN
3 Name:           cleanfeed
4 Version:        0.95.7b
5 Release:        4
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
13 Conflicts:      inn < 2.3
14 Buildarch:      noarch
15
16 %define         _sysconfdir     /etc/news
17
18 %description
19 Cleanfeed is an automatic filter for INN that removes spam from
20 incoming newsfeeds.
21
22 %description -l pl
23 Automatyczny filtr spamu dla serwerów news.
24
25 %prep
26 %setup -q
27 %patch -p1 
28
29 # INN 2.3.x hack
30 sed -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" \
31         cleanfeed > cleanfeed.new
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 install -d $RPM_BUILD_ROOT/{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
37
38 install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
39 install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
40 install cleanfeed.new $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
41
42 gzip -9nf README
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README.gz
50 %attr(640,root,news) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
51 %{_datadir}/news/filter/filter_innd.pl
52 %{_mandir}/man8/*
This page took 0.065176 seconds and 3 git commands to generate.