1 |
%define upstream_name Coro |
%define upstream_name Coro |
2 |
%define upstream_version 5.25 |
%define upstream_version 5.25 |
3 |
|
|
4 |
|
%define _requires_exceptions perl(Exporter::)\\|perl(Coro::Socket::) |
5 |
#define _without_check 1 |
#define _without_check 1 |
6 |
|
|
7 |
Name: perl-%{upstream_name} |
Name: perl-%{upstream_name} |
20 |
BuildRequires: perl-AnyEvent >= 1:4.05 |
BuildRequires: perl-AnyEvent >= 1:4.05 |
21 |
BuildRequires: perl-Guard |
BuildRequires: perl-Guard |
22 |
BuildRequires: perl-common-sense |
BuildRequires: perl-common-sense |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
|
24 |
#gw the test EV/t/01_unblock fails in 4.37: |
#gw the test EV/t/01_unblock fails in 4.37: |
25 |
# http://rt.cpan.org/Ticket/Display.html?id=32475 |
# http://rt.cpan.org/Ticket/Display.html?id=32475 |
26 |
#BuildRequires: perl-EV >= 2.0 |
BuildRequires: perl-EV >= 2.0 |
|
%define _requires_exceptions perl(Exporter::)\\|perl(Coro::Socket::) |
|
27 |
|
|
28 |
%description |
%description |
29 |
This module collection manages coroutines. Coroutines are similar to |
This module collection manages coroutines. Coroutines are similar to |
50 |
will normally block all coroutines. after loading this module, this |
will normally block all coroutines. after loading this module, this |
51 |
will no longer be the case. |
will no longer be the case. |
52 |
|
|
53 |
|
%package EV |
54 |
|
Summary: Use Coro within an EV environment |
55 |
|
Group: Development/Perl |
56 |
|
|
57 |
|
%description EV |
58 |
|
This module integrates coroutines into any event loop supported by EV, |
59 |
|
combining event-based programming with coroutine-based programming in a |
60 |
|
natural way. |
61 |
|
|
62 |
|
|
63 |
%prep |
%prep |
64 |
%setup -q -n %{upstream_name}-%{upstream_version} |
%setup -q -n %{upstream_name}-%{upstream_version} |
80 |
|
|
81 |
%files |
%files |
82 |
%defattr(-,root,root) |
%defattr(-,root,root) |
83 |
%doc README.linux-glibc README Changes |
%doc README.linux-glibc README Changes META.yml |
84 |
%dir %{perl_vendorarch}/Coro |
%dir %{perl_vendorarch}/Coro |
85 |
%{perl_vendorarch}/Coro/AIO.pm |
%{perl_vendorarch}/Coro/AIO.pm |
86 |
%{perl_vendorarch}/Coro/Channel.pm |
%{perl_vendorarch}/Coro/Channel.pm |
135 |
%{perl_vendorarch}/Coro/AnyEvent.pm |
%{perl_vendorarch}/Coro/AnyEvent.pm |
136 |
%{_mandir}/man3/Coro::AnyEvent* |
%{_mandir}/man3/Coro::AnyEvent* |
137 |
|
|
138 |
|
%files EV |
139 |
|
%defattr(-,root,root) |
140 |
|
%{perl_vendorarch}/Coro/EV.pm |
141 |
|
%{_mandir}/man3/Coro::EV* |