8
0
forked from pool/perl-JSON-RPC

Compare commits

...

13 Commits

Author SHA256 Message Date
Stephan Kulow
e18a77f6e2 Accepting request 327598 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/327598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-RPC?expand=0&rev=16
2015-08-29 18:04:54 +00:00
Stephan Kulow
04272792dc Accepting request 327579 from home:hsk17:branches:devel:languages:perl
make it build with perl-5.22

OBS-URL: https://build.opensuse.org/request/show/327579
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=22
2015-08-27 16:34:55 +00:00
Stephan Kulow
f689a25ca0 Accepting request 257417 from devel:languages:perl
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/257417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-RPC?expand=0&rev=15
2014-10-18 07:09:46 +00:00
Lars Vogdt
d05e643f29 - updated to 1.06:
- Work better with batch requests: Now responses are properly returned
    as list as long as the request is a list as well (Arata Makoto)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=20
2014-10-15 15:36:00 +00:00
Stephan Kulow
1ff85c6a11 Accepting request 249358 from devel:languages:perl
- updated to 1.04
    - Work with notifications, which are procedures without an id
      (Kirill Bogdanov)

OBS-URL: https://build.opensuse.org/request/show/249358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-RPC?expand=0&rev=14
2014-09-17 15:25:49 +00:00
Stephan Kulow
2aa89b14f1 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=18
2014-09-15 15:46:47 +00:00
Stephan Kulow
b96407716a Accepting request 179299 from devel:languages:perl
- updated to 1.03
   - Allow die \%hash from handlers (ka2u)
   - Fix the finalization of the response (0xAF)
   - Use require instead of Class::Load. Subclass in your app if you need
     that kind of ability, but it seems unlikely that we'd need anything
     more than eval require here.
   - JSON::RPC::Dispatcher already existed on CPAN. s/Dispatcher/Dispatch/g
   - New maintainer, completely new code for PSGI apps and JSON RPC 2.0
   - If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
     YOUR CODE TO WORK. THIS VERSION IS BACKWARDS INCOMPATIBLE

OBS-URL: https://build.opensuse.org/request/show/179299
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-RPC?expand=0&rev=11
2013-06-21 11:31:43 +00:00
Stephan Kulow
829137d959 - updated to 1.03
- Allow die \%hash from handlers (ka2u)
   - Fix the finalization of the response (0xAF)
   - Use require instead of Class::Load. Subclass in your app if you need
     that kind of ability, but it seems unlikely that we'd need anything
     more than eval require here.
   - JSON::RPC::Dispatcher already existed on CPAN. s/Dispatcher/Dispatch/g
   - New maintainer, completely new code for PSGI apps and JSON RPC 2.0
   - If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
     YOUR CODE TO WORK. THIS VERSION IS BACKWARDS INCOMPATIBLE

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=16
2013-06-17 11:59:00 +00:00
Stephan Kulow
b576c0f87d replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-RPC?expand=0&rev=8
2011-12-06 17:43:29 +00:00
Stephan Kulow
e13ab47863 Accepting request 92133 from devel:languages:perl
update

OBS-URL: https://build.opensuse.org/request/show/92133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JSON-RPC?expand=0&rev=7
2011-11-21 11:41:57 +00:00
Stephan Kulow
a8f97ebfa9 use original .tar.gz
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=13
2011-11-18 11:30:01 +00:00
Stephan Kulow
01419780c3 use gz
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=12
2011-11-17 15:36:58 +00:00
Stephan Kulow
58878f918f OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=10 2011-11-11 11:19:17 +00:00
4 changed files with 86 additions and 61 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:afb14eb3a3e861eb8d52f9b4f4f1dd31ea58c0b99cfb46b37379eb99038b7b54
size 13181

