3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # don't perform "make test"
6 %include /usr/lib/rpm/macros.perl
7 Summary: Collection of files for checking, reporting, and revoking spam
8 Summary(pl): Zbiór plików do sprawdzania, raportowania i odrzucania spamu
13 Group: Applications/Mail
14 Source0: http://dl.sourceforge.net/razor/razor-agents-%{version}.tar.bz2
15 # Source0-md5: a79a798e52426261c6a2c4089b33872f
16 URL: http://razor.sourceforge.net/
18 BuildRequires: perl-Net-DNS
19 BuildRequires: perl-Class-Fields
20 BuildRequires: perl-Digest-Nilsimsa
21 BuildRequires: perl-Digest-SHA1
22 BuildRequires: perl-URI
24 BuildRequires: perl-Time-HiRes
25 BuildRequires: perl-devel >= 1:5.8.0
26 BuildRequires: rpm-perlprov >= 4.1-13
27 Requires: perl-Razor = %{version}-%{release}
28 Obsoletes: perl-Vipuls-Razor-V1
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Vipul's Razor is a distributed, collaborative, spam detection, reporting,
33 and filtering network. The primary focus of the system is to identify
34 and remove all email spam from the internet. Visit the website at
35 <http://razor.sourceforge.net/>.
38 Vipul's Razor jest dystrybuowaln±, tworzon± dziêki wspó³pracy sieci±,
39 s³u¿±c± do wykrywania spamu, raportowania i filtrowania. Podstawowym
40 zadaniem systemu jest identyfikacja spamu z poczty internetowej.
41 Odwied¼ stronê domow±: <http://razor.sourceforge.net/>.
43 %package -n perl-Razor
44 Summary: Perl modules for Razor
45 Summary(pl): Modu³y Perla dla Razora
46 Group: Development/Languages/Perl
48 %description -n perl-Razor
49 Perl modules for Razor, class Razor2::.
51 %description -n perl-Razor -l pl
52 Modu³y Perla dla Razora, klasa Razor2::.
55 %setup -q -n razor-agents-%{version}
58 %{__perl} Makefile.PL \
61 OPTIMIZE="%{rpmcflags}"
63 %{?with_tests:%{__make} test}
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT \
70 PERL5LIB=$RPM_BUILD_ROOT%{perl_vendorarch} \
71 INSTALLMAN5DIR=%{_mandir}/man5
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc Change* BUGS README INSTALL CREDITS
79 %attr(755,root,root) %{_bindir}/*
83 %defattr(644,root,root,755)
84 %{perl_vendorarch}/Razor2
85 %dir %{perl_vendorarch}/auto/Razor2
86 %dir %{perl_vendorarch}/auto/Razor2/Preproc
87 %dir %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs
88 %attr(755,root,root) %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so
89 %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.bs
90 %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/autosplit.ix
91 %{perl_vendorarch}/auto/Razor2/Syslog