2008-12-11 13:03:33 +00:00
|
|
|
%define cpan_name JSON-DWIW
|
|
|
|
|
|
|
|
Name: perl-%cpan_name
|
2008-12-23 16:33:38 +00:00
|
|
|
Version: 0.28
|
2008-12-11 13:03:33 +00:00
|
|
|
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
|
2010-12-03 14:39:24 +00:00
|
|
|
%{perl_requires}
|
2010-10-19 08:46:22 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:39:24 +00:00
|
|
|
BuildRequires: perl-macros
|
2008-12-11 13:03:33 +00:00
|
|
|
|
|
|
|
%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
|
2008-12-23 21:42:59 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
#make test
|
2008-12-11 13:03:33 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|