|
|
|
@ -1,14 +1,19 @@
|
|
|
|
|
# Perform optional tests
|
|
|
|
|
%bcond_without perl_JSON_PP_enables_optional_test
|
|
|
|
|
# Need to provide five digit version numbers until 3.x,
|
|
|
|
|
# so that BR: perl(JSON::PP) >= 2.27200 etc. will still work
|
|
|
|
|
%global our_version 2.97.001
|
|
|
|
|
%global five_digit_version 2.97001
|
|
|
|
|
|
|
|
|
|
# Need to tweak provides differently if we don't have rpm ≥ 4.9
|
|
|
|
|
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || echo 0)
|
|
|
|
|
|
|
|
|
|
Name: perl-JSON-PP
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 4.06
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: %{our_version}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: JSON::XS compatible pure-Perl module
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/JSON-PP
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/JSON/JSON-PP-%{version}.tar.gz
|
|
|
|
|
URL: http://search.cpan.org/dist/JSON-PP/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-PP-%{five_digit_version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
@ -35,17 +40,14 @@ BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Tie::Array)
|
|
|
|
|
BuildRequires: perl(Tie::Hash)
|
|
|
|
|
%if %{with perl_JSON_PP_enables_optional_test}
|
|
|
|
|
# Optional tests
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
# Disable non-core dependencies when bootstrapping a core module
|
|
|
|
|
# Disable non-core dependencies when bootstraping a core module
|
|
|
|
|
BuildRequires: perl(Tie::IxHash)
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
@ -56,6 +58,12 @@ Requires: perl(Scalar::Util) >= 1.08
|
|
|
|
|
Requires: perl(utf8)
|
|
|
|
|
Conflicts: perl-JSON < 2.50
|
|
|
|
|
|
|
|
|
|
# Provide the five-digit version of the module
|
|
|
|
|
%if "%{our_version}" != "%{five_digit_version}"
|
|
|
|
|
Provides: perl(JSON::PP) = %{five_digit_version}
|
|
|
|
|
%global __provides_exclude ^perl\\(JSON::PP\\)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
JSON::XS is the fastest and most proper JSON module on CPAN. It is written by
|
|
|
|
|
Marc Lehmann in C, so must be compiled and installed in the used environment.
|
|
|
|
@ -63,7 +71,15 @@ Marc Lehmann in C, so must be compiled and installed in the used environment.
|
|
|
|
|
JSON::PP is a pure-Perl module and is compatible with JSON::XS.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n JSON-PP-%{version}
|
|
|
|
|
%setup -q -n JSON-PP-%{five_digit_version}
|
|
|
|
|
|
|
|
|
|
# Don't provide less than five-digit version of the module (prior to rpm 4.9)
|
|
|
|
|
%if ! %{rpm49}
|
|
|
|
|
%if "%{our_version}" != "%{five_digit_version}"
|
|
|
|
|
%global perl_prov /bin/sh -c "%{__perl_provides} | sed -e '/^perl(JSON::PP)/d'"
|
|
|
|
|
%global __perl_provides %{perl_prov}
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
@ -86,85 +102,8 @@ make test
|
|
|
|
|
%{_mandir}/man3/JSON::PP::Boolean.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:4.06-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:4.06-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.06-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 24 2021 Paul Howarth <paul@city-fan.org> - 1:4.06-1
|
|
|
|
|
- Update to 4.06
|
|
|
|
|
- Fix return values of boolean_values for compatibility
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.05-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 9 2020 Paul Howarth <paul@city-fan.org> - 1:4.05-1
|
|
|
|
|
- Update to 4.05
|
|
|
|
|
- No code changes
|
|
|
|
|
- Modify tests for Perl 7
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.04-457
|
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.04-456
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.04-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.04-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 29 2019 Paul Howarth <paul@city-fan.org> - 1:4.04-1
|
|
|
|
|
- Update to 4.04
|
|
|
|
|
- Document indent_length option (GH#48)
|
|
|
|
|
|
|
|
|
|
* Wed Jun 19 2019 Paul Howarth <paul@city-fan.org> - 1:4.03-1
|
|
|
|
|
- Update to 4.03
|
|
|
|
|
- (Encode::)decode json_pp input properly by default (GH#47)
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.02-439
|
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.02-438
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Sat Feb 23 2019 Paul Howarth <paul@city-fan.org> - 1:4.02-1
|
|
|
|
|
- Update to 4.02
|
|
|
|
|
- Fix a test that breaks if perl is compiled with -Dquadmath (CPAN RT#128589)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 22 2019 Paul Howarth <paul@city-fan.org> - 1:4.01-1
|
|
|
|
|
- Update to 4.01
|
|
|
|
|
- Allow to pass indent_length to json_pp (GH#46)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.00-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Dec 7 2018 Paul Howarth <paul@city-fan.org> - 1:4.00-1
|
|
|
|
|
- Update to 4.00
|
|
|
|
|
- BACKWARD INCOMPATIBILITY: As JSON::XS 4.0 changed its policy and enabled
|
|
|
|
|
allow_nonref by default, JSON::PP also enabled allow_nonref by default
|
|
|
|
|
- Implement allow_tags that was introduced by JSON::XS 3.0
|
|
|
|
|
- Add boolean_values that was introduced by JSON::XS 4.0
|
|
|
|
|
- Allow literal tags in strings in relaxed mode, as JSON::XS 3.02 does
|
|
|
|
|
- Allow PERL_JSON_PP_USE_B environmental variable to restore old number
|
|
|
|
|
detection behavior for compatibility
|
|
|
|
|
- Various documentation updates
|
|
|
|
|
- Drop provides filter, no longer needed
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.97.001-418
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.97.001-417
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.97.001-416
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
* Thu Apr 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1:2.97.001-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.97.001-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|