Update to 0.25
- New upstream release 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
This commit is contained in:
parent
ae918caab5
commit
400937b5c0
20
Path-Class-0.25-old-M::B.patch
Normal file
20
Path-Class-0.25-old-M::B.patch
Normal file
@ -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
|
@ -1,11 +1,12 @@
|
|||||||
Name: perl-Path-Class
|
Name: perl-Path-Class
|
||||||
Version: 0.23
|
Version: 0.25
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Cross-platform path specification manipulation
|
Summary: Cross-platform path specification manipulation
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/Path-Class/
|
URL: http://search.cpan.org/dist/Path-Class/
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-%{version}.tar.gz
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(base)
|
BuildRequires: perl(base)
|
||||||
@ -21,6 +22,11 @@ BuildRequires: perl(IO::File)
|
|||||||
BuildRequires: perl(Module::Build)
|
BuildRequires: perl(Module::Build)
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(Test::More)
|
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))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -33,6 +39,9 @@ and NetWare.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Path-Class-%{version}
|
%setup -q -n Path-Class-%{version}
|
||||||
|
|
||||||
|
# Don't really need Module::Build ≥ 0.3601
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL installdirs=vendor
|
perl Build.PL installdirs=vendor
|
||||||
./Build
|
./Build
|
||||||
@ -43,7 +52,7 @@ rm -rf %{buildroot}
|
|||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
AUTHOR_TESTING=1 ./Build test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -58,6 +67,21 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man3/Path::Class::File.3pm*
|
%{_mandir}/man3/Path::Class::File.3pm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> - 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 <paul@city-fan.org> - 0.23-4
|
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> - 0.23-4
|
||||||
- Spec clean-up:
|
- Spec clean-up:
|
||||||
- Add buildreqs for Perl core modules that might be dual-lived
|
- Add buildreqs for Perl core modules that might be dual-lived
|
||||||
|
Loading…
Reference in New Issue
Block a user