3 %bcond_without tests # do not perform "make test"
6 %define pnam Session-MessageBased
7 Summary: POE::Session::MessageBased - a message-based (not @_ based) POE::Session
8 Summary(pl.UTF-8): POE::Session::MessageBased - oparte na komunikatach (nie @_) POE::Session
9 Name: perl-POE-Session-MessageBased
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 2f5ea8c09558656f5dac12112f0d8afc
17 URL: http://search.cpan.org/dist/POE-Session-MessageBased/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-POE >= 1.007
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 POE::Session::MessageBased exists mainly to replace @_[KERNEL, etc.]
28 with message objects that encapsulate various aspects of each event.
29 It also exists as an example of a subclassed POE::Session, in case
30 someone wants to create new callback or Session semantics.
32 %description -l pl.UTF-8
33 POE::Session::MessageBased istnieje głównie po to, by zastąpić
34 @_[KERNEL itp.] obiektami komunikatów, które są opakowaniem różnych
35 aspektów każdego zdarzenia. Istnieje także jako przykład podklasy
36 POE::Session, na wypadek gdyby ktoś chciał stworzyć nową semantykę
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*/*.pm