Accepting request 497401 from devel:languages:perl
1 OBS-URL: https://build.opensuse.org/request/show/497401 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON?expand=0&rev=19
This commit is contained in:
commit
3c2dc634f6
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4ddbb3cb985a79f69a34e7c26cde1c81120d03487e87366f9a119f90f7bdfe88
|
|
||||||
size 85333
|
|
3
JSON-2.93.tar.gz
Normal file
3
JSON-2.93.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:589300c3077ac7b2061ec4322f4bef5bde51c4f455eb98f34c56abe59551ba7a
|
||||||
|
size 82566
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 19 05:55:06 UTC 2017 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 2.93
|
||||||
|
see /usr/share/doc/packages/perl-JSON/Changes
|
||||||
|
|
||||||
|
2.93 2017-05-19
|
||||||
|
- add VERSION methods to (abstract) backend packages
|
||||||
|
- explained backward incompatibility about backend method
|
||||||
|
- updated VERSIONs of backportPP modules
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 16 05:59:33 UTC 2017 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 2.92
|
||||||
|
see /usr/share/doc/packages/perl-JSON/Changes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 10 23:55:51 UTC 2014 - lchiquitto@suse.com
|
Mon Feb 10 23:55:51 UTC 2014 - lchiquitto@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-JSON
|
# spec file for package perl-JSON
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 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,84 +17,39 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-JSON
|
Name: perl-JSON
|
||||||
Version: 2.90
|
Version: 2.93
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name JSON
|
%define cpan_name JSON
|
||||||
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/JSON/
|
Url: http://search.cpan.org/dist/JSON/
|
||||||
Source: http://www.cpan.org/authors/id/M/MA/MAKAMAKA/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
#BuildRequires: perl(JSON)
|
|
||||||
#BuildRequires: perl(JSON::backportPP)
|
|
||||||
#BuildRequires: perl(JSON::PP)
|
|
||||||
#BuildRequires: perl(JSON::XS)
|
|
||||||
#BuildRequires: perl(Tie::IxHash)
|
|
||||||
#BuildRequires: perl(_unicode_handling)
|
|
||||||
Recommends: perl(JSON::XS) >= 2.34
|
Recommends: perl(JSON::XS) >= 2.34
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
*************************** CAUTION **************************************
|
This module is a thin wrapper for JSON::XS-compatible modules with a few
|
||||||
* *
|
additional features. All the backend modules convert a Perl data structure
|
||||||
* INCOMPATIBLE CHANGE (JSON::XS version 2.90) *
|
to a JSON text as of RFC4627 (which we know is obsolete but we still stick
|
||||||
* *
|
to; see below for an option to support part of RFC7159) and vice versa.
|
||||||
* JSON.pm had patched JSON::XS::Boolean and JSON::PP::Boolean internally *
|
This module uses JSON::XS by default, and when JSON::XS is not available,
|
||||||
* on loading time for making these modules inherit JSON::Boolean. *
|
this module falls back on JSON::PP, which is in the Perl core since 5.14.
|
||||||
* But since JSON::XS v3.0 it use Types::Serialiser as boolean class. *
|
If JSON::PP is not available either, this module then falls back on
|
||||||
* Then now JSON.pm breaks boolean classe overload features and *
|
JSON::backportPP (which is actually JSON::PP in a different .pm file)
|
||||||
* -support_by_pp if JSON::XS v3.0 or later is installed. *
|
bundled in the same distribution as this module. You can also explicitly
|
||||||
* *
|
specify to use Cpanel::JSON::XS, a fork of JSON::XS by Reini Urban.
|
||||||
* JSON::true and JSON::false returned JSON::Boolean objects. *
|
|
||||||
* For workaround, they return JSON::PP::Boolean objects in this version. *
|
|
||||||
* *
|
|
||||||
* isa_ok(JSON::true, 'JSON::PP::Boolean'); *
|
|
||||||
* *
|
|
||||||
* And it discards a feature: *
|
|
||||||
* *
|
|
||||||
* ok(JSON::true eq 'true'); *
|
|
||||||
* *
|
|
||||||
* In other word, JSON::PP::Boolean overload numeric only. *
|
|
||||||
* *
|
|
||||||
* ok( JSON::true == 1 ); *
|
|
||||||
* *
|
|
||||||
**************************************************************************
|
|
||||||
|
|
||||||
************************** CAUTION ********************************
|
All these backend modules have slight incompatibilities between them,
|
||||||
* This is 'JSON module version 2' and there are many differences *
|
including extra features that other modules don't support, but as long as
|
||||||
* to version 1.xx *
|
you use only common features (most important ones are described below),
|
||||||
* Please check your applications using old version. *
|
migration from backend to backend should be reasonably easy. For details,
|
||||||
* See to 'INCOMPATIBLE CHANGES TO OLD VERSION' *
|
see each backend module you use.
|
||||||
*******************************************************************
|
|
||||||
|
|
||||||
JSON (JavaScript Object Notation) is a simple data format. See to the
|
|
||||||
http://www.json.org/ manpage and 'RFC4627'(the
|
|
||||||
http://www.ietf.org/rfc/rfc4627.txt manpage).
|
|
||||||
|
|
||||||
This module converts Perl data structures to JSON and vice versa using
|
|
||||||
either the JSON::XS manpage or the JSON::PP manpage.
|
|
||||||
|
|
||||||
JSON::XS is the fastest and most proper JSON module on CPAN which must be
|
|
||||||
compiled and installed in your environment. JSON::PP is a pure-Perl module
|
|
||||||
which is bundled in this distribution and has a strong compatibility to
|
|
||||||
JSON::XS.
|
|
||||||
|
|
||||||
This module try to use JSON::XS by default and fail to it, use JSON::PP
|
|
||||||
instead. So its features completely depend on JSON::XS or JSON::PP.
|
|
||||||
|
|
||||||
See to the BACKEND MODULE DECISION manpage.
|
|
||||||
|
|
||||||
To distinguish the module name 'JSON' and the format type JSON, the former
|
|
||||||
is quoted by C<> (its results vary with your using media), and the latter
|
|
||||||
is left just as it is.
|
|
||||||
|
|
||||||
Module name : 'JSON'
|
|
||||||
|
|
||||||
Format type : JSON
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user