1 |
%define upstream_name Canary-Stability |
2 |
%define upstream_version 2012 |
3 |
|
4 |
%{?perl_default_filter} |
5 |
|
6 |
Name: perl-%{upstream_name} |
7 |
Version: %perl_convert_version %{upstream_version} |
8 |
Release: %mkrel 1 |
9 |
|
10 |
Summary: Canary to check perl compatibility for schmorp's modules |
11 |
License: GPL+ or Artistic |
12 |
Group: Development/Perl |
13 |
Url: http://search.cpan.org/dist/%{upstream_name} |
14 |
Source0: http://www.cpan.org/modules/by-module/Canary/%{upstream_name}-%{upstream_version}.tar.gz |
15 |
|
16 |
BuildRequires: perl(ExtUtils::MakeMaker) |
17 |
BuildArch: noarch |
18 |
|
19 |
%description |
20 |
This module is used by Schmorp's modules during configuration stage to |
21 |
test the installed perl for compatibility with his modules. |
22 |
|
23 |
It's not, at this stage, meant as a tool for other module authors, |
24 |
although in principle nothing prevents them from subscribing to the same |
25 |
ideas. |
26 |
|
27 |
See the Makefile.PL in Coro or AnyEvent for usage examples. |
28 |
|
29 |
%prep |
30 |
%autosetup -n %{upstream_name}-%{upstream_version} |
31 |
|
32 |
%build |
33 |
%__perl Makefile.PL INSTALLDIRS=vendor |
34 |
|
35 |
%make |
36 |
|
37 |
%check |
38 |
%make test |
39 |
|
40 |
%install |
41 |
%make_install |
42 |
|
43 |
%files |
44 |
%doc COPYING Changes META.json META.yml MYMETA.yml README |
45 |
%{_mandir}/man3/* |
46 |
%{perl_vendorlib}/* |