%include /usr/lib/rpm/macros.perl
Summary: Collection of files for checking, reporting, and revoking spam.
Summary(pl): Zbiór plików do sprawdzania, raportowania i odrzucania spamu.
Name: Razor
Version: 2.12
Release: 1
License: Artistic
Group: Applications/Mail
Source0: http://unc.dl.sourceforge.net/sourceforge/razor/razor-agents-2.12.tar.gz
Patch0: razor-agents-makefile.patch
URL: http://razor.sourceforge.net/
BuildRequires: perl >= 5
BuildRequires: rpm-perlprov >= 3.0.3-16
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: perl-Razor = %{version}
%description
Vipul's Razor is a distributed, collaborative, spam detection, reporting,
and filtering network. The primary focus of the system is to identify
and remove all email spam from the internet. Visit the website at
.
%description -l pl
Vipul's Razor jest dystrybuowalną, tworzoną dzięki współpracy siecią,
służącą do wykrywania spamu, raportowania i filtrowania. Podstawowym
zadaniem systemu jest identyfikacja spamu z poczty internetowej.
Odwiedź stronę domową: .
%package -n perl-Razor
Summary: Perl modules for Razor
Summary(pl): Moduły Perla dla Razora
Group: Development/Languages/Perl
%description -n perl-Razor
Perl modules for Razor, class Razor2::.
%description -n perl-Razor -l pl
Moduły Perla dla Razora, klasa Razor2::.
%prep
%setup -q -n razor-agents-%{version}
%patch -p0
%build
perl Makefile.PL
%{__make}
#%{__make} test
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
for f in check register report revoke; do
ln -sf razor-client $RPM_BUILD_ROOT%{_bindir}/razor-$f
done
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Change* BUGS README INSTALL CREDITS
%{_bindir}/*
%{_mandir}/man[15]/*
%files -n perl-Razor
%{perl_sitelib}/Razor2
%{_mandir}/man3/*