3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Component-SMTP
8 Summary: POE::Filter::SMTP - SMTP protocol filter
9 Summary(pl): POE::Filter::SMTP - filtr dla protoko³u SMTP
10 Name: perl-POE-Component-SMTP
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 75999b462eb9a3726c521f2547b96b53
18 BuildRequires: perl-devel >= 5.6
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-POE
22 BuildRequires: perl-POE-Session-MultiDispatch
23 BuildRequires: perl-Test-Simple
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 POE::Filter::SMTP filters input and output and splits command and
30 arguments, as well as return codes and return strings. It is a
31 subclass of POE::Filter::Line.
34 POE::Filter::SMTP filtruje wej¶cie i wyj¶cie oraz oddziela polecenia
35 i argumenty, a tak¿e zwracane kody i ³añcuchy. Jest to podklasa
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/%{pdir}/*/*.pm
61 %{perl_vendorlib}/%{pdir}/*/*/*.pm