|
|
|
@ -3,10 +3,10 @@
|
|
|
|
|
|
|
|
|
|
Name: perl-JSON-PP
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 4.06
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 4.16
|
|
|
|
|
Release: 511%{?dist}
|
|
|
|
|
Summary: JSON::XS compatible pure-Perl module
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/JSON-PP
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/JSON/JSON-PP-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -35,19 +35,22 @@ BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
BuildRequires: perl(charnames)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Tie::Array)
|
|
|
|
|
BuildRequires: perl(Tie::Hash)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
# Optional Tests
|
|
|
|
|
%if %{with perl_JSON_PP_enables_optional_test}
|
|
|
|
|
# Optional tests
|
|
|
|
|
# Note: t/rt_122270_old_xs_boolean.t is testing for compatibility with old
|
|
|
|
|
# versions of JSON:XS and Types::Serialiser that we no longer use, so we
|
|
|
|
|
# don't include those modules as optional test dependencies
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
# Disable non-core dependencies when bootstrapping a core module
|
|
|
|
|
BuildRequires: perl(Tie::IxHash)
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(Encode)
|
|
|
|
|
Requires: perl(Math::BigFloat)
|
|
|
|
@ -62,8 +65,22 @@ 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.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n JSON-PP-%{version}
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
@ -73,6 +90,14 @@ make %{?_smp_mflags}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
@ -85,13 +110,103 @@ make test
|
|
|
|
|
%{_mandir}/man3/JSON::PP.3*
|
|
|
|
|
%{_mandir}/man3/JSON::PP::Boolean.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%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 Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.16-511
|
|
|
|
|
- Perl 5.40 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.16-510
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Thu Jul 11 2024 Michal Josef Špaček <mspacek@redhat.com> - 1:4.16-505
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:4.16-504
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.16-503
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.16-502
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.16-501
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.16-500
|
|
|
|
|
- Perl 5.38 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.16-499
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.16-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Dec 30 2022 Paul Howarth <paul@city-fan.org> - 1:4.16-1
|
|
|
|
|
- Update to 4.16
|
|
|
|
|
- Drop support for perls < 5.8 (GH#84)
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Tue Dec 27 2022 Paul Howarth <paul@city-fan.org> - 1:4.15-1
|
|
|
|
|
- Update to 4.15
|
|
|
|
|
- Fix core bool test to not ignore errors (GH#82)
|
|
|
|
|
|
|
|
|
|
* Mon Dec 26 2022 Paul Howarth <paul@city-fan.org> - 1:4.14-1
|
|
|
|
|
- Update to 4.14
|
|
|
|
|
- Break up 099_binary.t into 16 pieces that can be tested in parallel (GH#80)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 10 2022 Paul Howarth <paul@city-fan.org> - 1:4.12-1
|
|
|
|
|
- Update to 4.12
|
|
|
|
|
- Call unimport overload first to silence warnings (GH#76)
|
|
|
|
|
- Use SPDX-format license tag
|
|
|
|
|
|
|
|
|
|
* Sun Jul 31 2022 Paul Howarth <paul@city-fan.org> - 1:4.11-1
|
|
|
|
|
- Update to 4.11
|
|
|
|
|
- Restored core boolean support (GH#73, GH#74)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.10-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 24 2022 Paul Howarth <paul@city-fan.org> - 1:4.10-1
|
|
|
|
|
- Update to 4.10
|
|
|
|
|
- Fix a regression of decode_error introduced at 4.08 (GH#75)
|
|
|
|
|
- Convert all tests to use Test::More (GH#70)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.09-3
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.09-2
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Sun May 22 2022 Paul Howarth <paul@city-fan.org> - 1:4.09-1
|
|
|
|
|
- Update to 4.09
|
|
|
|
|
- Reverted core boolean support for now (GH#72)
|
|
|
|
|
- Fix incr_parse() hanging on certain inputs (GH#67)
|
|
|
|
|
- Silence warnings about non-characters on older perls (GH#68)
|
|
|
|
|
|
|
|
|
|
* Mon Apr 11 2022 Paul Howarth <paul@city-fan.org> - 1:4.08-1
|
|
|
|
|
- Update to 4.08
|
|
|
|
|
- Remove unneeded utf8::upgrade and downgrade (GH#59)
|
|
|
|
|
- Core boolean support (GH#62, GH#63)
|
|
|
|
|
- EBCDIC support (GH#64)
|
|
|
|
|
- Shorten a test name (GH#65)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.07-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Dec 18 2021 Paul Howarth <paul@city-fan.org> - 1:4.07-1
|
|
|
|
|
- Update to 4.07
|
|
|
|
|
- Fix incr_parse($unicode_str) bug (GH#56)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.06-479
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.06-478
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:4.06-477
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.06-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|