Blame SPECS/perl-Class-Load.spec

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