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} |
15 |
Url: http://search.cpan.org/dist/%{upstream_name} |
Url: http://search.cpan.org/dist/%{upstream_name} |
16 |
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz |
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz |
17 |
|
|
|
BuildRequires: perl-devel |
|
|
BuildRequires: perl-IO-AIO |
|
18 |
BuildRequires: perl-AnyEvent >= 1:4.05 |
BuildRequires: perl-AnyEvent >= 1:4.05 |
|
BuildRequires: perl-Guard |
|
19 |
BuildRequires: perl-common-sense |
BuildRequires: perl-common-sense |
20 |
|
BuildRequires: perl-devel |
21 |
#gw the test EV/t/01_unblock fails in 4.37: |
BuildRequires: perl-EV >= 2.0 |
22 |
# http://rt.cpan.org/Ticket/Display.html?id=32475 |
BuildRequires: perl-Guard |
23 |
#BuildRequires: perl-EV >= 2.0 |
BuildRequires: perl-IO-AIO |
|
%define _requires_exceptions perl(Exporter::)\\|perl(Coro::Socket::) |
|
24 |
|
|
25 |
%description |
%description |
26 |
This module collection manages coroutines. Coroutines are similar to |
This module collection manages coroutines. Coroutines are similar to |
47 |
will normally block all coroutines. after loading this module, this |
will normally block all coroutines. after loading this module, this |
48 |
will no longer be the case. |
will no longer be the case. |
49 |
|
|
50 |
|
%package EV |
51 |
|
Summary: Use Coro within an EV environment |
52 |
|
Group: Development/Perl |
53 |
|
|
54 |
|
%description EV |
55 |
|
This module integrates coroutines into any event loop supported by EV, |
56 |
|
combining event-based programming with coroutine-based programming in a |
57 |
|
natural way. |
58 |
|
|
59 |
|
|
60 |
%prep |
%prep |
61 |
%setup -q -n %{upstream_name}-%{upstream_version} |
%setup -q -n %{upstream_name}-%{upstream_version} |
62 |
|
# remove failing test - http://rt.cpan.org/Ticket/Display.html?id=32475 |
63 |
|
rm EV/t/01_unblock.t |
64 |
|
|
65 |
%build |
%build |
66 |
echo -e "n\nu\n" | %{__perl} Makefile.PL INSTALLDIRS=vendor |
echo -e "n\nu\n" | %{__perl} Makefile.PL INSTALLDIRS=vendor |
132 |
%files AnyEvent |
%files AnyEvent |
133 |
%defattr(-,root,root) |
%defattr(-,root,root) |
134 |
%{perl_vendorarch}/Coro/AnyEvent.pm |
%{perl_vendorarch}/Coro/AnyEvent.pm |
|
%{_mandir}/man3/Coro::AnyEvent* |
|
135 |
|
%{_mandir}/man3/Coro::AnyEvent* |
136 |
|
|
137 |
|
%files EV |
138 |
|
%defattr(-,root,root) |
139 |
|
%{perl_vendorarch}/Coro/EV.pm |
140 |
|
%{_mandir}/man3/Coro::EV* |