A new user interface for you! Read more...

File perl-JSON.spec of Package perl-JSON

%define modname	JSON
Name:           perl-%{modname}
Version:        2.12
Release:        1
Summary:        Parse and Convert to JSON
Requires:       perl = %{perl_version} perl-JSON-XS
BuildRequires:  perl perl-JSON-XS perl-Test-Pod
License:        GPL/Artistic
Group:          Development/Libraries/Perl
Source:         %{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-root

%description
This module converts between JSON (JavaScript Object Notation) and Perl data
structures.

Authors:
--------
    Makamaka Hannyaharamitu <makamaka[at]cpan.org>

%prep
%setup -q -n %{modname}-%{version}

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc Changes README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/JSON.pm
%{perl_vendorlib}/JSON
%{perl_vendorarch}/auto/JSON
/var/adm/perl-modules/%{name}

%changelog
* Sun Oct 27 2008 - gerrit.beine@gmx.de
- update to 2.12
* Tue Sep 18 2007 - James Oakley <jfunk@funktronics.ca> - 1.14-1
- Initial release