%define cpan_name JSON-DWIW Name: perl-%cpan_name Version: 0.28 Release: 1 Provides: %cpan_name Group: Development/Libraries/Perl License: Artistic URL: http://search.cpan.org/dist/JSON-DWIW/ Summary: JSON converter that Does What I Want Source: %cpan_name-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl BuildRequires: perl-macros %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. %prep %setup -q -n %cpan_name-%{version} %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make %check #make test %install make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %clean # clean up the hard disc after build rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc %{_mandir}/man?/* %{perl_vendorarch}/JSON %{perl_vendorarch}/auto/JSON %doc WhatsNew README %changelog -n %{name} * Sun Oct 26 2008 - gerrit.beine@gmx.de - first release 0.27