diff --git a/Path-Class-0.25-old-M::B.patch b/Path-Class-0.25-old-M::B.patch new file mode 100644 index 0000000..2ec51e9 --- /dev/null +++ b/Path-Class-0.25-old-M::B.patch @@ -0,0 +1,20 @@ +Module::Build ≥ 0.3601 isn't actually needed by this package. +It builds just fine with version 0.2807 in EPEL-4. + +--- Path-Class/Build.PL ++++ Path-Class/Build.PL +@@ -2,12 +2,12 @@ + use strict; + use warnings; + +-use Module::Build 0.3601; ++use Module::Build 0.2807; + + + my %module_build_args = ( + "build_requires" => { +- "Module::Build" => "0.3601", ++ "Module::Build" => "0.2807", + "Test" => 0, + "Test::More" => 0, + "warnings" => 0 diff --git a/perl-Path-Class.spec b/perl-Path-Class.spec index a8a4b0e..dfe6690 100644 --- a/perl-Path-Class.spec +++ b/perl-Path-Class.spec @@ -1,11 +1,12 @@ Name: perl-Path-Class -Version: 0.23 -Release: 4%{?dist} +Version: 0.25 +Release: 1%{?dist} Summary: Cross-platform path specification manipulation License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Path-Class/ Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-%{version}.tar.gz +Patch0: Path-Class-0.25-old-M::B.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch BuildRequires: perl(base) @@ -21,6 +22,11 @@ BuildRequires: perl(IO::File) BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(Test::More) +# We need Perl::Perl::Critic ≥ 1.080 for a fix to +# Variables::ProhibitConditionalDeclarations, and the EPEL-5 version is too old +%if "%{?rhel}" != "4" && "%{?rhel}" != "5" +BuildRequires: perl(Test::Perl::Critic) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description @@ -33,6 +39,9 @@ and NetWare. %prep %setup -q -n Path-Class-%{version} +# Don't really need Module::Build ≥ 0.3601 +%patch0 -p1 + %build perl Build.PL installdirs=vendor ./Build @@ -43,7 +52,7 @@ rm -rf %{buildroot} %{_fixperms} %{buildroot} %check -./Build test +AUTHOR_TESTING=1 ./Build test %clean rm -rf %{buildroot} @@ -58,6 +67,21 @@ rm -rf %{buildroot} %{_mandir}/man3/Path::Class::File.3pm* %changelog +* Thu Feb 16 2012 Paul Howarth - 0.25-1 +- Update to 0.25: + - resolve() now croak()s instead of die()s on non-existent file + - Added a traverse() method for directories, based on the fmap_cont() method + of Forest::Tree::Pure; it's an alternative to ->recurse, which allows for + more control over how the recursion happens + - Fixed a grammar error in the docs + - Added a tempfile() method for Dir objects, which provides an interface to + File::Temp (CPAN RT#60485) + - Fixed a non-helpful fatal error message when calling resolve() on a path + that doesn't exist; now dies with the proper "No such file or directory" + message and exit status +- BR: perl(Test::Perl::Critic) and run author tests where possible +- Add patch to support building with Module::Build < 0.3601 + * Thu Feb 16 2012 Paul Howarth - 0.23-4 - Spec clean-up: - Add buildreqs for Perl core modules that might be dual-lived diff --git a/sources b/sources index a8085ae..4123241 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -afff1b24d09674575d37c6a61e1e8b5a Path-Class-0.23.tar.gz +91517fdac5262e8665ae2ba9f507824b Path-Class-0.25.tar.gz