diff --git a/Module-Load-0.36.tar.gz b/Module-Load-0.36.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9229028017c7ade9c0e2373c28a3d7eeab87f9f2 Binary files /dev/null and b/Module-Load-0.36.tar.gz differ diff --git a/perl-Module-Load.spec b/perl-Module-Load.spec new file mode 100644 index 0000000000000000000000000000000000000000..e7c7086e87187426898329c7892ba2721d6ec23b --- /dev/null +++ b/perl-Module-Load.spec @@ -0,0 +1,65 @@ +%define anolis_release 1 +Name: perl-Module-Load +# Epoch to compete with perl.spec +Epoch: 1 +Version: 0.36 +Release: %{anolis_release}%{?dist} +Summary: Run-time require of both modules and files +License: GPL+ or Artistic +URL: https://metacpan.org/release/Module-Load +Source0: https://cpan.metacpan.org/modules/by-module/Module/Module-Load-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +# Run-time: +BuildRequires: perl(File::Spec) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(Config) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Exporter) +BuildRequires: perl(lib) +BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +If you consult "perldoc -f require" you will see that "require" will behave +differently when given a bare-word or a string. In the case of a string, +"require" assumes you are wanting to load a file. But in the case of +a bare-word, it assumes you mean a module. + +This gives nasty overhead when you are trying to dynamically require modules +at run-time, since you will need to change the module notation to a file +notation fitting the particular platform you are on. + +"load" eliminates the need for this overhead and will just DWYM. + +%prep +%setup -q -n Module-Load-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} '%{buildroot}'/* + +%check +unset PERL_CORE +make test + +%files +%doc CHANGES README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Apr 20 2022 mgb01105731 - 1:0.36-1 +- Init from upstream version 0.36 +