2009-06-20 19:21:29 +02:00
|
|
|
#
|
2011-11-11 12:19:16 +01:00
|
|
|
# spec file for package perl-JSON
|
2010-09-06 10:23:40 +02:00
|
|
|
#
|
2022-01-18 19:07:16 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-06-20 19:21:29 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-10 10:20:57 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-09-06 10:23:40 +02:00
|
|
|
#
|
|
|
|
|
2011-11-11 12:19:16 +01:00
|
|
|
|
2022-01-04 12:10:54 +01:00
|
|
|
%define cpan_name JSON
|
2009-06-20 19:21:29 +02:00
|
|
|
Name: perl-JSON
|
2022-10-14 19:17:24 +02:00
|
|
|
Version: 4.10
|
2013-06-10 12:58:00 +02:00
|
|
|
Release: 0
|
2018-12-10 10:20:57 +01:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-06-02 10:03:31 +02:00
|
|
|
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
2021-01-25 10:00:30 +01:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-05-18 10:30:40 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2010-09-06 10:23:40 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-10 12:58:00 +02:00
|
|
|
Recommends: perl(JSON::XS) >= 2.34
|
2011-04-05 10:22:42 +02:00
|
|
|
%{perl_requires}
|
2007-09-18 16:41:53 +02:00
|
|
|
|
|
|
|
%description
|
2017-05-18 10:30:40 +02:00
|
|
|
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
|
2018-12-10 10:20:57 +01:00
|
|
|
to a JSON text and vice versa. This module uses JSON::XS by default, and
|
|
|
|
when JSON::XS is not available, falls back on JSON::PP, which is in the
|
|
|
|
Perl core since 5.14. If JSON::PP is not available either, this module then
|
|
|
|
falls back on JSON::backportPP (which is actually JSON::PP in a different
|
|
|
|
.pm file) 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.
|
2017-05-18 10:30:40 +02:00
|
|
|
|
|
|
|
All these backend modules have slight incompatibilities between them,
|
|
|
|
including extra features that other modules don't support, but as long as
|
|
|
|
you use only common features (most important ones are described below),
|
|
|
|
migration from backend to backend should be reasonably easy. For details,
|
|
|
|
see each backend module you use.
|
2010-09-06 10:23:40 +02:00
|
|
|
|
2007-09-18 16:41:53 +02:00
|
|
|
%prep
|
2022-01-04 12:10:54 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2007-09-18 16:41:53 +02:00
|
|
|
|
|
|
|
%build
|
2018-12-10 10:20:57 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2022-01-04 12:10:54 +01:00
|
|
|
%make_build
|
2010-09-06 10:23:40 +02:00
|
|
|
|
|
|
|
%check
|
2018-12-10 10:20:57 +01:00
|
|
|
make test
|
2007-09-18 16:41:53 +02:00
|
|
|
|
|
|
|
%install
|
2009-06-20 19:21:29 +02:00
|
|
|
%perl_make_install
|
2011-04-05 10:22:42 +02:00
|
|
|
%perl_process_packlist
|
2010-09-06 10:23:40 +02:00
|
|
|
%perl_gen_filelist
|
2010-08-25 09:14:07 +02:00
|
|
|
|
2010-09-06 10:23:40 +02:00
|
|
|
%files -f %{name}.files
|
2007-09-18 16:41:53 +02:00
|
|
|
%doc Changes README
|
|
|
|
|
2010-09-06 10:23:40 +02:00
|
|
|
%changelog
|