1 |
%define upstream_name Scalar-List-Utils |
2 |
%define upstream_version 1.41 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: List utilities (eg min, max, reduce) |
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/List/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(ExtUtils::MakeMaker) |
15 |
BuildRequires: perl(Test::More) |
16 |
BuildRequires: perl-devel |
17 |
%description |
18 |
'List::Util' contains a selection of subroutines that people have expressed |
19 |
would be nice to have in the perl core, but the usage would not really be |
20 |
high enough to warrant the use of a keyword, and the size so small such |
21 |
that being individual extensions would be wasteful. |
22 |
|
23 |
By default 'List::Util' does not export any subroutines. The subroutines |
24 |
defined are |
25 |
|
26 |
* first BLOCK LIST |
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 |
%makeinstall_std |
41 |
|
42 |
%files |
43 |
%doc Changes META.json META.yml MYMETA.yml README |
44 |
%{_mandir}/man3/* |
45 |
%perl_vendorlib/* |