3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Email::Filter - Library for creating easy email filters
10 Name: perl-Email-Filter
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
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{!?_without_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm