SHA256
8
0
forked from pool/perl-JSON
Files
perl-JSON/perl-JSON.spec

53 lines
1.1 KiB
RPMSpec
Raw Normal View History

%define modname JSON
Name: perl-%{modname}
Version: 1.14
Release: 1
Summary: Parse and Convert to JSON
Requires: perl = %{perl_version} perl-libwww-perl
BuildRequires: perl perl-libwww-perl
License: GPL/Artistic
Group: Development/Libraries/Perl
Source: %{modname}-%{version}.tar.bz2
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}
chmod a-x READM
%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}/Apache
%{perl_vendorlib}/JSON.pm
%{perl_vendorlib}/JSON
%{perl_vendorlib}/JSONRPC.pm
%{perl_vendorlib}/JSONRPC
%{perl_vendorarch}/auto/JSON
/var/adm/perl-modules/%{name}
%changelog
* Tue Sep 18 2007 - James Oakley <jfunk@funktronics.ca> - 1.14-1
- Initial release