[perl-Class-Load] Update to 0.11
Paul Howarth
pghmcfc at fedoraproject.org
Wed Oct 5 13:13:10 UTC 2011
commit bf9aac4dbf863548c7b15f6ffe58f5c5f5473862
Author: Paul Howarth <paul at city-fan.org>
Date: Wed Oct 5 13:30:54 2011 +0100
Update to 0.11
- New upstream release 0.11:
- Don't accept package names that start with a digit
- Rewrite some of the guts to use Module::Runtime rather than reimplementing
its functionality
- BR: perl(Module::Runtime) ≥ 0.009
- Drop all support for older distributions as required module
Module::Runtime ≥ 0.009 will not be available prior to F-16
Class-Load-0.08-no-Test::Requires.patch | 25 ----
Class-Load-0.08-stopwords.patch | 13 --
Class-Load-0.09-old-Test::More.patch | 224 -------------------------------
Class-Load-0.09-old-eu::mm.patch | 11 --
perl-Class-Load.spec | 48 ++-----
sources | 2 +-
6 files changed, 12 insertions(+), 311 deletions(-)
---
diff --git a/perl-Class-Load.spec b/perl-Class-Load.spec
index e105277..d1cf845 100644
--- a/perl-Class-Load.spec
+++ b/perl-Class-Load.spec
@@ -1,17 +1,12 @@
Name: perl-Class-Load
-Version: 0.10
+Version: 0.11
Release: 1%{?dist}
Summary: A working (require "Class::Name") and more
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Class-Load/
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Load-%{version}.tar.gz
-Patch0: Class-Load-0.09-old-Test::More.patch
-Patch2: Class-Load-0.09-old-eu::mm.patch
-Patch3: Class-Load-0.08-no-Test::Requires.patch
-Patch5: Class-Load-0.08-stopwords.patch
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
# ===================================================================
# Module build requirements
# ===================================================================
@@ -20,6 +15,7 @@ BuildRequires: perl(ExtUtils::MakeMaker)
# Module requirements
# ===================================================================
BuildRequires: perl(Data::OptList)
+BuildRequires: perl(Module::Runtime) >= 0.009
BuildRequires: perl(Package::Stash) >= 0.32
BuildRequires: perl(Try::Tiny)
# ===================================================================
@@ -36,15 +32,9 @@ BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Spelling), aspell-en
-# Modules not in EPEL-4
-%if 0%{?fedora} || 0%{?rhel} > 4
BuildRequires: perl(Test::Requires)
-%endif
-# Modules not in EPEL-4/5/6
-%if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: perl(Pod::Coverage::Moose)
BuildRequires: perl(Test::CPAN::Changes)
-%endif
# ===================================================================
# Runtime requirements
# ===================================================================
@@ -67,50 +57,34 @@ provide is_class_loaded 'Class::Name'.
%prep
%setup -q -n Class-Load-%{version}
-# We need to patch the test suite if we have Test::More < 0.88
-%if "%{?rhel}" == "4" || "%{?rhel}" == "5"
-%patch0 -p1
-%endif
-
-# Work around absence of Test::Requires and ancient ExtUtils::MakeMaker if necessary
-%if "%{?rhel}" == "4"
-%patch2 -p1
-%patch3 -p1
-%endif
-
-# Add extra stopwords to spell check test to account for dictionary
-# coverage differences between distros
-%patch5 -p1
-
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} %{buildroot}
%check
-# Pod Coverage test breaks the build if we don't have Pod::Coverage::Moose
-%if ! 0%{?fedora} && 0%{?rhel} <= 6
-mv t/release-pod-coverage.t .
-%endif
make test RELEASE_TESTING=1
-[ -f release-pod-coverage.t ] && mv release-pod-coverage.t t/
-
-%clean
-rm -rf %{buildroot}
%files
-%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/Class/
%{_mandir}/man3/Class::Load.3pm*
%changelog
+* Wed Oct 5 2011 Paul Howarth <paul at city-fan.org> - 0.11-1
+- Update to 0.11:
+ - Don't accept package names that start with a digit
+ - Rewrite some of the guts to use Module::Runtime rather than reimplementing
+ its functionality
+- BR: perl(Module::Runtime) ≥ 0.009
+- Drop all support for older distributions as required module
+ Module::Runtime ≥ 0.009 will not be available prior to F-16
+
* Tue Sep 6 2011 Paul Howarth <paul at city-fan.org> - 0.10-1
- Update to 0.10:
- Fix is_class_loaded to ignore $ISA (but still look for @ISA) when trying to
diff --git a/sources b/sources
index c09000f..1823280 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-737bc23977e0240180954c2872faa50d Class-Load-0.10.tar.gz
+02180e505179e1ea718a5a22f93d2c0c Class-Load-0.11.tar.gz
More information about the scm-commits
mailing list