forked from pool/perl-JSON-Parse
Accepting request 397450 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/397450 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
38f1966c7a
commit
07051d39db
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8ca48d1887a846ed834cc985a4e29e3ccaccb5b2cb99e2595c5bd119ffd0be20
|
|
||||||
size 63187
|
|
3
JSON-Parse-0.40.tar.gz
Normal file
3
JSON-Parse-0.40.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:314a3098d461b6405deef1554614e707591a3708a0a030c94ded061ff7a62622
|
||||||
|
size 64047
|
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 23 12:02:34 UTC 2016 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.40
|
||||||
|
see /usr/share/doc/packages/perl-JSON-Parse/Changes
|
||||||
|
|
||||||
|
0.40 2016-05-22
|
||||||
|
|
||||||
|
* Compilation warning, possible memory leaks (SHLOMIF)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 20 09:41:24 UTC 2015 - coolo@suse.com
|
Fri Nov 20 09:41:24 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-JSON-Parse
|
# spec file for package perl-JSON-Parse
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-JSON-Parse
|
Name: perl-JSON-Parse
|
||||||
Version: 0.39
|
Version: 0.40
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name JSON-Parse
|
%define cpan_name JSON-Parse
|
||||||
Summary: Read JSON into a Perl variable
|
Summary: Read JSON into a Perl variable
|
||||||
@@ -36,19 +36,18 @@ JSON::Parse offers the function parse_json, which takes one argument, a
|
|||||||
string containing JSON, and returns a Perl reference or scalar. The input
|
string containing JSON, and returns a Perl reference or scalar. The input
|
||||||
to 'parse_json' must be a complete JSON structure.
|
to 'parse_json' must be a complete JSON structure.
|
||||||
|
|
||||||
A safer version of the same function parse_json_safe also exists.
|
JSON::Parse also offers two high-speed validation functions, valid_json,
|
||||||
|
which returns true or false, and assert_valid_json, which produces a
|
||||||
JSON::Parse also offers two validation functions, valid_json, which returns
|
descriptive fatal error if the JSON is invalid. These are much faster than
|
||||||
true or false, and assert_valid_json, which produces a descriptive fatal
|
parse_json. See PERFORMANCE for a comparison.
|
||||||
error if the JSON is invalid. These act at a higher speed than parse_json.
|
|
||||||
See PERFORMANCE for a comparison.
|
|
||||||
|
|
||||||
JSON::Parse also offers one convenience function to read JSON directly from
|
JSON::Parse also offers one convenience function to read JSON directly from
|
||||||
a file, json_file_to_perl.
|
a file, json_file_to_perl, and a safer version of parse_json called
|
||||||
|
parse_json_safe which doesn't throw exceptions.
|
||||||
|
|
||||||
For those who need to deal with special cases, such as JSON objects with
|
For special cases, such as JSON objects with non-unique names (key
|
||||||
non-unique names, or round-trips with JSON booleans, there is also new and
|
collisions), or round-trips with JSON booleans, there are also new and run,
|
||||||
run.
|
which create a JSON parsing object and run it on text.
|
||||||
|
|
||||||
JSON::Parse accepts only UTF-8 as input. If its input is marked as Unicode
|
JSON::Parse accepts only UTF-8 as input. If its input is marked as Unicode
|
||||||
characters, the strings in its output are also marked as Unicode
|
characters, the strings in its output are also marked as Unicode
|
||||||
@@ -59,7 +58,7 @@ its output is upgraded to Unicode character strings.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
find . -type f -print0 | xargs -0 chmod 644
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
Reference in New Issue
Block a user