forked from pool/perl-JSON-RPC
55 lines
1.6 KiB
RPMSpec
55 lines
1.6 KiB
RPMSpec
![]() |
%define _real_name JSON-RPC
|
||
|
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
|
||
|
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
||
|
|
||
|
Summary: Perl implementation of JSON-RPC 1.1 protocol
|
||
|
Name: perl-JSON-RPC
|
||
|
Version: 0.96
|
||
|
Release: 1
|
||
|
License: GPL
|
||
|
BuildRequires: perl-JSON perl-libwww-perl
|
||
|
Requires: perl-JSON perl-libwww-perl
|
||
|
Group: Applications/CPAN
|
||
|
Packager: jw@suse.de
|
||
|
URL: http://search.cpan.org/perldoc?JSON::RPC
|
||
|
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-RPC-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||
|
|
||
|
%description
|
||
|
JSON-RPC is a stateless and light-weight remote procedure call (RPC)
|
||
|
protocol for inter-networking applications over HTTP. It uses JSON
|
||
|
as the data format for of all facets of a remote procedure call,
|
||
|
including all application data carried in parameters.
|
||
|
|
||
|
The old modules - JSONRPC::Transport::HTTP and Apache::JSONRPC are deprecated. Please try to use JSON::RPC::Server and JSON::RPC::Client which support both JSON-RPC protocol version 1.1 and 1.0.
|
||
|
|
||
|
%prep
|
||
|
%setup -n %{_real_name}-%{version}
|
||
|
|
||
|
%build
|
||
|
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
|
||
|
%{__make}
|
||
|
%{__make} test
|
||
|
|
||
|
%install
|
||
|
%{__rm} -rf %{buildroot}
|
||
|
%{__make} install
|
||
|
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod
|
||
|
find %{buildroot} -name .packlist -exec %{__rm} {} \;
|
||
|
|
||
|
%clean
|
||
|
%{__rm} -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root, 0755)
|
||
|
%{_mandir}/man3/*.gz
|
||
|
%dir %{perl_vendorlib}/JSON/
|
||
|
%{perl_vendorlib}/JSON/*
|
||
|
%{perl_vendorlib}/*.pm
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Fri May 1 2009 - jw@suse.de
|
||
|
- Initial package 0.96
|