Author: baggins Date: Tue Mar 29 10:07:55 2011 GMT Module: packages Tag: HEAD ---- Log message: - initial revision by pldcpan
---- Files affected: packages/perl-POE-Quickie: perl-POE-Quickie.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/perl-POE-Quickie/perl-POE-Quickie.spec diff -u /dev/null packages/perl-POE-Quickie/perl-POE-Quickie.spec:1.1 --- /dev/null Tue Mar 29 12:07:55 2011 +++ packages/perl-POE-Quickie/perl-POE-Quickie.spec Tue Mar 29 12:07:49 2011 @@ -0,0 +1,81 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir POE +%define pnam Quickie +%include /usr/lib/rpm/macros.perl +Summary: POE::Quickie - A lazy way to wrap blocking code and programs +#Summary(pl.UTF-8): +Name: perl-POE-Quickie +Version: 0.12 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: eb345fd4d58f786bacd7477bf7738f66 +URL: http://search.cpan.org/dist/POE-Quickie/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(Capture::Tiny) >= 0.07 +BuildRequires: perl-POE >= 1.291 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +If you need nonblocking access to an external program, or want to +execute some blocking code in a separate process, but you don't want +to write a wrapper module or some POE::Wheel::Run boilerplate code, +then POE::Quickie can help. You just specify what you're interested in +(stdout, stderr, and/or exit code), and POE::Quickie will handle the +rest in a sensible way. + +It has some convenience features, such as killing processes after a +timeout, and storing process-specific context information which will +be delivered with every event. + +There is also an even lazier API which suspends the execution of your +event handler and gives control back to POE while your task is +running, the same way LWP::UserAgent::POE does. This is provided by +the quickie_* functions which are exported by default. + +# %description -l pl.UTF-8 # TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/POE/*.pm +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/03/29 10:07:49 baggins +- initial revision by pldcpan + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
