Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 23d59d00cfa9d343477db27e6f14265a > files > 1

perl-Razor-Agent-2.14-1mdk.src.rpm

%define pkgname razor-agents

Name:               perl-Razor-Agent
Version:            2.14
Release:            1mdk
Summary:            Use a Razor catalogue server to filter spam messages
Source:             http://prdownloads.sourceforge.net/razor/%{pkgname}-%{version}.tar.bz2
Requires:           perl
Requires:           perl-Net-DNS
Requires:			perl-Digest-SHA1
Requires:           perl-MailTools
Requires:           perl-Time-HiRes
Requires:           perl-Digest-Nilsimsa
Requires:			perl-URI
Requires:			perl-MIME-Base64
License:            Artistic
Group:              Networking/Mail
URL:                http://razor.sourceforge.net
BuildRoot:          %{_tmppath}/%{name}-%{version}-builroot
BuildRequires:      perl
BuildRequires:	    perl-Net-DNS
BuildRequires:		perl-Digest-SHA1
BuildRequires:      perl-MailTools
BuildRequires:      perl-Time-HiRes
BuildRequires:		perl-URI
BuildRequires:      perl-Digest-Nilsimsa
BuildRequires:      perl-MIME-Base64
BuildArchitectures: noarch

%description
Vipul's Razor is a distributed, collaborative, spam detection and
filtering network.  Razor establishes a distributed and constantly
updating catalogue of spam in propagation.  This catalogue is used by
clients to filter out known spam.  On receiving a spam, a Razor
Reporting Agent (run by an end-user or a troll box) calculates and
submits a 20-character unique identification of the spam (a SHA
Digest) to its closest Razor Catalogue Server.  The Catalogue Server
echos this signature to other trusted servers after storing it in its
database.  Prior to manual processing or transport-level reception,
Razor Filtering Agents (end-users and MTAs) check their incoming mail
against a Catalogue Server and filter out or deny transport in case of
a signature match.  Catalogued spam, once identified and reported by a
Reporting Agent, can be blocked out by the rest of the Filtering
Agents on the network.

%prep
%setup -q -n %{pkgname}-%{version}

%build

%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="$RPM_OPT_FLAGS" 

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix}

ln -s -f %{_bindir}/razor-client $RPM_BUILD_ROOT%{_bindir}/razor-check
ln -s -f %{_bindir}/razor-client $RPM_BUILD_ROOT%{_bindir}/razor-report
ln -s -f %{_bindir}/razor-client $RPM_BUILD_ROOT%{_bindir}/razor-admin
ln -s -f %{_bindir}/razor-client $RPM_BUILD_ROOT%{_bindir}/razor-revoke

install -d $RPM_BUILD_ROOT%{_mandir}/man5
install -m 644 blib/man5/* $RPM_BUILD_ROOT%{_mandir}/man5

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr (-, root, root)
%doc INSTALL
%{_bindir}/*
%{perl_vendorlib}/Razor2
%{_datadir}/man/*/*

%changelog
* Fri Sep 13 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.14-1mdk
- Release 2.14

* Fri Jul 12 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.12-1mdk
- From Ben Reser <ben@reser.org> :
 - Release 2.12

* Thu Jul 11 2002 Pixel <pixel@mandrakesoft.com> 2.08-5mdk
- drop the explicit depency on perl 5.6.1

* Wed Jul 10 2002 Pixel <pixel@mandrakesoft.com> 2.08-4mdk
- handle man5 pages by hand
- rebuild for perl 5.8.0

* Thu Jun 27 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.08-3mdk
- Fix BuildRequires

* Tue Jun 18 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.08-2mdk
- Add missing depencency on perl-URI and perl-MIME-Base64

* Tue Jun 18 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.08-1mdk
- Release 2.0.8
- Remove patch0 (no longer needed)

* Tue Apr  9 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.20-1mdk
- First Mdk package

* Sun Jan 27 2002 Scott Pakin <pakin@uiuc.edu>
- Initial version