Compare commits

..

No commits in common. 'c9' and 'c8-stream-5.24' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/JSON-PP-4.06.tar.gz SOURCES/JSON-PP-2.94.tar.gz

@ -1 +1 @@
25f88e1eddb17a2082c83105a8fff3a3ad310bdb SOURCES/JSON-PP-4.06.tar.gz aec9fea13e2e5ab60b73e4cbd38eaacbf8c42007 SOURCES/JSON-PP-2.94.tar.gz

@ -1,21 +1,24 @@
# Perform optional tests # Need to stick with five digit version numbers until 3.x, to maintain upgrade path
%bcond_without perl_JSON_PP_enables_optional_test %global cpan_version 2.94
%global five_digit_version %(LC_ALL=C; printf '%.5f' '%{cpan_version}')
# 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 Name: perl-JSON-PP
Epoch: 1 Version: %{five_digit_version}
Version: 4.06 Release: 1%{?dist}
Release: 4%{?dist}
Summary: JSON::XS compatible pure-Perl module Summary: JSON::XS compatible pure-Perl module
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/JSON-PP URL: http://search.cpan.org/dist/JSON-PP/
Source0: https://cpan.metacpan.org/modules/by-module/JSON/JSON-PP-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-PP-%{cpan_version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Module Build # Module Build
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(lib) BuildRequires: perl(lib)
# Module Runtime # Module Runtime
@ -35,17 +38,14 @@ BuildRequires: perl(warnings)
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Getopt::Long) BuildRequires: perl(Getopt::Long)
# Test Suite # Test Suite
BuildRequires: perl(Test)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Array) BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::Hash)
%if %{with perl_JSON_PP_enables_optional_test}
# Optional tests # Optional tests
%if !%{defined perl_bootstrap} %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) BuildRequires: perl(Tie::IxHash)
%endif %endif
%endif
# Runtime # Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Data::Dumper) Requires: perl(Data::Dumper)
@ -56,6 +56,12 @@ Requires: perl(Scalar::Util) >= 1.08
Requires: perl(utf8) Requires: perl(utf8)
Conflicts: perl-JSON < 2.50 Conflicts: perl-JSON < 2.50
# Provide the five-digit version of the module
%if "%{cpan_version}" != "%{five_digit_version}"
Provides: perl(JSON::PP) = %{five_digit_version}
%global __provides_exclude ^perl\\(JSON::PP\\)
%endif
%description %description
JSON::XS is the fastest and most proper JSON module on CPAN. It is written by 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. Marc Lehmann in C, so must be compiled and installed in the used environment.
@ -63,7 +69,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. JSON::PP is a pure-Perl module and is compatible with JSON::XS.
%prep %prep
%setup -q -n JSON-PP-%{version} %setup -q -n JSON-PP-%{cpan_version}
# Don't provide less than five-digit version of the module (prior to rpm 4.9)
%if ! %{rpm49}
%if "%{cpan_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 %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
@ -86,117 +100,6 @@ make test
%{_mandir}/man3/JSON::PP::Boolean.3* %{_mandir}/man3/JSON::PP::Boolean.3*
%changelog %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 Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.97.001-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Dec 22 2017 Paul Howarth <paul@city-fan.org> - 1:2.97.001-1
- Update to 2.97001
- Tweak internal number detector always to consider a flagged value as a
string (GH#35)
- Clarify json_pp options (CPAN RT#123766)
* Tue Nov 21 2017 Paul Howarth <paul@city-fan.org> - 1:2.97-1
- Update to 2.97000
- Fix is_bool to use blessed() instead of ref()
- Use 5 digit minor version number for a while to avoid confusion (GH#33)
- Stick to 2 digit minor version downstream as we already bumped epoch
* Mon Nov 20 2017 Paul Howarth <paul@city-fan.org> - 1:2.96-1
- Update to 2.96
- json_pp now prints an encoded json string (CPAN RT#123653)
- Fix is_bool to use ->isa("JSON::PP::Boolean"), instead of
UNIVERSAL::isa("JSON::PP::Boolean") (GH#34)
- Avoid use of newer Test::More features (CPAN RT#122421)
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.94-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.94-3
- Perl 5.26 re-rebuild of bootstrapped packages
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.94-2
- Perl 5.26 rebuild
* Mon May 29 2017 Paul Howarth <paul@city-fan.org> - 2.94000-1 * Mon May 29 2017 Paul Howarth <paul@city-fan.org> - 2.94000-1
- Update to 2.94 - Update to 2.94
- Fix a test to support perl 5.6 - Fix a test to support perl 5.6

Loading…
Cancel
Save