commit e52099de8c81c3501ff15777cb1a8b003c46f5ca Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:12:52 2019 -0400 Package init diff --git a/Module-Load-0.32.tar.gz b/Module-Load-0.32.tar.gz new file mode 100644 index 0000000..534bba6 Binary files /dev/null and b/Module-Load-0.32.tar.gz differ diff --git a/perl-Module-Load.spec b/perl-Module-Load.spec new file mode 100644 index 0000000..fd8bc41 --- /dev/null +++ b/perl-Module-Load.spec @@ -0,0 +1,53 @@ +Name: perl-Module-Load +Epoch: 1 +Version: 0.32 +Release: 418 +Summary: Runtime require of both modules and files +License: GPL+ or Artistic +URL: https://metacpan.org/release/Module-Load +Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Load-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: perl-generators perl perl-interpreter perl(ExtUtils::MakeMaker) perl(strict) perl(File::Spec) +BuildRequires: perl(warnings) perl(Config) perl(Exporter) perl(lib) perl(Test::More) perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Module::Load eliminates the need to know whether you are trying to require either a file or a module. +If you consult perldoc -f require you will see that require will behave differently when given a +bareword or a string. In the case of a string, require assumes you are wanting to load a file. But +in the case of a bareword, it assumes you mean a module. This gives nasty overhead when you are trying +to dynamically require modules at runtime, since you will need to change the module notation +(Acme::Comment) to a file notation fitting the particular platform you are on. + +Module::Load eliminates the need for this overhead and will just DWYM. + +%package_help + +%prep +%autosetup -n Module-Load-%{version} -p1 + +%build +perl Makefile.PL NO_PACKLIST=1 INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root) +%doc README CHANGES +%{perl_vendorlib}/* + +%files help +%defattr(-,root,root) +%{_mandir}/man3/* + +%changelog +* Thu Sep 12 2019 openEuler Buildteam - 1:0.32-418 +- Package init +