diff --git a/JSON-MaybeXS-1.004003.tar.gz b/JSON-MaybeXS-1.004003.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b07cbd4771b81d1bee70171e3834f6dd0d8e5243 Binary files /dev/null and b/JSON-MaybeXS-1.004003.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 5707dea393882cda1e7677b7fa9ffef040c3dbff..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# perl-JSON-MaybeXS - -#### Description -Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP - -#### 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 af6c244d31a628a1ec5485e33b50f526bcddcfc6..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# perl-JSON-MaybeXS - -#### 介绍 -Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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-JSON-MaybeXS.spec b/perl-JSON-MaybeXS.spec new file mode 100644 index 0000000000000000000000000000000000000000..9c90d6948d5245c7bc16cee78bb939b313ae924e --- /dev/null +++ b/perl-JSON-MaybeXS.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-JSON-MaybeXS +Version: 1.004003 +Release: 1 +Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP +License: Perl License or Artistic-1.0 +Group: Development/Libraries +URL: https://metacpan.org/release/JSON-MaybeXS/ +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/JSON-MaybeXS-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(Cpanel::JSON::XS) >= 2.3310 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(JSON::PP) >= 2.27300 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Needs) >= 0.002005 +Requires: perl(Carp) +Requires: perl(Cpanel::JSON::XS) >= 2.3310 +Requires: perl(JSON::PP) >= 2.27300 +Requires: perl(Scalar::Util) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +This module first checks to see if either Cpanel::JSON::XS or JSON::XS (at +at least version 3.0) is already loaded, in which case it uses that module. +Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP +in order, and either uses the first module it finds or throws an error. +%package help +Summary : Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP +Provides: perl-JSON-MaybeXS-doc +%description help +This module first checks to see if either Cpanel::JSON::XS or JSON::XS (at +at least version 3.0) is already loaded, in which case it uses that module. +Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP +in order, and either uses the first module it finds or throws an error. +%prep +%setup -q -n JSON-MaybeXS-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Mon Mar 08 2021 Perl_Bot 1.004003-1 +- Specfile autogenerated by Perl_Bot diff --git a/perl-JSON-MaybeXS.yaml b/perl-JSON-MaybeXS.yaml new file mode 100644 index 0000000000000000000000000000000000000000..27d5f4d13333e538df4b08681ff8948a57f608cc --- /dev/null +++ b/perl-JSON-MaybeXS.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: JSON-MaybeXS +tag_prefix: "^v" +separator: "."