Request for review: perl-Want

Oliver Falk oliver at linux-kernel.at
Fri Jul 1 09:26:36 UTC 2005


Hi Ralf!

On 07/01/2005 11:00 AM, Ralf Corsepius wrote:
> Hi,
> 
> Another perl module: perl-Want.
> 
> %description
> This module generalises the mechanism of the wantarray
> function, allowing a function to determine in some detail
> how its return value is going to be immediately used.
> 
> Files:
> ftp://packman.iu-bremen.de/fedora/SRPMS/perl-Want.spec
> ftp://packman.iu-bremen.de/fedora/SRPMS/perl-Want-0.08-1.src.rpm
> 
> Review (and approval) appreciated, TIA

Is the license Artistic or is it GPL?

The perl specfile template suggests the following for %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 -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*

Also it suggests the following for make:
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"

The OPTIMIZE is missing in your spec.



So I would suggest the following patch:
23c23
< make %{?_smp_mflags}
---
 > make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
27,33c27,29
< make install \
<     PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
<     INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
<
< find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
<   -o -name perllocal.pod \
<   -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
---
 > 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 {} ';'
34a31
 > chmod -R u+w $RPM_BUILD_ROOT/*

Best,
  Oliver




More information about the fedora-extras-list mailing list