%global pkg_name Task-Weaken %global pkg_version 1.02 %global rpm_pkg_version 1.02 %global rpm_pkg_release 1.n0i.5 Summary: Ensure that a platform has weaken support Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl %description One recurring problem in modules that use Scalar::Util'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 Scalar::Util successfully. The normal solution is to manually write tests in each distribution to ensure that "weaken" is available. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes LICENSE README %changelog * Wed Nov 14 2007 Marius Feraru - 1.02-1.n0i.5 - version 1.02 - spec update (new reb00t build tools) * Mon Oct 22 2007 Marius Feraru - 1.01-1.n0i.4 - version 1.01 * Mon Aug 20 2007 Marius Feraru - 1.00-1.n0i.3 - version 1.00 * Tue May 22 2007 Marius Feraru - 0.99-2.n0i.2 - rebuild * Sun Jun 04 2006 Marius Feraru - 0.99-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.1 - rebuild on perl 5.8.8