]> git.pld-linux.org Git - packages/perl-Email-Filter.git/blob - perl-Email-Filter.spec
4113f31d5c097d657ddce88035cce4aa18c17ec6
[packages/perl-Email-Filter.git] / perl-Email-Filter.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Email
7 %define pnam    Filter
8 Summary:        Email::Filter - Library for creating easy email filters
9 #Summary(pl):   
10 Name:           perl-Email-Filter
11 Version:        1.0
12 Release:        1
13 License:        BSD, Artistic or GPL
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  857a522c2c43991f59c65de9c8c05d40
17 BuildRequires:  perl-devel >= 5.6
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{!?_without_tests:1}0
20 BuildRequires:  perl-Class-Trigger
21 BuildRequires:  perl-Email-LocalDelivery >= 0.04
22 BuildRequires:  perl-Email-Simple >= 1.1
23 BuildRequires:  perl-IPC-Run
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This is another module produced by the "Perl Email Project", a reaction
30 against the complexity and increasing bugginess of the "Mail::*"
31 modules. It replaces Mail::Audit, and allows you to write programs
32 describing how your mail should be filtered.
33
34 # %description -l pl
35 # TODO
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{!?_without_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc CHANGES
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{_mandir}/man3/*
This page took 0.201681 seconds and 2 git commands to generate.