]> git.pld-linux.org Git - packages/cleanfeed.git/blobdiff - cleanfeed.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cleanfeed.git] / cleanfeed.spec
index f1e880b3e91ebde8d9ba05d0108bbcdcc1f20490..9146a4ef83fd94956089a7e232288ae59c53a258 100644 (file)
@@ -1,48 +1,61 @@
 Summary:       INN spam filter
-Summary(pl):    Filtr spamu dla INN
+Summary(pl.UTF-8):     Filtr spamu dla INN-a
 Name:          cleanfeed
-Version:       0.95.7b
-Release:       2
-Copyright:     distributable
+Version:       20100602
+Release:       1
+License:       Artistic v2.0
 Group:         Networking/Daemons
-Group(pl):     Sieciowe/Serwery
-Source:                ftp://ftp.exit109.com/users/jeremy/%{name}-%{version}.tar.gz
-Patch:         cleanfeed-conf.patch
-Buildroot:     /tmp/%{name}-%{version}-root
+#originally:   http://www.bofh.it/~md/cleanfeed/%{name}-%{src_ver}.tgz
+# later maintained version:
+#Source0Download: http://www.mixmin.net/cleanfeed/install.html
+Source0:       http://www.mixmin.net/cleanfeed/%{name}.tar.gz
+# Source0-md5: 8e14b5e306a9f875b8fcd6488584675a
+Source1:       %{name}.8
+Patch0:                %{name}-conf.patch
+URL:           http://www.mixmin.net/cleanfeed/
+BuildRequires: rpm-perlprov
 Requires:      perl-Digest-MD5
-Buildarch:     noarch
+Conflicts:     inn < 2.3
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/news
 
 %description
-Cleanfeed is an automatic filter for INN that removes spam from incoming
-newsfeeds.
+Cleanfeed is an automatic filter for INN that removes spam from
+incoming newsfeeds.
 
-%description -l pl
-Automatyczny filtr spamu dla serwerów news.
+%description -l pl.UTF-8
+Automatyczny filtr spamu dla serwera news INN. Usuwa spam z
+przychodzących "feedów".
 
 %prep
-%setup -q
-%patch -p1 
+%setup -q -n %{name}
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
 
-install -d $RPM_BUILD_ROOT/{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
+install -p etc/bad_* etc/cleanfeed.local $RPM_BUILD_ROOT%{_sysconfdir}
 
-install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
-install cleanfeed $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/* \
-       README
+install -p cleanfeed $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man8
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.gz
-%attr(640,news,news) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}*
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_adult_paths
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_body
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_cancel_paths
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_from
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_groups
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_hosts
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_paths
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_subject
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bad_url
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cleanfeed.local
 %{_datadir}/news/filter/filter_innd.pl
-%{_mandir}/man8/*
+%{_mandir}/man8/cleanfeed.8*
This page took 0.128395 seconds and 4 git commands to generate.