3
JSON-RPC-1.06.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d75ba8b558988b3fdffa12ff62a55f0f1aaff8aa73b708bff3701ff88a2b8757
size 36034

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Thu Aug 27 13:37:06 UTC 2015 - hsk@imb-jena.de
- add CGI to Requires:, BuildRequires:, as that module is not in
perl core since perl 5.22
-------------------------------------------------------------------
Wed Oct 15 15:34:31 UTC 2014 - lars@linux-schulserver.de
- updated to 1.06:
- Work better with batch requests: Now responses are properly returned
as list as long as the request is a list as well (Arata Makoto)
-------------------------------------------------------------------
Mon Sep 15 15:44:36 UTC 2014 - coolo@suse.com
- updated to 1.04
- Work with notifications, which are procedures without an id
(Kirill Bogdanov)
-------------------------------------------------------------------
Mon Jun 17 11:54:43 UTC 2013 - coolo@suse.com
- updated to 1.03
- Allow die \%hash from handlers (ka2u)
- Fix the finalization of the response (0xAF)
- Use require instead of Class::Load. Subclass in your app if you need
that kind of ability, but it seems unlikely that we'd need anything
more than eval require here.
- JSON::RPC::Dispatcher already existed on CPAN. s/Dispatcher/Dispatch/g
- New maintainer, completely new code for PSGI apps and JSON RPC 2.0
- If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
YOUR CODE TO WORK. THIS VERSION IS BACKWARDS INCOMPATIBLE
-------------------------------------------------------------------
Fri Nov 18 11:07:44 UTC 2011 - coolo@suse.com
- use original .tar.gz
-------------------------------------------------------------------
Wed Dec 1 13:33:10 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-JSON-RPC (Version 0.96)
# spec file for package perl-JSON-RPC
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,84 +15,70 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%bcond_with pod
Name: perl-JSON-RPC
%define cpan_name JSON-RPC
Summary: Perl implementation of JSON-RPC 1.1 protocol
Version: 0.96
Release: 2
License: GPL+ or Artistic
Version: 1.06
Release: 0
%define cpan_name JSON-RPC
Summary: JSON RPC 2.0 Server Implementation
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/JSON-RPC/
#Source: http://www.cpan.org/modules/by-module/JSON/JSON-RPC-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Source: http://www.cpan.org/authors/id/D/DM/DMAKI/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%if %{with pod}
BuildRequires: perl(Test::Pod) >= 1.00
%endif
BuildRequires: perl(Test::More)
BuildRequires: perl(CGI) >= 2.92
BuildRequires: perl(JSON) >= 2
BuildRequires: perl(LWP::UserAgent) >= 2.001
## coming with LWP::UserAgent
#BuildRequires: perl(HTTP::Request)
#BuildRequires: perl(HTTP::Response)
#
Requires: perl(CGI) >= 2.92
Requires: perl(JSON) >= 2
Requires: perl(LWP::UserAgent) >= 2.001
## coming with LWP::UserAgent
#Requires: perl(HTTP::Request)
#Requires: perl(HTTP::Response)
BuildRequires: perl(CGI)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Class::Accessor::Lite)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Module::Build) >= 0.38
BuildRequires: perl(Plack)
BuildRequires: perl(Plack::Request)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Router::Simple)
BuildRequires: perl(parent)
Requires: perl(CGI)
Requires: perl(Class::Accessor::Lite)
Requires: perl(HTTP::Request)
Requires: perl(HTTP::Response)
Requires: perl(JSON)
Requires: perl(LWP::UserAgent)
Requires: perl(Plack)
Requires: perl(Router::Simple)
Requires: perl(parent)
Recommends: perl(JSON::XS)
%{perl_requires}
%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.
JSON::RPC is a set of modules that implement JSON RPC 2.0 protocol.
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.
Authors:
--------
Makamaka Hannyaharamitu, <makamaka[at]cpan.org>
If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
YOUR CODE TO WORK WITH THIS VERSION. THIS VERSION IS
****BACKWARDS INCOMPATIBLE****
%prep
%setup -q -n %{cpan_name}-%{version}
### rpmlint:
# wrong-file-end-of-line-encoding
%{__perl} -pi -e 's|\r\n|\n|' ex/jsonrpc.conf
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
%{__make} test
./Build test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes ex README
%defattr(-,root,root,755)
%doc Changes cpanfile LICENSE Makefile README.md
%changelog