File razor-agents.spec of Package razor-agents

#
# spec file for package razor-agents
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           razor-agents
%if 0%{?suse_version} && 0%{?suse_version} < 1200
BuildRequires:  perl-macros
%endif
Summary:        SPAM catalogue inquiry and update tool
License:        Artistic-2.0
Group:          Productivity/Networking/Email/Utilities
Requires:       perl-razor-agents
Version:        2.85
Release:        0
Url:            http://razor.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        README.SUSE
Patch0:         razor-agents-perl522.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%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.

Can be used as one of the spamassassin rules.



Authors:
--------
    Vipul Ved Prakash <mail@vipul.net>

%package -n perl-razor-agents
Summary:        The required perl modules for razor-agents
License:        Artistic-1.0
Group:          Development/Languages/Perl
Requires:       perl-Digest-SHA1
Requires:       perl-URI

%description -n perl-razor-agents
razor-agents are little programs to retrieve or update information
from the razor <http://razor.sourceforge.net/> network to exchange
signatures of SPAM. This package contains the required perl modules.



Authors:
--------
    Vipul Ved Prakash <mail@vipul.net>

%prep
%setup
cp %{S:1} .
%patch0

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT INSTALLMAN5DIR=$RPM_BUILD_ROOT/%{_mandir}/man5 install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files -n perl-razor-agents
%defattr(-,root,root)
%doc BUGS CREDITS Changes FAQ LICENSE README README.SUSE
%doc %{_mandir}/man3/Razor*
%doc %{_mandir}/man5/razor*
%{perl_vendorarch}/Razor2
%{perl_vendorarch}/auto/Razor2
%{perl_vendorarch}/auto/razor-agents

%files
%defattr(-,root,root)
%{_mandir}/man1/razor*
/usr/bin/razor*

%changelog
openSUSE Build Service is sponsored by