]> git.pld-linux.org Git - packages/cleanfeed.git/blobdiff - cleanfeed.spec
- rel.15
[packages/cleanfeed.git] / cleanfeed.spec
index 7febd35b808e4ca45bd2de2654883e49d32f4282..01d7281efd3eb6ed9760c3e56a4853f5fb6add6d 100644 (file)
@@ -1,48 +1,54 @@
+%include       /usr/lib/rpm/macros.perl
 Summary:       INN spam filter
-Summary(pl):    Filtr spamu dla INN
+Summary(pl.UTF-8):     Filtr spamu dla INN
 Name:          cleanfeed
 Version:       0.95.7b
-Release:       2
-Copyright:     distributable
+Release:       15
+License:       distributable
 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
-Requires:      perl-MD5
-Buildarch:     noarch
+Source0:       http://www.exit109.com/~jeremy/news/cleanfeed/%{name}-%{version}.tar.gz
+# Source0-md5: a715445b9fb13382a3d97bbbb64d638f
+Patch0:                %{name}-conf.patch
+URL:           http://www.exit109.com/~jeremy/news/cleanfeed/
+BuildRequires: rpm-perlprov
+Requires:      perl-Digest-MD5
+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 serwerów news.
 
 %prep
 %setup -q
-%patch -p1 
+%patch0 -p1
+
+%build
+# INN 2.3.x hack
+sed -e "s|\$lines = \$hdr{'__BODY__'} =~ tr/\\\n/\\\n/;|\$lines = \$hdr{'__LINES__'};|g" \
+       cleanfeed > cleanfeed.new
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/{%{_sysconfdir},%{_mandir}/man8,%{_libdir}/news/bin/control}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man8,%{_datadir}/news/filter}
 
 install cleanfeed.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install cleanfeed.8 $RPM_BUILD_ROOT%{_mandir}/man8/
-install cleanfeed $RPM_BUILD_ROOT%{_libdir}/news/bin/control/filter_innd.pl
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/* \
-       README
+install cleanfeed.new $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.pl
 
 %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(750,news,news) %{_libdir}/news/bin/control/filter_innd.pl
+%doc README
+%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%{_datadir}/news/filter/filter_innd.pl
 %{_mandir}/man8/*
This page took 0.136477 seconds and 4 git commands to generate.