f01c84
Name:           perl-Module-Load
f01c84
# Epoch to compete with perl.spec
f01c84
Epoch:          1
f01c84
Version:        0.24
f01c84
Release:        2%{?dist}
f01c84
Summary:        Run-time require of both modules and files
f01c84
License:        GPL+ or Artistic
f01c84
Group:          Development/Libraries
f01c84
URL:            http://search.cpan.org/dist/Module-Load/
f01c84
Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/Module-Load-%{version}.tar.gz
f01c84
BuildArch:      noarch
f01c84
BuildRequires:  perl
f01c84
BuildRequires:  perl(ExtUtils::MakeMaker)
f01c84
BuildRequires:  perl(strict)
f01c84
# Run-time:
f01c84
BuildRequires:  perl(File::Spec)
f01c84
# Tests:
f01c84
BuildRequires:  perl(lib)
f01c84
BuildRequires:  perl(Exporter)
f01c84
BuildRequires:  perl(Test::More)
f01c84
BuildRequires:  perl(vars)
f01c84
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f01c84
f01c84
%description
f01c84
If you consult "perldoc -f require" you will see that "require" will behave
f01c84
differently when given a bare-word or a string. In the case of a string,
f01c84
"require" assumes you are wanting to load a file. But in the case of
f01c84
a bare-word, it assumes you mean a module.
f01c84
f01c84
This gives nasty overhead when you are trying to dynamically require modules
f01c84
at run-time, since you will need to change the module notation to a file
f01c84
notation fitting the particular platform you are on.
f01c84
f01c84
"load" eliminates the need for this overhead and will just DWYM.
f01c84
f01c84
%prep
f01c84
%setup -q -n Module-Load-%{version}
f01c84
f01c84
%build
f01c84
perl Makefile.PL INSTALLDIRS=vendor
f01c84
make %{?_smp_mflags}
f01c84
f01c84
%install
f01c84
make pure_install DESTDIR=$RPM_BUILD_ROOT
f01c84
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
f01c84
%{_fixperms} $RPM_BUILD_ROOT/*
f01c84
f01c84
%check
f01c84
make test
f01c84
f01c84
%files
f01c84
%doc CHANGES README
f01c84
%{perl_vendorlib}/*
f01c84
%{_mandir}/man3/*
f01c84
f01c84
%changelog
f01c84
* Fri Apr 05 2013 Petr Pisar <ppisar@redhat.com> - 1:0.24-2
f01c84
- Set epoch to compete with perl.spec
f01c84
f01c84
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 0.24-1
f01c84
- Specfile autogenerated by cpanspec 1.78.