11 Star 0 Fork 6

src-openEuler / perl-JSON-PP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-JSON-PP.spec 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
weiwei_tiantian 提交于 2021-12-25 15:31 . upgrade version to 4.06
Name: perl-JSON-PP
Epoch: 1
Version: 4.06
Release: 1
Summary: JSON::XS compatible pure-Perl module.
License: GPL+ or Artistic
URL: https://metacpan.org/release/JSON-PP
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-PP-%{version}.tar.gz
BuildArch: noarch
BuildRequires:perl-generators perl-interpreter perl(ExtUtils::MakeMaker) perl(Test::More) make
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Encode)
Requires: perl(Data::Dumper) perl(Math::BigFloat) perl(Math::BigInt) perl(Scalar::Util) >= 1.08 perl(utf8)
%description
JSON::PP is a pure perl JSON decoder/encoder, and (almost) compatible to much faster JSON::XS
written by Marc Lehmann in C. JSON::PP works as a fallback module when you use JSON module without having installed JSON::XS.
Because of this fallback feature of JSON.pm, JSON::PP tries not to be more JavaScript-friendly than JSON::XS
(i.e. not to escape extra characters such as U+2028 and U+2029, etc), in order for you not to lose such JavaScript-friendliness
silently when you use JSON.pm and install JSON::XS for speed or by accident. If you need JavaScript-friendly RFC7159-compliant
pure perl module, try JSON::Tiny, which is derived from Mojolicious web framework and is also smaller and faster than JSON::PP.
%package_help
%prep
%autosetup -n JSON-PP-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build
%install
%make_install
%{_fixperms} -c %{buildroot}
%check
make test
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%doc Changes README
%{_bindir}/*
%{perl_vendorlib}/*
%files help
%defattr(-,root,root)
%{_mandir}/*/*
%changelog
* Sat Dec 25 2021 tianwei <tianwei12@huawei.com> - 1:4.06-1
- upgrade version to 4.06
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 1:4.05-1
- upgrade version to 4.05
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.04-2
- Add requires
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.04-1
- Package init
1
https://gitee.com/src-openeuler/perl-JSON-PP.git
git@gitee.com:src-openeuler/perl-JSON-PP.git
src-openeuler
perl-JSON-PP
perl-JSON-PP
openEuler-22.03-LTS

搜索帮助