diff --git a/perl-Algorithm-FastPermute.spec b/perl-Algorithm-FastPermute.spec index 1291c8c..c34ec4a 100644 --- a/perl-Algorithm-FastPermute.spec +++ b/perl-Algorithm-FastPermute.spec @@ -1,19 +1,22 @@ -%define short_name Algorithm-FastPermute - -Name: perl-%{short_name} +Name: perl-Algorithm-FastPermute Version: 0.999 -Release: 20%{?dist} +Release: 21%{?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) +URL: http://search.cpan.org/dist/Algorithm-FastPermute/ +Source0: http://www.cpan.org/authors/id/R/RO/ROBIN/Algorithm-FastPermute-%{version}.tar.gz +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%{?perl_default_filter} + %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 @@ -23,20 +26,16 @@ you'll get an error if you try to change its length. %prep -%setup -q -n %{short_name}-%{version} +%setup -q -n Algorithm-FastPermute-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 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/* @@ -44,12 +43,7 @@ chmod -R u+w $RPM_BUILD_ROOT/* 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 @@ -58,6 +52,12 @@ rm -rf $RPM_BUILD_ROOT %exclude %{perl_vendorarch}/Algorithm/perms.pl %changelog +* Wed Jan 27 2016 Emmanuel Seyman - 0.999-21 +- Remove %%defattr macro +- Pass NO_PACKLIST to Makefile.PL +- Add needed BuildRequires +- Use perl_default_filter + * Thu Jun 18 2015 Fedora Release Engineering - 0.999-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild