Package init
This commit is contained in:
commit
e52099de8c
BIN
Module-Load-0.32.tar.gz
Normal file
BIN
Module-Load-0.32.tar.gz
Normal file
Binary file not shown.
53
perl-Module-Load.spec
Normal file
53
perl-Module-Load.spec
Normal file
@ -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 <buildteam@openeuler.org> - 1:0.32-418
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user