%define short_name Algorithm-FastPermute Name: perl-%{short_name} Version: 0.999 Release: 2%{?dist} Summary: Rapid generation of permutations Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{short_name}/ Source0: http://www.cpan.org/authors/id/R/RO/ROBIN/%{short_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Algorithm::FastPermute generates all the permutations of an array. You pass a block of code, which will be executed for each permutation. The array will be changed in place, and then changed back again before "permute" returns. During the execution of the callback, the array is read-only and you'll get an error if you try to change its length. %prep %setup -q -n %{short_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README perms.pl %dir %{perl_vendorarch}/Algorithm %{perl_vendorarch}/Algorithm/FastPermute.pm %{perl_vendorarch}/auto/* %{_mandir}/man3/*.3* %exclude %{perl_vendorarch}/Algorithm/perms.pl %changelog * Fri Apr 04 2008 Milos Jakubicek - 0.999-2 - License changed to "GPL+ or Artistic". * Sat Mar 08 2008 Milos Jakubicek - 0.999-1 - Initial release based on SRPM from Marius Feraru (reb00t.com). - Modified according to the default perl spec file template.