1 |
%define upstream_name Algorithm-Permute |
2 |
%define upstream_version 0.12 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 3 |
7 |
|
8 |
Summary: Handy and fast permutation with OO interface |
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/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl-devel |
15 |
|
16 |
|
17 |
%description |
18 |
This handy module makes performing permutation in Perl easy and fast, |
19 |
although perhaps its algorithm is not the fastest on the earth. It supports |
20 |
permutation r of n objects where 0 < r <= n. |
21 |
|
22 |
%prep |
23 |
%setup -q -n %{upstream_name}-%{upstream_version} |
24 |
|
25 |
%build |
26 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
27 |
%make |
28 |
|
29 |
%check |
30 |
make test |
31 |
|
32 |
%install |
33 |
rm -rf %buildroot |
34 |
%makeinstall_std |
35 |
|
36 |
%clean |
37 |
rm -rf %buildroot |
38 |
|
39 |
%files |
40 |
%defattr(-,root,root) |
41 |
%doc Changes README META.yml |
42 |
%{_mandir}/man3/* |
43 |
%perl_vendorlib/* |