3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: JSON - parse and convert to JSON (JavaScript Object Notation).
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/M/MA/MAKAMAKA/JSON-1.07.tar.gz
16 # Source0-md5: c7b385e35f37b4c8595c4f6e7eeb573e
17 URL: http://search.cpan.org/dist/JSON/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(HTTP::Request)
22 BuildRequires: perl(HTTP::Response)
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module converts between JSON (JavaScript Object Notation) and Perl
29 data structure into each other.
31 For JSON, See to http://www.crockford.com/JSON/.
33 # %description -l pl.UTF-8
37 %setup -q -n %{pdir}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/*.pm
59 %{perl_vendorlib}/Apache/*.pm
60 %{perl_vendorlib}/JSON/
61 %{perl_vendorlib}/JSONRPC/