3 %bcond_without tests # do not perform "make test"
7 Summary: POE::Quickie - A lazy way to wrap blocking code and programs
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a510c905e4bc84fb945ab0a2d85dfd16
17 URL: http://search.cpan.org/dist/POE-Quickie/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Capture::Tiny) >= 0.07
22 BuildRequires: perl-POE >= 1.291
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 If you need nonblocking access to an external program, or want to
29 execute some blocking code in a separate process, but you don't want
30 to write a wrapper module or some POE::Wheel::Run boilerplate code,
31 then POE::Quickie can help. You just specify what you're interested in
32 (stdout, stderr, and/or exit code), and POE::Quickie will handle the
33 rest in a sensible way.
35 It has some convenience features, such as killing processes after a
36 timeout, and storing process-specific context information which will
37 be delivered with every event.
39 There is also an even lazier API which suspends the execution of your
40 event handler and gives control back to POE while your task is
41 running, the same way LWP::UserAgent::POE does. This is provided by
42 the quickie_* functions which are exported by default.
44 # %description -l pl.UTF-8 # TODO
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
59 %{__make} pure_install \
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %{perl_vendorlib}/POE/*.pm