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