]> git.pld-linux.org Git - packages/cleanfeed.git/blob - cleanfeed.spec
- caps unification, other cosmetics
[packages/cleanfeed.git] / cleanfeed.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        INN spam filter
3 Summary(pl):    Filtr spamu dla INN
4 Name:           cleanfeed
5 Version:        0.95.7b
6 Release:        12
7 License:        distributable
8 Group:          Networking/Daemons
9 Source0:        ftp://ftp.exit109.com/users/jeremy/%{name}-%{version}.tar.gz
10 # Source0-md5:  a715445b9fb13382a3d97bbbb64d638f
11 Patch0:         %{name}-conf.patch
12 Requires:       perl-Digest-MD5
13 Conflicts:      inn < 2.3
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _sysconfdir     /etc/news
18
19 %description
20 Cleanfeed is an automatic filter for INN that removes spam from
21 incoming newsfeeds.
22
23 %description -l pl
24 Automatyczny filtr spamu dla serwerów news.
25
26 %prep
27 %setup -q
28 %patch -p1
29
30 %build
31 # INN 2.3.x hack
32 sed -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" \
33         cleanfeed > cleanfeed.new
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
39
40 install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
41 install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
42 install cleanfeed.new $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
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.529466 seconds and 3 git commands to generate.