Bump to 4.16 sandbox/perl-JSON-PP_4.16 accepted/tizen/unified/20240228.013807 accepted/tizen/unified/x/20240229.013926
authorTizenOpenSource <tizenopensrc@samsung.com>
Thu, 22 Feb 2024 05:39:59 +0000 (14:39 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Thu, 22 Feb 2024 05:39:59 +0000 (14:39 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/perl-JSON-PP.manifest [new file with mode: 0644]
packaging/perl-JSON-PP.spec [new file with mode: 0644]

diff --git a/packaging/perl-JSON-PP.manifest b/packaging/perl-JSON-PP.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/perl-JSON-PP.spec b/packaging/perl-JSON-PP.spec
new file mode 100644 (file)
index 0000000..22a60d8
--- /dev/null
@@ -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