]> git.pld-linux.org Git - packages/Razor.git/blob - Razor.spec
32c5f1c4edccd1070b3c27d588e60ccbfec461b9
[packages/Razor.git] / Razor.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 %bcond_without  tests           # don't perform "make test"
5 #
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        Collection of files for checking, reporting, and revoking spam
8 Summary(pl.UTF-8):      Zbiór plików do sprawdzania, raportowania i odrzucania spamu
9 Name:           Razor
10 Version:        2.85
11 Release:        6
12 License:        Artistic
13 Group:          Applications/Mail
14 Source0:        http://dl.sourceforge.net/razor/razor-agents-%{version}.tar.bz2
15 # Source0-md5:  014d08db40187cb1316482191566b012
16 URL:            http://razor.sourceforge.net/
17 %if %{with autodeps}
18 BuildRequires:  perl-Class-Fields
19 BuildRequires:  perl-Digest-Nilsimsa
20 BuildRequires:  perl-Digest-SHA1
21 BuildRequires:  perl-Net-DNS
22 BuildRequires:  perl-URI
23 %endif
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)
30
31 %description
32 Vipul's Razor is a distributed, collaborative, spam detection,
33 reporting, and filtering network. The primary focus of the system is
34 to identify and remove all email spam from the internet.
35
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
39 zadaniem systemu jest identyfikacja spamu z poczty internetowej.
40
41 %package -n perl-Razor
42 Summary:        Perl modules for Razor
43 Summary(pl.UTF-8):      Moduły Perla dla Razora
44 Group:          Development/Languages/Perl
45
46 %description -n perl-Razor
47 Perl modules for Razor, class Razor2::.
48
49 %description -n perl-Razor -l pl.UTF-8
50 Moduły Perla dla Razora, klasa Razor2::.
51
52 %prep
53 %setup -q -n razor-agents-%{version}
54
55 %build
56 %{__perl} Makefile.PL \
57         INSTALLDIRS=vendor
58 %{__make} \
59         OPTIMIZE="%{rpmcflags}"
60
61 %{?with_tests:%{__make} test}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_sysconfdir}/razor
66
67 %{__make} pure_install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/razor-agents/.packlist
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc Change* BUGS README INSTALL CREDITS
78 %attr(755,root,root) %{_bindir}/*
79 %{_mandir}/man1/*
80 %{_mandir}/man5/*
81
82 %files -n perl-Razor
83 %defattr(644,root,root,755)
84 %dir %{_sysconfdir}/razor
85 %{perl_vendorarch}/Razor2
86 %dir %{perl_vendorarch}/auto/Razor2
87 %dir %{perl_vendorarch}/auto/Razor2/Preproc
88 %dir %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs
89 %attr(755,root,root) %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so
90 %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.bs
91 %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/autosplit.ix
92 %{perl_vendorarch}/auto/Razor2/Syslog
93 %{_mandir}/man3/*
This page took 0.075875 seconds and 2 git commands to generate.