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