diff --git a/JSON-PP-4.07.tar.gz b/JSON-PP-4.07.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..62e4040b36610e1684f8b5624bee31337731d12a Binary files /dev/null and b/JSON-PP-4.07.tar.gz differ diff --git a/perl-JSON-PP.spec b/perl-JSON-PP.spec new file mode 100644 index 0000000000000000000000000000000000000000..8fe15a86cf518760ad8555e6bb381a90331797cc --- /dev/null +++ b/perl-JSON-PP.spec @@ -0,0 +1,94 @@ +%define anolis_release 1 + +# Perform optional tests +%bcond_without perl_JSON_PP_enables_optional_test + +Name: perl-JSON-PP +Epoch: 1 +Version: 4.07 +Release: %{anolis_release}%{?dist} +Summary: JSON::XS compatible pure-Perl module +License: GPL+ or Artistic +URL: https://metacpan.org/release/JSON-PP +Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-PP-%{version}.tar.gz + + +BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(lib) +# Module Runtime +BuildRequires: perl(bytes) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Encode) +BuildRequires: perl(Exporter) +BuildRequires: perl(Math::BigFloat) +BuildRequires: perl(Math::BigInt) +BuildRequires: perl(overload) +BuildRequires: perl(Scalar::Util) >= 1.08 +BuildRequires: perl(strict) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +# Script Runtime +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 +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) +Requires: perl(Math::BigInt) +Requires: perl(Scalar::Util) >= 1.08 +Requires: perl(utf8) +Conflicts: perl-JSON < 2.50 + +%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. + +JSON::PP is a pure-Perl module and is compatible with JSON::XS. + +%prep +%setup -q -n JSON-PP-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} + +%check +make test + +%files +%doc Changes README +%{_bindir}/json_pp +%{perl_vendorlib}/JSON/ +%{_mandir}/man1/json_pp.1* +%{_mandir}/man3/JSON::PP.3* +%{_mandir}/man3/JSON::PP::Boolean.3* + +%changelog +* Wed Apr 20 2022 zhang xianting - 4.07-1 +- Initial build for Anolis V23