3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Session-MultiDispatch
8 Summary: POE::Session::MultiDispatch - callback dispatch for session events
9 Summary(pl.UTF-8): POE::Session::MultiDispatch - wysyłanie callbacka dla zdarzeń sesji
10 Name: perl-POE-Session-MultiDispatch
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: 59b2e2614c3a048d4ad5d0bd87ecd044
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-POE
22 BuildRequires: perl-Test-Simple
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 POE::Session::MultiDispatch is a drop in replacement for POE::Session
30 that adds callback dispatch functionality to POE sessions. Each event
31 may have multiple handlers associated with it. Fine control over the
32 order of execution is available using helper methods that extend the
33 interface of a POE::Session.
35 %description -l pl.UTF-8
36 POE::Session::MultiDispatch to zamiennik POE::Session dodający
37 funkcjonalność wysyłania callbacków do sesji POE. Każde zdarzenie może
38 mieć wiele powiązanych ze sobą funkcji obsługi. Dostępna jest dobra
39 kontrola nad kolejnością wykonywania przy użyciu metod pomocniczych
40 rozszerzających interfejs POE::Session.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/%{pdir}/*/*.pm