]>
Commit | Line | Data |
---|---|---|
a64cdc78 JB |
1 | # |
2 | # Conditional build: | |
af9a8e1f | 3 | %bcond_without autodeps # don't BR packages needed only for resolving deps |
d6fb0f81 | 4 | %bcond_without tests # don't perform "make test" |
a64cdc78 | 5 | # |
5012d382 | 6 | Summary: Collection of files for checking, reporting, and revoking spam |
b2f757d0 | 7 | Summary(pl.UTF-8): Zbiór plików do sprawdzania, raportowania i odrzucania spamu |
583967e0 | 8 | Name: Razor |
e30b8f5d | 9 | Version: 2.85 |
eea05b29 | 10 | Release: 23 |
583967e0 | 11 | License: Artistic |
12 | Group: Applications/Mail | |
6ccd14e7 | 13 | Source0: http://dl.sourceforge.net/razor/razor-agents-%{version}.tar.bz2 |
e30b8f5d | 14 | # Source0-md5: 014d08db40187cb1316482191566b012 |
583967e0 | 15 | URL: http://razor.sourceforge.net/ |
c5a1e3d7 | 16 | Patch0: man-build.patch |
af9a8e1f | 17 | %if %{with autodeps} |
a64cdc78 JB |
18 | BuildRequires: perl-Class-Fields |
19 | BuildRequires: perl-Digest-Nilsimsa | |
20 | BuildRequires: perl-Digest-SHA1 | |
7932b3d9 | 21 | BuildRequires: perl-Net-DNS |
a64cdc78 JB |
22 | BuildRequires: perl-URI |
23 | %endif | |
58310063 JB |
24 | BuildRequires: perl-Time-HiRes |
25 | BuildRequires: perl-devel >= 1:5.8.0 | |
a64cdc78 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
d6fb0f81 | 27 | Requires: perl-Razor = %{version}-%{release} |
7fcf724f | 28 | Obsoletes: perl-Vipuls-Razor-V1 |
af9a8e1f | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
583967e0 | 30 | |
31 | %description | |
7932b3d9 ER |
32 | Vipul's Razor is a distributed, collaborative, spam detection, |
33 | reporting, and filtering network. The primary focus of the system is | |
e30b8f5d | 34 | to identify and remove all email spam from the internet. |
583967e0 | 35 | |
387db581 JR |
36 | %description -l pl.UTF-8 |
37 | Vipul's Razor jest dystrybuowalną, tworzoną dzięki współpracy siecią, | |
38 | służącą do wykrywania spamu, raportowania i filtrowania. Podstawowym | |
583967e0 | 39 | zadaniem systemu jest identyfikacja spamu z poczty internetowej. |
583967e0 | 40 | |
41 | %package -n perl-Razor | |
42 | Summary: Perl modules for Razor | |
b2f757d0 | 43 | Summary(pl.UTF-8): Moduły Perla dla Razora |
583967e0 | 44 | Group: Development/Languages/Perl |
45 | ||
46 | %description -n perl-Razor | |
47 | Perl modules for Razor, class Razor2::. | |
48 | ||
387db581 JR |
49 | %description -n perl-Razor -l pl.UTF-8 |
50 | Moduły Perla dla Razora, klasa Razor2::. | |
583967e0 | 51 | |
52 | %prep | |
53 | %setup -q -n razor-agents-%{version} | |
c5a1e3d7 | 54 | %patch0 -p1 |
583967e0 | 55 | |
56 | %build | |
e5ceb981 | 57 | %{__perl} Makefile.PL \ |
2b4b1afa | 58 | INSTALLDIRS=vendor |
29ea08c7 | 59 | %{__make} -j1 \ |
8b89c801 | 60 | OPTIMIZE="%{rpmcflags}" |
e5ceb981 | 61 | |
d6fb0f81 | 62 | %{?with_tests:%{__make} test} |
583967e0 | 63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
27a19305 AM |
66 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/razor |
67 | ||
7932b3d9 | 68 | %{__make} pure_install \ |
665d7dc2 | 69 | DESTDIR=$RPM_BUILD_ROOT |
583967e0 | 70 | |
7932b3d9 ER |
71 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/razor-agents/.packlist |
72 | ||
583967e0 | 73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc Change* BUGS README INSTALL CREDITS | |
3d581acb | 79 | %attr(755,root,root) %{_bindir}/* |
665d7dc2 ER |
80 | %{_mandir}/man1/* |
81 | %{_mandir}/man5/* | |
583967e0 | 82 | |
83 | %files -n perl-Razor | |
0286bd3f | 84 | %defattr(644,root,root,755) |
27a19305 | 85 | %dir %{_sysconfdir}/razor |
666ff705 | 86 | %{perl_vendorarch}/Razor2 |
d6fb0f81 JB |
87 | %dir %{perl_vendorarch}/auto/Razor2 |
88 | %dir %{perl_vendorarch}/auto/Razor2/Preproc | |
89 | %dir %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs | |
90 | %attr(755,root,root) %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so | |
d6fb0f81 JB |
91 | %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/autosplit.ix |
92 | %{perl_vendorarch}/auto/Razor2/Syslog | |
583967e0 | 93 | %{_mandir}/man3/* |