Name: perl-CGI-Application-Plugin-JSON Version: 1.02 Release: 2%{?dist} Summary: Easy manipulation of JSON headers License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/CGI-Application-Plugin-JSON/ Source0: http://www.cpan.org/authors/id/W/WO/WONKO/CGI-Application-Plugin-JSON-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(CGI::Application) >= 4 BuildRequires: perl(JSON) >= 2.02 BuildRequires: perl(JSON::Any) >= 1.14 BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) Requires: perl(CGI::Application) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description When communicating with client-side JavaScript, it is common to send data in X-JSON HTTP headers or through the document body as content-type application/json. This CGI::Application plugin adds a couple of convenience methods to make that just a little bit easier. %prep %setup -q -n CGI-Application-Plugin-JSON-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Nov 08 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 1.02-2 - Fix spec file per review * Mon Oct 04 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> 1.02-1 - Specfile autogenerated by cpanspec 1.78.