|
|
@ -8,8 +8,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-JSON-MaybeXS
|
|
|
|
Name: perl-JSON-MaybeXS
|
|
|
|
Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
|
|
|
|
Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
|
|
|
|
Version: 1.003008
|
|
|
|
Version: 1.003009
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/JSON-MaybeXS/
|
|
|
|
URL: http://search.cpan.org/dist/JSON-MaybeXS/
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/JSON-MaybeXS-%{version}.tar.gz
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/JSON-MaybeXS-%{version}.tar.gz
|
|
|
@ -46,11 +46,11 @@ This module first checks to see if either Cpanel::JSON::XS or JSON::XS
|
|
|
|
is already loaded, in which case it uses that module. Otherwise it tries
|
|
|
|
is already loaded, in which case it uses that module. Otherwise it tries
|
|
|
|
to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and
|
|
|
|
to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and
|
|
|
|
either uses the first module it finds or throws an error.
|
|
|
|
either uses the first module it finds or throws an error.
|
|
|
|
|
|
|
|
|
|
|
|
It then exports the "encode_json" and "decode_json" functions from the
|
|
|
|
It then exports the "encode_json" and "decode_json" functions from the
|
|
|
|
loaded module, along with a "JSON" constant that returns the class name
|
|
|
|
loaded module, along with a "JSON" constant that returns the class name
|
|
|
|
for calling "new" on.
|
|
|
|
for calling "new" on.
|
|
|
|
|
|
|
|
|
|
|
|
If you're writing fresh code rather than replacing JSON.pm usage, you
|
|
|
|
If you're writing fresh code rather than replacing JSON.pm usage, you
|
|
|
|
might want to pass options as constructor args rather than calling
|
|
|
|
might want to pass options as constructor args rather than calling
|
|
|
|
mutators, so we provide our own "new" method that supports that.
|
|
|
|
mutators, so we provide our own "new" method that supports that.
|
|
|
@ -65,7 +65,7 @@ make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
make test
|
|
|
@ -76,6 +76,10 @@ make test
|
|
|
|
%{_mandir}/man3/JSON::MaybeXS.3*
|
|
|
|
%{_mandir}/man3/JSON::MaybeXS.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Feb 27 2017 Paul Howarth <paul@city-fan.org> - 1.003009-1
|
|
|
|
|
|
|
|
- Update to 1.003009
|
|
|
|
|
|
|
|
- Fix tests to no longer rely on . being in @INC (CPAN RT#120404)
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.003008-2
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.003008-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|