|
|
4ad56e |
Name: perl-Class-Load
|
|
|
4ad56e |
Version: 0.20
|
|
|
4ad56e |
Release: 3%{?dist}
|
|
|
4ad56e |
Summary: A working (require "Class::Name") and more
|
|
|
4ad56e |
Group: Development/Libraries
|
|
|
4ad56e |
License: GPL+ or Artistic
|
|
|
4ad56e |
URL: http://search.cpan.org/dist/Class-Load/
|
|
|
4ad56e |
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Load-%{version}.tar.gz
|
|
|
4ad56e |
BuildArch: noarch
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Module build requirements
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Module requirements
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
BuildRequires: perl(base)
|
|
|
4ad56e |
BuildRequires: perl(Carp)
|
|
|
4ad56e |
BuildRequires: perl(Data::OptList)
|
|
|
4ad56e |
BuildRequires: perl(Exporter)
|
|
|
4ad56e |
BuildRequires: perl(Module::Implementation) >= 0.04
|
|
|
4ad56e |
BuildRequires: perl(Module::Runtime) >= 0.012
|
|
|
4ad56e |
BuildRequires: perl(Package::Stash) >= 0.14
|
|
|
4ad56e |
BuildRequires: perl(Scalar::Util)
|
|
|
4ad56e |
BuildRequires: perl(Try::Tiny)
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Regular test suite requirements
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Class::Load::XS -> Class::Load
|
|
|
4ad56e |
%if 0%{!?perl_bootstrap:1}
|
|
|
4ad56e |
BuildRequires: perl(Class::Load::XS)
|
|
|
4ad56e |
%endif
|
|
|
4ad56e |
BuildRequires: perl(lib)
|
|
|
4ad56e |
BuildRequires: perl(Test::Fatal)
|
|
|
4ad56e |
BuildRequires: perl(Test::More)
|
|
|
4ad56e |
BuildRequires: perl(Test::Without::Module)
|
|
|
4ad56e |
BuildRequires: perl(version)
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Author/Release test requirements
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Can't use aspell-en from EPEL-7 as BR: for RHEL-7 package so skip the spell
|
|
|
4ad56e |
# check test there; test would fail rather than skip without Test::Spelling so
|
|
|
4ad56e |
# we need to keep that as a buildreq
|
|
|
4ad56e |
%if 0%{?rhel} < 7
|
|
|
4ad56e |
BuildRequires: aspell-en
|
|
|
4ad56e |
%endif
|
|
|
4ad56e |
# Pod::Coverage::Moose -> Moose -> Class::Load
|
|
|
4ad56e |
%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7
|
|
|
4ad56e |
BuildRequires: perl(Pod::Coverage::Moose)
|
|
|
4ad56e |
%endif
|
|
|
4ad56e |
BuildRequires: perl(Test::CPAN::Changes)
|
|
|
4ad56e |
BuildRequires: perl(Test::EOL)
|
|
|
4ad56e |
BuildRequires: perl(Test::NoTabs)
|
|
|
4ad56e |
BuildRequires: perl(Test::Pod)
|
|
|
4ad56e |
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
4ad56e |
BuildRequires: perl(Test::Requires)
|
|
|
4ad56e |
BuildRequires: perl(Test::Spelling)
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
# Runtime requirements
|
|
|
4ad56e |
# ===================================================================
|
|
|
4ad56e |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
4ad56e |
# Also requires core module perl(Exporter) via a "use base" construct
|
|
|
4ad56e |
|
|
|
4ad56e |
%description
|
|
|
4ad56e |
require EXPR only accepts Class/Name.pm style module names, not Class::Name.
|
|
|
4ad56e |
How frustrating! For that, we provide load_class 'Class::Name'.
|
|
|
4ad56e |
|
|
|
4ad56e |
It's often useful to test whether a module can be loaded, instead of throwing
|
|
|
4ad56e |
an error when it's not available. For that, we provide
|
|
|
4ad56e |
try_load_class 'Class::Name'.
|
|
|
4ad56e |
|
|
|
4ad56e |
Finally, sometimes we need to know whether a particular class has been loaded.
|
|
|
4ad56e |
Asking %%INC is an option, but that will miss inner packages and any class for
|
|
|
4ad56e |
which the filename does not correspond to the package name. For that, we
|
|
|
4ad56e |
provide is_class_loaded 'Class::Name'.
|
|
|
4ad56e |
|
|
|
4ad56e |
%prep
|
|
|
4ad56e |
%setup -q -n Class-Load-%{version}
|
|
|
4ad56e |
|
|
|
4ad56e |
%build
|
|
|
4ad56e |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
4ad56e |
make %{?_smp_mflags}
|
|
|
4ad56e |
|
|
|
4ad56e |
%install
|
|
|
4ad56e |
make pure_install DESTDIR=%{buildroot}
|
|
|
4ad56e |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
4ad56e |
%{_fixperms} %{buildroot}
|
|
|
4ad56e |
|
|
|
4ad56e |
%check
|
|
|
4ad56e |
%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7
|
|
|
4ad56e |
make test RELEASE_TESTING=1
|
|
|
4ad56e |
%else
|
|
|
4ad56e |
make test
|
|
|
4ad56e |
%endif
|
|
|
4ad56e |
|
|
|
4ad56e |
%files
|
|
|
4ad56e |
%doc Changes LICENSE README
|
|
|
4ad56e |
%{perl_vendorlib}/Class/
|
|
|
4ad56e |
%{_mandir}/man3/Class::Load.3pm*
|
|
|
4ad56e |
|
|
|
4ad56e |
%changelog
|
|
|
4ad56e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20-3
|
|
|
4ad56e |
- Mass rebuild 2013-12-27
|
|
|
4ad56e |
|
|
|
4ad56e |
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 0.20-2.1
|
|
|
4ad56e |
- Rebuild for perl 5.16
|
|
|
4ad56e |
|
|
|
4ad56e |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
|
|
|
4ad56e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
4ad56e |
|
|
|
4ad56e |
* Sun Jul 15 2012 Paul Howarth <paul@city-fan.org> - 0.20-1
|
|
|
4ad56e |
- Update to 0.20
|
|
|
4ad56e |
- Same as the most recent 0.19, but with a new version (CPAN RT#78389)
|
|
|
4ad56e |
|
|
|
4ad56e |
* Sun Jul 15 2012 Paul Howarth <paul@city-fan.org> - 0.19-7
|
|
|
4ad56e |
- New upstream re-release of 0.19 by DROLSKY
|
|
|
4ad56e |
- The load_class() subroutine now returns the class name on success
|
|
|
4ad56e |
(CPAN RT#76931)
|
|
|
4ad56e |
- Exceptions and errors from Class::Load no longer contain references to line
|
|
|
4ad56e |
numbers in Class::Load or Module::Runtime; this applies to exceptions
|
|
|
4ad56e |
thrown by load_class, load_first_existing_class, and load_optional_class,
|
|
|
4ad56e |
as well as the error returned by try_load_class
|
|
|
4ad56e |
- Exceptions are now croaked properly so they appear to come from the calling
|
|
|
4ad56e |
code, not from an internal subroutine; this makes the exceptions look more
|
|
|
4ad56e |
like the ones thrown by Perl's require (CPAN RT#68663)
|
|
|
4ad56e |
- This release by DROLSKY -> update source URL
|
|
|
4ad56e |
- BR: perl(Scalar::Util) for the module
|
|
|
4ad56e |
- BR: perl(lib) for the test suite
|
|
|
4ad56e |
- Drop buildreqs perl(strict) and perl(warnings) - not dual-lived
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.19-6
|
|
|
4ad56e |
- Perl 5.16 re-rebuild of bootstrapped packages
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Jun 26 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.19-5
|
|
|
4ad56e |
- Conditionalize Pod::Coverage::Moose
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.19-4
|
|
|
4ad56e |
- Perl 5.16 rebuild
|
|
|
4ad56e |
|
|
|
4ad56e |
* Thu Jun 7 2012 Paul Howarth <paul@city-fan.org> - 0.19-3
|
|
|
4ad56e |
- Add commentary regarding conditionalized buildreqs
|
|
|
4ad56e |
|
|
|
4ad56e |
* Thu Jun 7 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.19-2
|
|
|
4ad56e |
- Conditionalize aspell-en dependency
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Apr 3 2012 Paul Howarth <paul@city-fan.org> - 0.19-1
|
|
|
4ad56e |
- Update to 0.19 (no functional changes)
|
|
|
4ad56e |
- This release by DOY -> update source URL
|
|
|
4ad56e |
- BR: perl(Exporter)
|
|
|
4ad56e |
- Don't need to remove empty directories from buildroot
|
|
|
4ad56e |
|
|
|
4ad56e |
* Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 0.18-1
|
|
|
4ad56e |
- Update to 0.18:
|
|
|
4ad56e |
- Require Package::Stash ≥ 0.14 (CPAN RT#75095)
|
|
|
4ad56e |
|
|
|
4ad56e |
* Sun Feb 12 2012 Paul Howarth <paul@city-fan.org> - 0.17-1
|
|
|
4ad56e |
- Update to 0.17:
|
|
|
4ad56e |
- Require Module::Runtime 0.012, which has a number of useful bug fixes
|
|
|
4ad56e |
- A bug in Class::Load caused test failures when Module::Runtime 0.012 was
|
|
|
4ad56e |
used with Perl 5.8.x (CPAN RT#74897)
|
|
|
4ad56e |
|
|
|
4ad56e |
* Thu Feb 9 2012 Paul Howarth <paul@city-fan.org> - 0.15-1
|
|
|
4ad56e |
- Update to 0.15:
|
|
|
4ad56e |
- Small test changes to accomodate latest version of Module::Implementation
|
|
|
4ad56e |
- BR: at least version 0.04 of perl(Module::Implementation)
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Feb 7 2012 Paul Howarth <paul@city-fan.org> - 0.14-1
|
|
|
4ad56e |
- Update to 0.14:
|
|
|
4ad56e |
- Use Module::Implementation to handle loading the XS or PP versions of the
|
|
|
4ad56e |
code; using this module fixes a few bugs
|
|
|
4ad56e |
- Under taint mode, setting an implementation in the
|
|
|
4ad56e |
CLASS_LOAD_IMPLEMENTATION env var caused a taint error
|
|
|
4ad56e |
- An invalid value in the CLASS_LOAD_IMPLEMENTATION env var is now detected
|
|
|
4ad56e |
and reported immediately; no attempt is made to load an invalid
|
|
|
4ad56e |
implementation
|
|
|
4ad56e |
- BR: perl(Module::Implementation)
|
|
|
4ad56e |
- BR: perl(base), perl(Carp), perl(strict) and perl(warnings) for completeness
|
|
|
4ad56e |
- Drop version requirement for perl(Package::Stash), no longer present upstream
|
|
|
4ad56e |
- Drop explicit runtime dependencies, no longer needed
|
|
|
4ad56e |
- Don't BR: perl(Class::Load::XS) or perl(Pod::Coverage::Moose) if we're
|
|
|
4ad56e |
bootstrapping
|
|
|
4ad56e |
- Don't run the release tests when bootstrapping as the Pod coverage test will
|
|
|
4ad56e |
fail in the absence of Pod::Coverage::Moose
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.13-2
|
|
|
4ad56e |
- Fedora 17 mass rebuild
|
|
|
4ad56e |
|
|
|
4ad56e |
* Thu Dec 22 2011 Paul Howarth <paul@city-fan.org> - 0.13-1
|
|
|
4ad56e |
- Update to 0.13:
|
|
|
4ad56e |
- Fix some bugs with our use of Try::Tiny, which could cause warnings on some
|
|
|
4ad56e |
systems where Class::Load::XS wasn't installed (CPAN RT#72345)
|
|
|
4ad56e |
- BR: perl(Test::Without::Module)
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Oct 25 2011 Paul Howarth <paul@city-fan.org> - 0.12-1
|
|
|
4ad56e |
- Update to 0.12:
|
|
|
4ad56e |
- Require Module::Runtime ≥ 0.011, which fixes problems with Catalyst under
|
|
|
4ad56e |
Perl 5.8 and 5.10
|
|
|
4ad56e |
- Add versioned runtime dependencies for Module::Runtime and Package::Stash
|
|
|
4ad56e |
|
|
|
4ad56e |
* Wed Oct 5 2011 Paul Howarth <paul@city-fan.org> - 0.11-1
|
|
|
4ad56e |
- Update to 0.11:
|
|
|
4ad56e |
- Don't accept package names that start with a digit
|
|
|
4ad56e |
- Rewrite some of the guts to use Module::Runtime rather than reimplementing
|
|
|
4ad56e |
its functionality
|
|
|
4ad56e |
- BR: perl(Module::Runtime) ≥ 0.009
|
|
|
4ad56e |
- Drop all support for older distributions as required module
|
|
|
4ad56e |
Module::Runtime ≥ 0.009 will not be available prior to F-16
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Sep 6 2011 Paul Howarth <paul@city-fan.org> - 0.10-1
|
|
|
4ad56e |
- Update to 0.10:
|
|
|
4ad56e |
- Fix is_class_loaded to ignore $ISA (but still look for @ISA) when trying to
|
|
|
4ad56e |
determine whether a class is loaded
|
|
|
4ad56e |
- Lots of internals cleanup
|
|
|
4ad56e |
- BR: perl(Package::Stash) ≥ 0.32 and perl(Try::Tiny)
|
|
|
4ad56e |
- Update patches to apply cleanly
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Aug 16 2011 Paul Howarth <paul@city-fan.org> - 0.08-1
|
|
|
4ad56e |
- Update to 0.08:
|
|
|
4ad56e |
- The previous version was missing a prereq declaration for Data::OptList
|
|
|
4ad56e |
(CPAN RT#70285)
|
|
|
4ad56e |
- This release by DROLSKY -> update source URL
|
|
|
4ad56e |
- Package new documentation: LICENSE and README
|
|
|
4ad56e |
- Add build requirements for new release tests and run them:
|
|
|
4ad56e |
- perl(Pod::Coverage::Moose)
|
|
|
4ad56e |
- perl(Test::CPAN::Changes)
|
|
|
4ad56e |
- perl(Test::EOL)
|
|
|
4ad56e |
- perl(Test::NoTabs)
|
|
|
4ad56e |
- perl(Test::Pod)
|
|
|
4ad56e |
- perl(Test::Pod::Coverage)
|
|
|
4ad56e |
- perl(Test::Requires)
|
|
|
4ad56e |
- perl(Test::Spelling) and aspell-en
|
|
|
4ad56e |
- Add patch for building with ExtUtils::MakeMaker < 6.30
|
|
|
4ad56e |
- Add patch for building with Test::More < 0.88
|
|
|
4ad56e |
- Add patch for building without Test::Requires
|
|
|
4ad56e |
- Add patch for fixing spell checker word list
|
|
|
4ad56e |
- Don't try to run the POD Coverage test if we don't have Pod::Coverage::Moose
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-5
|
|
|
4ad56e |
- Perl mass rebuild
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-4
|
|
|
4ad56e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Dec 21 2010 Paul Howarth <paul@city-fan.org> - 0.06-3
|
|
|
4ad56e |
- Drop explicit dependency on core module perl(Exporter) (#656408)
|
|
|
4ad56e |
|
|
|
4ad56e |
* Tue Nov 23 2010 Paul Howarth <paul@city-fan.org> - 0.06-2
|
|
|
4ad56e |
- Sanitize spec for Fedora submission
|
|
|
4ad56e |
|
|
|
4ad56e |
* Mon Nov 22 2010 Paul Howarth <paul@city-fan.org> - 0.06-1
|
|
|
4ad56e |
- Initial RPM version
|