forked from pool/perl-JSON-Parse
Accepting request 860289 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/860289 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-Parse?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:85a88e451380b00c497465c573be9ab8c05b2a3988671d82c4131900dfc50ae7
|
||||
size 79465
|
3
JSON-Parse-0.59.tar.gz
Normal file
3
JSON-Parse-0.59.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b7edeb0c877a5da36097d665f5dbb4809599406a68ee2a44f7b110fa226f4c8
|
||||
size 86936
|
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 4 03:08:36 UTC 2021 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.59
|
||||
see /usr/share/doc/packages/perl-JSON-Parse/Changes
|
||||
|
||||
0.59 2021-01-04
|
||||
* "json_file_to_perl" renamed "read_json"
|
||||
* Documentation work
|
||||
-- Benchmarks section updated with latest versions, add Cpanel::JSON::XS
|
||||
-- Add Metacpan vote ratings to other CPAN modules section
|
||||
-- Sections reordered to put methods above parsing details
|
||||
0.58 2021-01-01
|
||||
* Protect against stack overflows by having maximum parsing depth
|
||||
-- set_max_depth, get_max_depth methods added
|
||||
* Documentation updated
|
||||
-- JSON RFC changed to 8259
|
||||
-- Discussion of Unicode tests in JSON Test Suite
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 10 09:33:19 UTC 2020 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-JSON-Parse
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,32 +16,30 @@
|
||||
#
|
||||
|
||||
|
||||
Name: perl-JSON-Parse
|
||||
Version: 0.57
|
||||
Release: 0
|
||||
%define cpan_name JSON-Parse
|
||||
Summary: Read JSON into a Perl variable
|
||||
Name: perl-JSON-Parse
|
||||
Version: 0.59
|
||||
Release: 0
|
||||
Summary: Parse JSON
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
A module for parsing JSON. (JSON means "JavaScript Object Notation" and it
|
||||
is specified in RFC 7159.)
|
||||
is specified in RFC 8259.)
|
||||
|
||||
JSON::Parse offers the function parse_json, which takes a string containing
|
||||
JSON, and returns an equivalent Perl structure. It also offers validation
|
||||
of JSON via valid_json, which returns true or false depending on whether
|
||||
the JSON is correct or not, and assert_valid_json, which produces a
|
||||
descriptive fatal error if the JSON is invalid. A function
|
||||
json_file_to_perl reads JSON from a file, and there is a safer version of
|
||||
parse_json called parse_json_safe which doesn't throw exceptions.
|
||||
descriptive fatal error if the JSON is invalid. A function read_json reads
|
||||
JSON from a file, and there is a safer version of parse_json called
|
||||
parse_json_safe which doesn't throw exceptions.
|
||||
|
||||
For special cases of parsing, there are also methods new and run, which
|
||||
create a JSON parsing object and run it on text. See METHODS.
|
||||
@@ -50,7 +48,7 @@ JSON::Parse accepts only UTF-8 as input. See UTF-8 only and Handling of
|
||||
Unicode.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
# MANUAL BEGIN
|
||||
for file in $(find . -type f); do
|
||||
@@ -63,7 +61,7 @@ done
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
@@ -74,7 +72,6 @@ make test
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples README
|
||||
%doc Changes CONTRIBUTING.md examples README see-also-info.json
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user