[perl-JSON-RPC] Update to 1.01

Emmanuel Seyman eseyman at fedoraproject.org
Mon Dec 19 07:03:50 UTC 2011


commit 47c32022ab3eca0619a5d10c008901933e5295e4
Author: Emmanuel Seyman <emmanuel.seyman at club-internet.fr>
Date:   Mon Dec 19 08:03:26 2011 +0100

    Update to 1.01

 .gitignore         |    1 +
 perl-JSON-RPC.spec |   58 +++++++++++++++++++++++++++++++++++-----------------
 sources            |    2 +-
 3 files changed, 41 insertions(+), 20 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3d65617..14447be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 JSON-RPC-0.96.tar.gz
+/JSON-RPC-1.01.tar.gz
diff --git a/perl-JSON-RPC.spec b/perl-JSON-RPC.spec
index 80ce9bc..0c3d7c7 100644
--- a/perl-JSON-RPC.spec
+++ b/perl-JSON-RPC.spec
@@ -1,20 +1,25 @@
 Name:           perl-JSON-RPC
-Version:        0.96
-Release:        10%{?dist}
+Version:        1.01
+Release:        1%{?dist}
 Summary:        Perl implementation of JSON-RPC 1.1 protocol
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/JSON-RPC/
-Source0:        http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-RPC-%{version}.tar.gz
+Source0:        http://www.cpan.org/authors/id/D/DM/DMAKI/JSON-RPC-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(CGI) >= 2.92
+BuildRequires:  perl(CGI)
+BuildRequires:  perl(Class::Accessor::Fast)
+BuildRequires:  perl(Class::Accessor::Lite)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(HTTP::Request)
 BuildRequires:  perl(HTTP::Response)
 BuildRequires:  perl(JSON) >= 2
 BuildRequires:  perl(LWP::UserAgent) >= 2.001
+BuildRequires:  perl(Plack::Request)
+BuildRequires:  perl(Plack::Test)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Router::Simple)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %{?perl_default_filter}
@@ -25,29 +30,34 @@ 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.
 
+%package legacy-server
+Summary: The legacy server part of JSON::RPC
 
-%package server
-Summary: The server part of JSON::RPC
+%package legacy
+Summary: The legacy client part of JSON::RPC
 
-%description server
+%description legacy-server
 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. This is a server-side implementation.
+application data carried in parameters. This is the legacy server-side
+implementation, which exposes the 0.xx version of the API.
+
+%description legacy
+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. This is the legacy client-side
+implementation, which allows the use of the 0.xx version of the API.
 
 %prep
 %setup -q -n JSON-RPC-%{version}
 
-# Get rid of non-UNIX end-of-lines
-sed -i 's/\r//' ex/jsonrpc.conf
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm ex/MyApp.pm
-
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
@@ -59,18 +69,28 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 make test
 
 %files
-%doc Changes ex README
+%doc Changes README
 %{perl_vendorlib}/JSON/RPC.pm
-%{perl_vendorlib}/JSON/RPC/Client.pm
+%{perl_vendorlib}/JSON/RPC/Constants.pm
+%{perl_vendorlib}/JSON/RPC/Dispatch.pm
+%{perl_vendorlib}/JSON/RPC/Parser.pm
 %{perl_vendorlib}/JSON/RPC/Procedure.pm
-%{perl_vendorlib}/JSONRPC.pm
 %{_mandir}/man3/*
 
-%files server
-%{perl_vendorlib}/JSON/RPC/Server
-%{perl_vendorlib}/JSON/RPC/Server.pm
+%files legacy
+%{perl_vendorlib}/JSON/RPC/Legacy.pm
+%{perl_vendorlib}/JSON/RPC/Legacy/Client.pm
+%{perl_vendorlib}/JSON/RPC/Legacy/Procedure.pm
+
+%files legacy-server
+%{perl_vendorlib}/JSON/RPC/Legacy/Server
+%{perl_vendorlib}/JSON/RPC/Legacy/Server.pm
 
 %changelog
+* Mon Dec 19 2011 Emmanuel Seyman <emmanuel.seyman at club-internet.fr> - 1.01-1
+- Update to 1.01
+- Split the lagacy implementation into its own sub-packages
+
 * Thu Oct 27 2011 Emmanuel Seyman <emmanuel.seyman at club-internet.fr> - 0.96-10
 - Split out the server part in its own sub-package
 - Tidy up the spec file
diff --git a/sources b/sources
index 8879904..5f21252 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3912464c3cf59b60131fd2b15400192a  JSON-RPC-0.96.tar.gz
+802d5bb488f3587f16aa69e8c002132b  JSON-RPC-1.01.tar.gz



More information about the perl-devel mailing list