Compare commits
No commits in common. "c8-stream-5.3" and "c8-beta" have entirely different histories.
c8-stream-
...
c8-beta
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/JSON-PP-4.04.tar.gz
|
||||
SOURCES/JSON-PP-2.97001.tar.gz
|
||||
|
@ -1 +1 @@
|
||||
f0a1ba2308bb0908881142aaf66b92f67b3a9682 SOURCES/JSON-PP-4.04.tar.gz
|
||||
7f047eee2dfefdeefeaa102500442ffa820d9d5e SOURCES/JSON-PP-2.97001.tar.gz
|
||||
|
@ -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.04
|
||||
Release: 2%{?dist}
|
||||
Version: %{our_version}
|
||||
Release: 3%{?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,54 +102,8 @@ make test
|
||||
%{_mandir}/man3/JSON::PP::Boolean.3*
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
* Fri Jun 08 2018 Petr Pisar <ppisar@redhat.com> - 1:2.97.001-3
|
||||
- Use perl-interpreter on RHEL
|
||||
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user