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

63 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# 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
%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} %{?jobs:-j%jobs}
%check
%{__make} test
%install
%{makeinstall}
%{__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