1 |
%define upstream_name CPS |
2 |
%define upstream_version 0.11 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Iterate at some later point |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Test::More) |
15 |
BuildRequires: perl(Module::Build::Compat) |
16 |
BuildArch: noarch |
17 |
|
18 |
|
19 |
%description |
20 |
Objects based on this abstract class are used by the 'gk*' variants of the |
21 |
the CPS manpage functions, to control their behavior. These objects are |
22 |
expected to provide a method, 'again', which the functions will use to |
23 |
re-invoke iterations of loops, and so on. By providing a different |
24 |
implementation of this method, governor objects can provide such behaviours |
25 |
as rate-limiting, asynchronisation or parallelism, and integration with |
26 |
event-based IO frameworks. |
27 |
|
28 |
%prep |
29 |
%setup -q -n %{upstream_name}-%{upstream_version} |
30 |
|
31 |
%build |
32 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
33 |
|
34 |
%make |
35 |
|
36 |
%check |
37 |
%make test |
38 |
|
39 |
%install |
40 |
rm -rf %buildroot |
41 |
%makeinstall_std |
42 |
|
43 |
%clean |
44 |
rm -rf %buildroot |
45 |
|
46 |
%files |
47 |
%defattr(-,root,root) |
48 |
%doc Changes META.yml README LICENSE |
49 |
%{_mandir}/man3/* |
50 |
%perl_vendorlib/* |
51 |
|
52 |
|
53 |
|
54 |
|