From: TizenOpenSource Date: Thu, 22 Feb 2024 05:39:59 +0000 (+0900) Subject: Bump to 4.16 X-Git-Tag: accepted/tizen/unified/20240228.013807^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee1fcdedc599ba76606917b55387a0972c423cfb;p=platform%2Fupstream%2Fperl-JSON-PP.git Bump to 4.16 Signed-off-by: TizenOpenSource --- diff --git a/packaging/perl-JSON-PP.manifest b/packaging/perl-JSON-PP.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/perl-JSON-PP.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/perl-JSON-PP.spec b/packaging/perl-JSON-PP.spec new file mode 100644 index 0000000..22a60d8 --- /dev/null +++ b/packaging/perl-JSON-PP.spec @@ -0,0 +1,46 @@ +Name: perl-JSON-PP +Version: 4.16 +Release: 1 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: JSON::PP - JSON::XS compatible pure-Perl module. +Url: https://metacpan.org/pod/JSON::PP +Group: Development/Libraries +Source0: %{name}-%{version}.tar.gz +Source1001: perl-JSON-PP.manifest +BuildRequires: perl +BuildRequires: perl(MIME::Base64) +BuildArch: noarch + +%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. + +JSON::PP has been in the Perl core since Perl 5.14, mainly +for CPAN toolchain modules to parse META.json. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%license README