]> git.pld-linux.org Git - packages/perl-POE-Session-MultiDispatch.git/blob - perl-POE-Session-MultiDispatch.spec
f242ff67830930f25172373ea19d87bb8bef78c0
[packages/perl-POE-Session-MultiDispatch.git] / perl-POE-Session-MultiDispatch.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    POE
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
11 Version:        1.3
12 Release:        2
13 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-POE
22 BuildRequires:  perl-Test-Simple
23 %endif
24 Requires:       perl-POE
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
34
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.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes
64 %{perl_vendorlib}/%{pdir}/*/*.pm
65 %{_mandir}/man3/*
This page took 0.051796 seconds and 2 git commands to generate.