Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > by-pkgid > 4e3c66c6417f3f23e05273c228b11f05 > files > 2

perl-Task-Weaken-1.02-1mdv2009.1.src.rpm


%define realname   Task-Weaken
%define version    1.02
%define release    %mkrel 1

Name:       perl-%{realname}
Version:    %{version}
Release:    %{release}
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Ensure that a platform has weaken support
Source:     http://www.cpan.org/modules/by-module/Task/%{realname}-%{version}.tar.gz
Url:        http://search.cpan.org/dist/%{realname}
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: perl-devel
BuildRequires: perl(File::Spec)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)

BuildArch: noarch

%description
One recurring problem in modules that use the Scalar::Util manpage's
'weaken' function is that it is not present in the pure-perl variant.

While this isn't necesarily always a problem in a straight CPAN-based Perl
environment, some operating system distributions only include the pure-Perl
versions, don't include the XS version, and so weaken is then "missing"
from the platform, *despite* passing a dependency on the Scalar::Util
manpage successfully.

Most notably this is RedHat Linux at time of writing, but other come and go
and do the same thing, hence "recurring problem".

%prep
%setup -q -n %{realname}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
rm -rf %buildroot
%makeinstall_std

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc README LICENSE Changes
%{_mandir}/man3/*
%perl_vendorlib/*




%changelog
* Wed Dec 03 2008 Jérôme Quelin <jquelin@mandriva.org> 1.02-1mdv2009.1
+ Revision: 309770
- import perl-Task-Weaken


* Wed Dec 03 2008 cpan2dist 1.02-1mdv
- initial mdv release, generated with cpan2dist