%define upstream_name JSON-DWIW %define upstream_version 0.47 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 4 Summary: Return a true or false value when License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl-devel %description Other JSON modules require setting several parameters before calling the conversion methods to do what I want. This module does things by default that I think should be done when working with JSON in Perl. This module also encodes and decodes faster than JSON.pm and JSON::Syck in my benchmarks. This means that any piece of data in Perl (assuming it's valid unicode) will get converted to something in JSON instead of throwing an exception. It also means that output will be strict JSON, while accepted input will be flexible, without having to set any options. Encoding Perl objects get encoded as their underlying data structure, with the exception of Math::BigInt and Math::BigFloat, which will be output as numbers, and JSON::DWIW::Boolean, which will get output as a true or false value (see the true() and false() methods). For example, a blessed hash ref will be represented as an object in JSON, a blessed array will be represented as an array. etc. A reference to a scalar is dereferenced and represented as the scalar itself. Globs, Code refs, etc., get stringified, and undef becomes null. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc README META.yml %{_mandir}/man3/* %perl_vendorarch/JSON %perl_vendorarch/auto/JSON %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.470.0-4.mga3 + Revision: 368763 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed May 30 2012 jquelin <jquelin> 0.470.0-3.mga3 + Revision: 250794 - rebuild for perl 5.16 * Sun Jun 12 2011 sander85 <sander85> 0.470.0-2.mga2 + Revision: 104713 - Rebuild for perl 5.14 * Fri Jan 21 2011 jquelin <jquelin> 0.470.0-1.mga1 + Revision: 30634 - mageia rebuild - imported package perl-JSON-DWIW