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