3 # _without_autodeps - don't BR packages needed only for resolving deps
5 %include /usr/lib/rpm/macros.perl
6 Summary: Collection of files for checking, reporting, and revoking spam
7 Summary(pl): Zbiór plików do sprawdzania, raportowania i odrzucania spamu
12 Group: Applications/Mail
13 Source0: http://dl.sourceforge.net/sourceforge/razor/razor-agents-%{version}.tar.gz
14 Patch0: razor-agents-makefile.patch
15 URL: http://razor.sourceforge.net/
16 BuildRequires: perl-devel >= 5.8.0
17 %if 0%{!?_without_autodeps:1}
18 BuildRequires: perl-Class-Fields
19 BuildRequires: perl-Digest-Nilsimsa
20 BuildRequires: perl-Digest-SHA1
21 BuildRequires: perl-Time-HiRes
22 BuildRequires: perl-URI
24 BuildRequires: rpm-perlprov >= 4.1-13
25 Requires: perl-Razor = %{version}
26 Obsoletes: perl-Vipuls-Razor-V1
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Vipul's Razor is a distributed, collaborative, spam detection, reporting,
32 and filtering network. The primary focus of the system is to identify
33 and remove all email spam from the internet. Visit the website at
34 <http://razor.sourceforge.net/>.
37 Vipul's Razor jest dystrybuowaln±, tworzon± dziêki wspó³pracy sieci±,
38 s³u¿±c± do wykrywania spamu, raportowania i filtrowania. Podstawowym
39 zadaniem systemu jest identyfikacja spamu z poczty internetowej.
40 Odwied¼ stronê domow±: <http://razor.sourceforge.net/>.
42 %package -n perl-Razor
43 Summary: Perl modules for Razor
44 Summary(pl): Modu³y Perla dla Razora
45 Group: Development/Languages/Perl
47 %description -n perl-Razor
48 Perl modules for Razor, class Razor2::.
50 %description -n perl-Razor -l pl
51 Modu³y Perla dla Razora, klasa Razor2::.
54 %setup -q -n razor-agents-%{version}
58 %{__perl} Makefile.PL \
65 rm -rf $RPM_BUILD_ROOT
66 %{__make} install DESTDIR=$RPM_BUILD_ROOT
68 for f in check register report revoke; do
69 ln -sf razor-client $RPM_BUILD_ROOT%{_bindir}/razor-$f
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc Change* BUGS README INSTALL CREDITS
82 %defattr(644,root,root,755)
83 %{perl_vendorlib}/Razor2