Update to 1.003009

- New upstream release 1.003009
  - Fix tests to no longer rely on . being in @INC (CPAN RT#120404)
This commit is contained in:
Paul Howarth 2017-02-27 10:29:32 +00:00
parent 885b61040e
commit ea5b85c056
2 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -1 +1 @@
5fc1cd29d699dbad7f41e05ccd14118d JSON-MaybeXS-1.003008.tar.gz SHA512 (JSON-MaybeXS-1.003009.tar.gz) = a8606ccaac749650004d70bd5d6219fb18f66c4c86f720bbec3daf21a15bacd17d308c2a394fb1c9f6584be4d7c519cbc8653bdf5c7c7fa4129b75261645d8e3