ea0ea1
# Perform optional tests
ea0ea1
%bcond_without perl_JSON_PP_enables_optional_test
ea0ea1
ea0ea1
Name:		perl-JSON-PP
ea0ea1
Epoch:		1
ea0ea1
Version:	4.04
ea0ea1
Release:	2%{?dist}
ea0ea1
Summary:	JSON::XS compatible pure-Perl module
ea0ea1
License:	GPL+ or Artistic
ea0ea1
URL:		https://metacpan.org/release/JSON-PP
ea0ea1
Source0:	https://cpan.metacpan.org/modules/by-module/JSON/JSON-PP-%{version}.tar.gz
ea0ea1
BuildArch:	noarch
ea0ea1
# Module Build
ea0ea1
BuildRequires:	coreutils
ea0ea1
BuildRequires:	findutils
ea0ea1
BuildRequires:	make
ea0ea1
BuildRequires:	perl-generators
ea0ea1
BuildRequires:	perl-interpreter
ea0ea1
BuildRequires:	perl(ExtUtils::MakeMaker)
ea0ea1
BuildRequires:	perl(lib)
ea0ea1
# Module Runtime
ea0ea1
BuildRequires:	perl(bytes)
ea0ea1
BuildRequires:	perl(Carp)
ea0ea1
BuildRequires:	perl(constant)
ea0ea1
BuildRequires:	perl(Encode)
ea0ea1
BuildRequires:	perl(Exporter)
ea0ea1
BuildRequires:	perl(Math::BigFloat)
ea0ea1
BuildRequires:	perl(Math::BigInt)
ea0ea1
BuildRequires:	perl(overload)
ea0ea1
BuildRequires:	perl(Scalar::Util) >= 1.08
ea0ea1
BuildRequires:	perl(strict)
ea0ea1
BuildRequires:	perl(utf8)
ea0ea1
BuildRequires:	perl(warnings)
ea0ea1
# Script Runtime
ea0ea1
BuildRequires:	perl(Data::Dumper)
ea0ea1
BuildRequires:	perl(Getopt::Long)
ea0ea1
# Test Suite
ea0ea1
BuildRequires:	perl(Test)
ea0ea1
BuildRequires:	perl(Test::More)
ea0ea1
BuildRequires:	perl(Tie::Array)
ea0ea1
BuildRequires:	perl(Tie::Hash)
ea0ea1
%if %{with perl_JSON_PP_enables_optional_test}
ea0ea1
# Optional tests
ea0ea1
%if !%{defined perl_bootstrap}
ea0ea1
# Disable non-core dependencies when bootstrapping a core module
ea0ea1
BuildRequires:	perl(Tie::IxHash)
ea0ea1
%endif
ea0ea1
%endif
ea0ea1
# Runtime
ea0ea1
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
ea0ea1
Requires:	perl(Data::Dumper)
ea0ea1
Requires:	perl(Encode)
ea0ea1
Requires:	perl(Math::BigFloat)
ea0ea1
Requires:	perl(Math::BigInt)
ea0ea1
Requires:	perl(Scalar::Util) >= 1.08
ea0ea1
Requires:	perl(utf8)
ea0ea1
Conflicts:	perl-JSON < 2.50
ea0ea1
ea0ea1
%description
ea0ea1
JSON::XS is the fastest and most proper JSON module on CPAN. It is written by
ea0ea1
Marc Lehmann in C, so must be compiled and installed in the used environment.
ea0ea1
ea0ea1
JSON::PP is a pure-Perl module and is compatible with JSON::XS.
ea0ea1
ea0ea1
%prep
ea0ea1
%setup -q -n JSON-PP-%{version}
ea0ea1
ea0ea1
%build
ea0ea1
perl Makefile.PL INSTALLDIRS=vendor
ea0ea1
make %{?_smp_mflags}
ea0ea1
ea0ea1
%install
ea0ea1
make pure_install DESTDIR=%{buildroot}
ea0ea1
find %{buildroot} -type f -name .packlist -delete
ea0ea1
%{_fixperms} -c %{buildroot}
ea0ea1
ea0ea1
%check
ea0ea1
make test
ea0ea1
ea0ea1
%files
ea0ea1
%doc Changes README
ea0ea1
%{_bindir}/json_pp
ea0ea1
%{perl_vendorlib}/JSON/
ea0ea1
%{_mandir}/man1/json_pp.1*
ea0ea1
%{_mandir}/man3/JSON::PP.3*
ea0ea1
%{_mandir}/man3/JSON::PP::Boolean.3*
ea0ea1
ea0ea1
%changelog
ea0ea1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.04-2
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ea0ea1
ea0ea1
* Sat Jun 29 2019 Paul Howarth <paul@city-fan.org> - 1:4.04-1
ea0ea1
- Update to 4.04
ea0ea1
  - Document indent_length option (GH#48)
ea0ea1
ea0ea1
* Wed Jun 19 2019 Paul Howarth <paul@city-fan.org> - 1:4.03-1
ea0ea1
- Update to 4.03
ea0ea1
  - (Encode::)decode json_pp input properly by default (GH#47)
ea0ea1
ea0ea1
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.02-439
ea0ea1
- Perl 5.30 re-rebuild of bootstrapped packages
ea0ea1
ea0ea1
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.02-438
ea0ea1
- Increase release to favour standalone package
ea0ea1
ea0ea1
* Sat Feb 23 2019 Paul Howarth <paul@city-fan.org> - 1:4.02-1
ea0ea1
- Update to 4.02
ea0ea1
  - Fix a test that breaks if perl is compiled with -Dquadmath (CPAN RT#128589)
ea0ea1
ea0ea1
* Fri Feb 22 2019 Paul Howarth <paul@city-fan.org> - 1:4.01-1
ea0ea1
- Update to 4.01
ea0ea1
  - Allow to pass indent_length to json_pp (GH#46)
ea0ea1
ea0ea1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.00-2
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ea0ea1
ea0ea1
* Fri Dec  7 2018 Paul Howarth <paul@city-fan.org> - 1:4.00-1
ea0ea1
- Update to 4.00
ea0ea1
  - BACKWARD INCOMPATIBILITY: As JSON::XS 4.0 changed its policy and enabled
ea0ea1
    allow_nonref by default, JSON::PP also enabled allow_nonref by default
ea0ea1
  - Implement allow_tags that was introduced by JSON::XS 3.0
ea0ea1
  - Add boolean_values that was introduced by JSON::XS 4.0
ea0ea1
  - Allow literal tags in strings in relaxed mode, as JSON::XS 3.02 does
ea0ea1
  - Allow PERL_JSON_PP_USE_B environmental variable to restore old number
ea0ea1
    detection behavior for compatibility
ea0ea1
  - Various documentation updates
ea0ea1
- Drop provides filter, no longer needed
ea0ea1
ea0ea1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.97.001-418
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ea0ea1
ea0ea1
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.97.001-417
ea0ea1
- Perl 5.28 re-rebuild of bootstrapped packages
ea0ea1
ea0ea1
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.97.001-416
ea0ea1
- Increase release to favour standalone package
ea0ea1
ea0ea1
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.97.001-2
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ea0ea1
ea0ea1
* Fri Dec 22 2017 Paul Howarth <paul@city-fan.org> - 1:2.97.001-1
ea0ea1
- Update to 2.97001
ea0ea1
  - Tweak internal number detector always to consider a flagged value as a
ea0ea1
    string (GH#35)
ea0ea1
  - Clarify json_pp options (CPAN RT#123766)
ea0ea1
ea0ea1
* Tue Nov 21 2017 Paul Howarth <paul@city-fan.org> - 1:2.97-1
ea0ea1
- Update to 2.97000
ea0ea1
  - Fix is_bool to use blessed() instead of ref()
ea0ea1
  - Use 5 digit minor version number for a while to avoid confusion (GH#33)
ea0ea1
- Stick to 2 digit minor version downstream as we already bumped epoch
ea0ea1
ea0ea1
* Mon Nov 20 2017 Paul Howarth <paul@city-fan.org> - 1:2.96-1
ea0ea1
- Update to 2.96
ea0ea1
  - json_pp now prints an encoded json string (CPAN RT#123653)
ea0ea1
  - Fix is_bool to use ->isa("JSON::PP::Boolean"), instead of
ea0ea1
    UNIVERSAL::isa("JSON::PP::Boolean") (GH#34)
ea0ea1
  - Avoid use of newer Test::More features (CPAN RT#122421)
ea0ea1
ea0ea1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.94-4
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ea0ea1
ea0ea1
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.94-3
ea0ea1
- Perl 5.26 re-rebuild of bootstrapped packages
ea0ea1
ea0ea1
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.94-2
ea0ea1
- Perl 5.26 rebuild
ea0ea1
ea0ea1
* Mon May 29 2017 Paul Howarth <paul@city-fan.org> - 2.94000-1
ea0ea1
- Update to 2.94
ea0ea1
  - Fix a test to support perl 5.6
ea0ea1
ea0ea1
* Wed May 17 2017 Paul Howarth <paul@city-fan.org> - 2.93000-1
ea0ea1
- Update to 2.93
ea0ea1
  - Changed the number detection logic (experimental)
ea0ea1
  - Correct 0 handling (GH#23)
ea0ea1
  - Removed base.pm dependency (GH#5)
ea0ea1
  - Fixed wrong character offset (CPAN RT#116998)
ea0ea1
  - Address VAX issues (CPAN RT#118469)
ea0ea1
  - Various documentation fixes
ea0ea1
  - Remove . in @INC in json_pp (GH#25, CVE-2016-1238)
ea0ea1
  - Removed $VAR1 from json_pp output (GH#11)
ea0ea1
  - Fixed an issue to ignore trailing 0 (GH#29)
ea0ea1
  - Added Scalar::Util dependency for Perl 5.8+ (CPAN RT#84347)
ea0ea1
  - Fixed issues spotted by Nicolas Seriot's JSON Test Suite including
ea0ea1
    experimental UTF-16/32 support and backward incompatible change of
ea0ea1
    C style comment handling (now disabled by default) (GH#28)
ea0ea1
  - Moved the guts of JSON::PP::Boolean into lib/JSON/PP/Boolean.pm and gave
ea0ea1
    it a proper version
ea0ea1
  - Refactored incremental parser to let it handle incomplete JSON text
ea0ea1
    properly
ea0ea1
  - Imported and tweaked tests from JSON.pm
ea0ea1
  - Minor code clean up
ea0ea1
  - Fixed not to fail tests under Perl 5.25.* (CPAN RT#119114)
ea0ea1
  - Reworked documentation, based on the one for JSON::XS
ea0ea1
  - Let json_pp utility show the version of JSON::PP
ea0ea1
  - Fix loading order of B module (GH#31)
ea0ea1
  - Fixed isa tests for bignum
ea0ea1
- This release by ISHIGAKI → update source URL
ea0ea1
- Use five-digit version number for rpm to maintain upgrade path
ea0ea1
- Drop EL-5 support
ea0ea1
  - Drop BuildRoot: and Group: tags
ea0ea1
  - Drop explicit buildroot cleaning in %%install section
ea0ea1
  - Drop explicit %%clean section
ea0ea1
ea0ea1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.27400-5
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ea0ea1
ea0ea1
* Tue Aug 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.27400-4
ea0ea1
- Avoid loading optional modules from default . (CVE-2016-1238)
ea0ea1
ea0ea1
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.27400-3
ea0ea1
- Perl 5.24 re-rebuild of bootstrapped packages
ea0ea1
ea0ea1
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.27400-2
ea0ea1
- Perl 5.24 rebuild
ea0ea1
ea0ea1
* Mon Apr 25 2016 Paul Howarth <paul@city-fan.org> - 2.27400-1
ea0ea1
- Update to 2.27400
ea0ea1
  - Applied and merged long term neglected patches and pull requests
ea0ea1
  - Modified Makefile.PL to set UNINST=1 if needed on old perls
ea0ea1
  - Decode decimals to Perl's internal NV type
ea0ea1
- Simplify find command using -delete
ea0ea1
ea0ea1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.27300-348
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ea0ea1
ea0ea1
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27300-347
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ea0ea1
ea0ea1
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27300-346
ea0ea1
- Perl 5.22 re-rebuild of bootstrapped packages
ea0ea1
ea0ea1
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27300-345
ea0ea1
- Increase release to favour standalone package
ea0ea1
ea0ea1
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27300-3
ea0ea1
- Perl 5.22 rebuild
ea0ea1
ea0ea1
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 2.27300-2
ea0ea1
- Disable non-core dependencies when bootstraping a core module
ea0ea1
ea0ea1
* Wed Oct  8 2014 Paul Howarth <paul@city-fan.org> - 2.27300-1
ea0ea1
- Update to 2.27300
ea0ea1
  - Fixed a problem about substr in perl 5.8.6 and below
ea0ea1
- Classify buildreqs by usage
ea0ea1
ea0ea1
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.27203-310
ea0ea1
- Increase release to favour standalone package
ea0ea1
ea0ea1
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.27203-3
ea0ea1
- Perl 5.20 rebuild
ea0ea1
ea0ea1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27203-2
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ea0ea1
ea0ea1
* Fri Oct 18 2013 Paul Howarth <paul@city-fan.org> - 2.27203-1
ea0ea1
- Update to 2.27203
ea0ea1
  - Fixed return/or in _incr_parse (CPAN RT#86948)
ea0ea1
- Specify all dependencies
ea0ea1
ea0ea1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27202-291
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ea0ea1
ea0ea1
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.27202-290
ea0ea1
- Increase release to favour standalone package
ea0ea1
ea0ea1
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.27202-2
ea0ea1
- Perl 5.18 rebuild
ea0ea1
ea0ea1
* Wed Mar 13 2013 Paul Howarth <paul@city-fan.org> - 2.27202-1
ea0ea1
- Update to 2.27202
ea0ea1
  - Fix test failures due to hash iterator randomization in perl 5.17.6 onwards
ea0ea1
    (CPAN RT#83421)
ea0ea1
ea0ea1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27200-243
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ea0ea1
ea0ea1
* Mon Nov 19 2012 Petr Šabata <contyk@redhat.com> - 2.27200-242
ea0ea1
- Correct the URL
ea0ea1
- Add a few missing buildtime dependencies
ea0ea1
- Drop Getopt::Long dep; json_pp isn't tested
ea0ea1
ea0ea1
* Tue Aug 28 2012 Paul Howarth <paul@city-fan.org> - 2.27200-241
ea0ea1
- BR: perl(base), perl(constant) and perl(lib)
ea0ea1
- Install to vendor directories
ea0ea1
- Drop %%defattr, redundant since rpm 4.4
ea0ea1
- Don't need to remove empty directories from the buildroot
ea0ea1
ea0ea1
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-240
ea0ea1
- Increase release to replace perl sub-package (bug #848961)
ea0ea1
ea0ea1
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27200-6
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ea0ea1
ea0ea1
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-5
ea0ea1
- Perl 5.16 rebuild
ea0ea1
ea0ea1
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-4
ea0ea1
- Depend of Data::Dumper
ea0ea1
ea0ea1
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 2.27200-3
ea0ea1
- Add buildreqs for perl core modules, which might be dual-lived
ea0ea1
ea0ea1
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.27200-2
ea0ea1
- Perl mass rebuild
ea0ea1
ea0ea1
* Sun May 22 2011 Paul Howarth <paul@city-fan.org> - 2.27200-1
ea0ea1
- Update to 2.27200
ea0ea1
  - Fixed incr_parse decoding string more correctly (CPAN RT#68032)
ea0ea1
ea0ea1
* Tue Mar  8 2011 Paul Howarth <paul@city-fan.org> - 2.27105-1
ea0ea1
- Update to 2.27105
ea0ea1
  - Removed t/900_pod.t from package because of author test
ea0ea1
- Drop buildreq perl(Test::Pod), no longer needed
ea0ea1
ea0ea1
* Tue Feb  8 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27104-4
ea0ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ea0ea1
ea0ea1
* Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> - 2.27104-3
ea0ea1
- Conflict with perl-JSON < 2.50 (#672764)
ea0ea1
ea0ea1
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 2.27104-2
ea0ea1
- Sanitize for Fedora submission
ea0ea1
ea0ea1
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 2.27104-1
ea0ea1
- Initial RPM version