@ -1,16 +1,16 @@
Name: perl-Class-Load
Version: 0.20
Release: 6 %{?dist}
Version: 0.21
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
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER /Class-Load-%{version}.tar.gz
BuildArch: noarch
# ===================================================================
# Module build requirements
# ===================================================================
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build::Tiny) >= 0.034
# ===================================================================
# Module requirements
# ===================================================================
@ -30,32 +30,17 @@ BuildRequires: perl(Try::Tiny)
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(Class::Load::XS)
%endif
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120900
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(lib)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Without::Module)
BuildRequires: perl(version)
# ===================================================================
# Author/Release test requirements
# ===================================================================
# Can't use aspell-en from EPEL-7 as BR: for RHEL-7 package so skip the spell
# check test there; test would fail rather than skip without Test::Spelling so
# we need to keep that as a buildreq
%if 0%{?rhel} < 7
BuildRequires: aspell-en
%endif
# Pod::Coverage::Moose -> Moose -> Class::Load
%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7
BuildRequires: perl(Pod::Coverage::Moose)
%endif
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Spelling)
# ===================================================================
# Runtime requirements
# ===================================================================
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -78,27 +63,32 @@ provide is_class_loaded 'Class::Name'.
%setup -q -n Class-Load-%{version}
%build
perl Makefile.PL INSTALLDIRS =vendor
make %{?_smp_mflags}
perl Build.PL --installdirs =vendor
./Build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}
./Build install --destdir=%{buildroot} --create_packlist=0
%check
%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7
make test RELEASE_TESTING=1
%else
make test
%endif
./Build test
%files
%doc Changes LICENSE README
%doc Changes CONTRIBUTING LICENSE README README.md
%{perl_vendorlib}/Class/
%{_mandir}/man3/Class::Load.3pm*
%{_mandir}/man3/Class::Load::PP.3pm*
%changelog
* Mon Feb 10 2014 Paul Howarth <paul@city-fan.org> - 0.21-1
- Update to 0.21
- Repository moved to the github moose organization
- This release by ETHER -> update source URL
- Switch to Module::Build::Tiny flow
- Package upstream CONTRIBUTING and README.md files
- Add manpage for Class::Load::PP to %%files list
- Don't attempt to run author/release tests as Module::Build::Tiny does not
provide a convenient way of doing that
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-6
- Perl 5.18 re-rebuild of bootstrapped packages