]>
Commit | Line | Data |
---|---|---|
a879f36a | 1 | # |
2 | # Conditional build: | |
5fb1da82 | 3 | %bcond_without tests # do not perform "make test" |
a879f36a | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
72e75dd5 | 6 | %define pdir POE |
7 | %define pnam Component-SMTP | |
6d0d7cdc | 8 | Summary: POE::Filter::SMTP - SMTP protocol filter |
d1908f46 | 9 | Summary(pl.UTF-8): POE::Filter::SMTP - filtr dla protokołu SMTP |
a879f36a | 10 | Name: perl-POE-Component-SMTP |
29f60c8f | 11 | Version: 1.6 |
a879f36a | 12 | Release: 1 |
13 | # same as perl | |
b7923d79 | 14 | License: GPL v1+ or Artistic |
a879f36a | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
29f60c8f | 17 | # Source0-md5: 26c8d3705ef2bb9ac3d6d980ee5da73d |
762892f1 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
a879f36a | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
5fb1da82 | 20 | %if %{?with_tests} |
a879f36a | 21 | BuildRequires: perl-POE |
22 | BuildRequires: perl-POE-Session-MultiDispatch | |
23 | BuildRequires: perl-Test-Simple | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
b7923d79 JB |
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. | |
32 | ||
77e60e38 JR |
33 | %description -l pl.UTF-8 |
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 | |
b7923d79 | 36 | POE::Filter::Line. |
a879f36a | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
5fb1da82 | 46 | %{?with_tests:%{__make} test} |
a879f36a | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes | |
60 | %{perl_vendorlib}/%{pdir}/*/*.pm | |
61 | %{perl_vendorlib}/%{pdir}/*/*/*.pm | |
62 | %{_mandir}/man3/* |