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