2009-08-07 13:26:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-JSON-RPC
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-JSON-RPC
|
|
|
|
Summary: Perl implementation of JSON-RPC 1.1 protocol
|
|
|
|
%define _real_name JSON-RPC
|
|
|
|
Version: 0.96
|
|
|
|
Release: 1
|
|
|
|
License: Artistic License
|
|
|
|
BuildRequires: perl-JSON perl-libwww-perl
|
|
|
|
Requires: perl-JSON perl-libwww-perl
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/perldoc?JSON::RPC
|
|
|
|
Source: %{_real_name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-07 13:17:06 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2009-08-07 13:26:28 +00:00
|
|
|
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.
|
2009-08-07 13:17:06 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n %{_real_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
|
2009-08-07 13:26:28 +00:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%check
|
2009-08-07 13:17:06 +00:00
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
2009-08-07 13:26:28 +00:00
|
|
|
%{makeinstall}
|
2009-08-07 13:17:06 +00:00
|
|
|
%{__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
|