]> git.pld-linux.org Git - packages/Razor.git/blob - Razor.spec
perl 5.38.0 rebuild
[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:        16
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 Patch0:         man-build.patch
18 %if %{with autodeps}
19 BuildRequires:  perl-Class-Fields
20 BuildRequires:  perl-Digest-Nilsimsa
21 BuildRequires:  perl-Digest-SHA1
22 BuildRequires:  perl-Net-DNS
23 BuildRequires:  perl-URI
24 %endif
25 BuildRequires:  perl-Time-HiRes
26 BuildRequires:  perl-devel >= 1:5.8.0
27 BuildRequires:  rpm-perlprov >= 4.1-13
28 Requires:       perl-Razor = %{version}-%{release}
29 Obsoletes:      perl-Vipuls-Razor-V1
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Vipul's Razor is a distributed, collaborative, spam detection,
34 reporting, and filtering network. The primary focus of the system is
35 to identify and remove all email spam from the internet.
36
37 %description -l pl.UTF-8
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
42 %package -n perl-Razor
43 Summary:        Perl modules for Razor
44 Summary(pl.UTF-8):      Moduły Perla dla Razora
45 Group:          Development/Languages/Perl
46
47 %description -n perl-Razor
48 Perl modules for Razor, class Razor2::.
49
50 %description -n perl-Razor -l pl.UTF-8
51 Moduły Perla dla Razora, klasa Razor2::.
52
53 %prep
54 %setup -q -n razor-agents-%{version}
55 %patch0 -p1
56
57 %build
58 %{__perl} Makefile.PL \
59         INSTALLDIRS=vendor
60 %{__make} \
61         OPTIMIZE="%{rpmcflags}"
62
63 %{?with_tests:%{__make} test}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_sysconfdir}/razor
68
69 %{__make} pure_install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/razor-agents/.packlist
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc Change* BUGS README INSTALL CREDITS
80 %attr(755,root,root) %{_bindir}/*
81 %{_mandir}/man1/*
82 %{_mandir}/man5/*
83
84 %files -n perl-Razor
85 %defattr(644,root,root,755)
86 %dir %{_sysconfdir}/razor
87 %{perl_vendorarch}/Razor2
88 %dir %{perl_vendorarch}/auto/Razor2
89 %dir %{perl_vendorarch}/auto/Razor2/Preproc
90 %dir %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs
91 %attr(755,root,root) %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so
92 %{perl_vendorarch}/auto/Razor2/Preproc/deHTMLxs/autosplit.ix
93 %{perl_vendorarch}/auto/Razor2/Syslog
94 %{_mandir}/man3/*
This page took 0.091589 seconds and 3 git commands to generate.