2 %bcond_without tests # do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: Sendmail::PMilter - Perl binding of Sendmail Milter protocol
8 Summary(pl): Sendmail::PMilter - moduł Perla do obsługi protokołu Milter
9 Name: perl-Sendmail-PMilter
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/A/AV/AVAR/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 18f8fd3b69ef98014a1a5d55fbefd3d9
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: sendmail-devel >= 8.13.6-3.1
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Sendmail::PMilter is a mail filtering API implementing the Sendmail
24 milter protocol in pure Perl. This allows Sendmail servers (and
25 perhaps other MTAs implementing milter) to filter and modify mail in
26 transit during the SMTP connection, all in Perl.
28 It should be noted that PMilter 0.90 and later is NOT compatible with
29 scripts written for PMilter 0.5 and earlier. The API has been reworked
30 significantly, and the enhanced APIs and rule logic provided by
31 PMilter 0.5 and earlier has been factored out for inclusion in a
32 separate package to be called Mail::Milter.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc Changes doc README
59 %{perl_vendorlib}/Sendmail/*.pm
60 %{perl_vendorlib}/Sendmail/PMilter
62 %{_examplesdir}/%{name}-%{version}