%define perl_vendorarch %(perl -MConfig -le 'print $Config{vendorarchexp}') Summary: Use the Razor catalog server to filter spam messages Name: razor-agents Version: 2.67 Release: 1.n0i.2 Epoch: 0 License: Artistic Group: Applications/Internet URL: http://razor.sf.net/ Source: http://dl.sf.net/razor/razor-agents-%{version}.tar.gz BuildRequires: perl(Digest::Nilsimsa) BuildRequires: perl(Digest::SHA1) BuildRequires: perl(File::Copy) BuildRequires: perl(Getopt::Long) BuildRequires: perl(MIME::Base64) BuildRequires: perl(Net::DNS) BuildRequires: perl(Net::Ping) BuildRequires: perl(Time::HiRes) BuildRequires: perl(URI::Escape) Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %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 %build export CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor \ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install_vendor INSTALLMAN5DIR="$RPM_BUILD_ROOT%{_mandir}/man5" [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress # install binaries symlinks for bin in razor-{check,report,admin,revoke}; do %{__ln_s} -f razor-client $RPM_BUILD_ROOT%{_bindir}/$bin done # remove unnecessary files find $RPM_BUILD_ROOT -name perllocal.pod -o -name .packlist | xargs -ri rm -f {} find $RPM_BUILD_ROOT -name "*.bs" -a -empty | xargs -ri rm -f {} # build files list find $RPM_BUILD_ROOT \( -type f -o -type l \) -print \ | sed "s@^$RPM_BUILD_ROOT@@g" > perl-MANIFEST find $RPM_BUILD_ROOT%{perl_vendorarch} -type d -print \ | sed "s@^$RPM_BUILD_ROOT@%%dir @g" \ | grep -v '^%dir %{perl_vendorarch}$' \ | grep -v '/auto$' >> perl-MANIFEST if [ -z perl-MANIFEST ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f perl-MANIFEST %defattr(-, root, root, 0755) %doc BUGS Changes CREDITS FAQ INSTALL README SERVICE_POLICY docs/ %changelog * Mon Dec 06 2004 Marius FERARU 0:2.67-1.n0i.1 - version 2.67 * Mon Jun 28 2004 Marius FERARU 0:2.40-1.n0i.1 - version 2.40 - spec cleanups (Fedora style) - perl fixes/tweaks - dropped extra package, choosing to unify all tools and modules in a single one * Sun Jan 26 2003 Dag Wieers - 1.20-0 - Initial package. (using DAR)