]> git.pld-linux.org Git - packages/cleanfeed.git/blob - cleanfeed.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cleanfeed.git] / cleanfeed.spec
1 Summary:        INN spam filter
2 Summary(pl.UTF-8):      Filtr spamu dla INN-a
3 Name:           cleanfeed
4 Version:        20100602
5 Release:        1
6 License:        Artistic v2.0
7 Group:          Networking/Daemons
8 #originally:    http://www.bofh.it/~md/cleanfeed/%{name}-%{src_ver}.tgz
9 # later maintained version:
10 #Source0Download: http://www.mixmin.net/cleanfeed/install.html
11 Source0:        http://www.mixmin.net/cleanfeed/%{name}.tar.gz
12 # Source0-md5:  8e14b5e306a9f875b8fcd6488584675a
13 Source1:        %{name}.8
14 Patch0:         %{name}-conf.patch
15 URL:            http://www.mixmin.net/cleanfeed/
16 BuildRequires:  rpm-perlprov
17 Requires:       perl-Digest-MD5
18 Conflicts:      inn < 2.3
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sysconfdir     /etc/news
23
24 %description
25 Cleanfeed is an automatic filter for INN that removes spam from
26 incoming newsfeeds.
27
28 %description -l pl.UTF-8
29 Automatyczny filtr spamu dla serwera news INN. Usuwa spam z
30 przychodzących "feedów".
31
32 %prep
33 %setup -q -n %{name}
34 %patch0 -p1
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
39
40 install -p etc/bad_* etc/cleanfeed.local $RPM_BUILD_ROOT%{_sysconfdir}
41
42 install -p cleanfeed $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
43 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man8
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_adult_paths
51 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_body
52 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_cancel_paths
53 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_from
54 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_groups
55 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_hosts
56 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_paths
57 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_subject
58 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_url
59 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cleanfeed.local
60 %{_datadir}/news/filter/filter_innd.pl
61 %{_mandir}/man8/cleanfeed.8*
This page took 0.108886 seconds and 4 git commands to generate.