diff --git a/B-COW-0.004.tar.gz b/B-COW-0.004.tar.gz new file mode 100644 index 0000000..3896d90 Binary files /dev/null and b/B-COW-0.004.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index b1793a6..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# perl-B-COW - -#### Description -B - -#### 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 c00cc45..0000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# perl-B-COW - -#### 介绍 -B - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/perl-B-COW.spec b/perl-B-COW.spec new file mode 100644 index 0000000..5abf339 --- /dev/null +++ b/perl-B-COW.spec @@ -0,0 +1,78 @@ +#from https://fedoraproject.org to https://openeuler.org/ + +Name: perl-B-COW +Version: 0.004 +Release: 1 +Summary: Additional B helpers to check Copy On Write status +License: GPL+ or Artistic +URL: https://metacpan.org/release/B-COW +Source0: https://cpan.metacpan.org/modules/by-module/B/B-COW-%{version}.tar.gz +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Module Runtime +BuildRequires: perl(base) +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) +# Test Suite +BuildRequires: perl(Devel::Peek) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::More) +# Optional Tests +BuildRequires: perl(CPAN::Meta) >= 2.120900 +BuildRequires: perl(CPAN::Meta::Prereqs) +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Don't "provide" private Perl libs +%{?perl_default_filter} + +%description +B::COW provides some naïve additional B helpers to check the Copy On Write +(COW) status of one SvPV (a Perl string variable). + +A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a (kind of) +Read Only C string, which would be Copied On Write (COW). More than one SV can +share the same PV, but when one PV needs to alter it, it would perform a copy +of it, decreasing the COWREFCNT counter. One SV can then drop the COW flag when +it's the only one holding a pointer to the PV. The COWREFCNT is stored at the +end of the PV, after the null byte terminating the string. That value is +limited to 255: when we reach 255, a new PV would be created. + +%prep +%setup -q -n B-COW-%{version} + +%build +perl Makefile.PL \ + INSTALLDIRS=vendor \ + OPTIMIZE="%{optflags}" \ + NO_PACKLIST=1 \ + NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +find %{buildroot} -type f -name '*.bs' -empty -delete +%{_fixperms} -c %{buildroot} + +%check +make test + +%files +%license LICENSE +%doc Changes examples/ README +%{perl_vendorarch}/auto/B/ +%{perl_vendorarch}/B/ +%{_mandir}/man3/B::COW.3* + +%changelog +* Tue Mar 23 2021 wangyueliang - 0.004-1 +- Package init diff --git a/perl-B-COW.yaml b/perl-B-COW.yaml new file mode 100644 index 0000000..9814b1f --- /dev/null +++ b/perl-B-COW.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: B-COW +tag_prefix: "^B-COW-" +seperator: "."