diff --git a/Module-Implementation-0.09.tar.gz b/Module-Implementation-0.09.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a1fc13c9fd457f6375bc086a7a990f0d1402aeba Binary files /dev/null and b/Module-Implementation-0.09.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index dbd23b8088f1b8b937672ddfb0b2f3f3e30c2390..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# perl-Module-Implementation - -#### Description -Loads one of several alternate underlying implementations for a module - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 63b9f02095766e440deaf45c2411c1c79ef2efd4..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# perl-Module-Implementation - -#### 介绍 -Loads one of several alternate underlying implementations for a module - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/perl-Module-Implementation.spec b/perl-Module-Implementation.spec new file mode 100644 index 0000000000000000000000000000000000000000..b9dd69eea76ae166859c5e0f7009b8b8db8c2c29 --- /dev/null +++ b/perl-Module-Implementation.spec @@ -0,0 +1,99 @@ +%bcond_with perl_Module_Implementation_enables_extra_test +%bcond_with perl_Module_Implementation_enables_optional_test + +Name: perl-Module-Implementation +Version: 0.09 +Release: 1 +Summary: Loads one of several alternate underlying implementations for a module +License: Artistic 2.0 +URL: https://metacpan.org/release/perl-Module-Implementation +Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Module-Implementation-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Carp) +BuildRequires: perl(Module::Runtime) >= 0.012 +BuildRequires: perl(Try::Tiny) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(blib) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(lib) +BuildRequires: perl(Test::Fatal) >= 0.006 +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Requires) +%if %{with perl_Module_Implementation_enables_optional_test} +BuildRequires: perl(CPAN::Meta) >= 2.120900 +%if ! %{defined perl_bootstrap} +BuildRequires: perl(Test::CleanNamespaces) +%endif +BuildRequires: perl(Test::Taint) +%endif +%if %{with perl_Module_Implementation_enables_extra_test} +%if ! %{defined perl_bootstrap} +BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(Test::CPAN::Changes) >= 0.19 +BuildRequires: perl(Test::EOL) +BuildRequires: perl(Test::NoTabs) +BuildRequires: perl(Test::Pod) >= 1.41 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: perl(Test::Portability::Files) +BuildRequires: aspell-en +BuildRequires: perl(Pod::Wordlist) +BuildRequires: perl(Test::Pod::LinkCheck) +BuildRequires: perl(Test::Pod::No404s) +BuildRequires: perl(Test::Spelling) >= 0.12 +%endif +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) + +%description +This module abstracts out the process of choosing one of several underlying +implementations for a module. This can be used to provide XS and pure Perl +implementations of a module, or it could be used to load an implementation +for a given OS or any other case of needing to provide multiple +implementations. + +This module is only useful when you know all the implementations ahead of +time. If you want to load arbitrary implementations then you probably want +something like a plugin system, not this module. + +%prep +%setup -q -n Module-Implementation-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} %{buildroot} + +%check +%if %{defined perl_bootstrap} +make test +%else +%if %{with perl_Module_Implementation_enables_extra_test} +make test AUTHOR_TESTING=1 RELEASE_TESTING=1 +%else +make test +%endif +%endif + +%files +%license LICENSE +%doc Changes README.md +%{perl_vendorlib}/Module/ +%{_mandir}/man3/Module::Implementation.3* + +%changelog +* Wed Jun 29 2022 misaka00251 - 0.09-1 +- Init package (Thanks to Jitka Plesnikova@RedHat) \ No newline at end of file