8
0

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:
2021-01-05 17:13:14 +00:00
committed by Git OBS Bridge
4 changed files with 34 additions and 18 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b7edeb0c877a5da36097d665f5dbb4809599406a68ee2a44f7b110fa226f4c8
size 86936

View File

@@ -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> Fri Jul 10 09:33:19 UTC 2020 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-JSON-Parse # 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 # 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
@@ -16,32 +16,30 @@
# #
Name: perl-JSON-Parse
Version: 0.57
Release: 0
%define cpan_name JSON-Parse %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 License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
%{perl_requires} %{perl_requires}
%description %description
A module for parsing JSON. (JSON means "JavaScript Object Notation" and it 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::Parse offers the function parse_json, which takes a string containing
JSON, and returns an equivalent Perl structure. It also offers validation JSON, and returns an equivalent Perl structure. It also offers validation
of JSON via valid_json, which returns true or false depending on whether 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 the JSON is correct or not, and assert_valid_json, which produces a
descriptive fatal error if the JSON is invalid. A function descriptive fatal error if the JSON is invalid. A function read_json reads
json_file_to_perl reads JSON from a file, and there is a safer version of JSON from a file, and there is a safer version of parse_json called
parse_json called parse_json_safe which doesn't throw exceptions. parse_json_safe which doesn't throw exceptions.
For special cases of parsing, there are also methods new and run, which 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. 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. Unicode.
%prep %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 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
# MANUAL BEGIN # MANUAL BEGIN
for file in $(find . -type f); do for file in $(find . -type f); do
@@ -63,7 +61,7 @@ done
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} %make_build
%check %check
make test make test
@@ -74,7 +72,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes CONTRIBUTING.md examples README see-also-info.json
%doc Changes examples README
%changelog %changelog