12 Star 0 Fork 4

src-openEuler/perl-Module-Pluggable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Module-Pluggable.spec 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
沈仲伟 提交于 2024-11-07 09:18 . Update to version 6.2
Name: perl-Module-Pluggable
Epoch: 2
Version: 6.2
Release: 1
Summary: Automatically give your module the ability to have plugins
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Pluggable
Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils findutils make perl-interpreter perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) perl(File::Spec::Functions) >= 3.00 perl(strict)
BuildRequires: perl(warnings) perl(Carp) perl(deprecate) perl(Exporter) >= 5.57
BuildRequires: perl(File::Basename) perl(File::Find) perl(if) perl(vars)
BuildRequires: perl(Module::Runtime) >= 0.012 perl(base) perl(Data::Dumper) perl(FindBin)
BuildRequires: perl(lib) perl(Test::More) >= 0.62
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(File::Spec::Functions) >= 3.00 perl(deprecate)
Recommends: perl(Module::Runtime) >= 0.012
%description
Provides a simple but, hopefully, extensible way of having 'plugins' for your module.
obviously this isn't going to be the be all and end all of solutions but is works for me
Essentially all it does is export a method into your namespace that looks.
through a search path for .pm files and turn those into class names.
Optionally it instantiates those classes for you.
%prep
%autosetup -n Module-Pluggable-%{version} -p1
find -type f -exec chmod -x {} +
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%exclude %{_libdir}/perl5/vendor_perl/auto/Module/pluggable/.packlist
%changelog
* Thu Nov 07 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 2:6.2-1
- Update to version 6.2
- Fix typo in examples
- Fix spelling of "FatPacker"
- Add before_instantiate and after_instantiate hooks
- Use explicit test plan instead of done_testing
- Skip unreadable files
- Fix behaviour of File::Find and symlinks on certain versions of Win32
- Improve vim swapfile patterns
- Ignore the .AppleDouble
- Don't use vars, use our
* Fri Apr 24 2020 yanan li <liyanan032@huawei.com> - 2:5.2-10
- package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-Module-Pluggable.git
git@gitee.com:src-openeuler/perl-Module-Pluggable.git
src-openeuler
perl-Module-Pluggable
perl-Module-Pluggable
master

搜索帮助