--- cauldron/perl-Coro/current/SPECS/perl-Coro.spec 2011/01/24 08:01:18 36165 +++ cauldron/perl-Coro/current/SPECS/perl-Coro.spec 2011/01/24 12:01:22 36947 @@ -1,5 +1,7 @@ %define upstream_name Coro %define upstream_version 5.25 + +%define _requires_exceptions perl(Exporter::)\\|perl(Coro::Socket::) #define _without_check 1 Name: perl-%{upstream_name} @@ -21,8 +23,7 @@ #gw the test EV/t/01_unblock fails in 4.37: # http://rt.cpan.org/Ticket/Display.html?id=32475 -#BuildRequires: perl-EV >= 2.0 -%define _requires_exceptions perl(Exporter::)\\|perl(Coro::Socket::) +BuildRequires: perl-EV >= 2.0 %description This module collection manages coroutines. Coroutines are similar to @@ -49,6 +50,15 @@ will normally block all coroutines. after loading this module, this will no longer be the case. +%package EV +Summary: Use Coro within an EV environment +Group: Development/Perl + +%description EV +This module integrates coroutines into any event loop supported by EV, +combining event-based programming with coroutine-based programming in a +natural way. + %prep %setup -q -n %{upstream_name}-%{upstream_version} @@ -120,7 +130,12 @@ %{perl_vendorarch}/Coro/BDB.pm %{_mandir}/man3/Coro::BDB* -#files AnyEvent -#defattr(-,root,root) -#{perl_vendorarch}/Coro/AnyEvent.pm -#{_mandir}/man3/Coro::AnyEvent* \ No newline at end of file +%files AnyEvent +%defattr(-,root,root) +%{perl_vendorarch}/Coro/AnyEvent.pm +%{_mandir}/man3/Coro::AnyEvent* + +%files EV +%defattr(-,root,root) +%{perl_vendorarch}/Coro/EV.pm +%{_mandir}/man3/Coro::EV*