2009-08-07 13:26:28 +00:00
|
|
|
#
|
2011-11-17 15:36:58 +00:00
|
|
|
# spec file for package perl-JSON-RPC
|
2010-11-11 15:11:11 +00:00
|
|
|
#
|
2013-06-17 11:59:00 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-07 13:26:28 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2010-11-11 15:11:11 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2009-08-07 13:26:28 +00:00
|
|
|
|
|
|
|
Name: perl-JSON-RPC
|
2013-06-17 11:59:00 +00:00
|
|
|
Version: 1.03
|
|
|
|
Release: 0
|
2010-11-11 15:11:11 +00:00
|
|
|
%define cpan_name JSON-RPC
|
2013-06-17 11:59:00 +00:00
|
|
|
Summary: JSON RPC 2.0 Server Implementation
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2009-08-07 13:26:28 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-11-11 15:11:11 +00:00
|
|
|
Url: http://search.cpan.org/dist/JSON-RPC/
|
2013-06-17 11:59:00 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/D/DM/DMAKI/%{cpan_name}-%{version}.tar.gz
|
2010-11-11 15:11:11 +00:00
|
|
|
BuildArch: noarch
|
2009-08-07 13:26:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-11 15:11:11 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-17 11:59:00 +00:00
|
|
|
BuildRequires: perl(Class::Accessor::Lite)
|
|
|
|
BuildRequires: perl(HTTP::Request)
|
|
|
|
BuildRequires: perl(HTTP::Response)
|
|
|
|
BuildRequires: perl(JSON)
|
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
|
|
BuildRequires: perl(Plack)
|
|
|
|
BuildRequires: perl(Plack::Request)
|
|
|
|
BuildRequires: perl(Plack::Test)
|
|
|
|
BuildRequires: perl(Router::Simple)
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
#BuildRequires: perl(Apache2::Const)
|
|
|
|
#BuildRequires: perl(Apache2::RequestIO)
|
|
|
|
#BuildRequires: perl(Apache2::RequestRec)
|
|
|
|
#BuildRequires: perl(Apache2::RequestUtil)
|
|
|
|
#BuildRequires: perl(APR::Table)
|
|
|
|
#BuildRequires: perl(JSON::RPC)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Constants)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Legacy::Client)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Legacy::Procedure)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Legacy::ReturnObject)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Legacy::Server)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Parser)
|
|
|
|
#BuildRequires: perl(JSON::RPC::Procedure)
|
|
|
|
#BuildRequires: perl(LWP::Simple)
|
|
|
|
#BuildRequires: perl(Module::Build)
|
|
|
|
#BuildRequires: perl(Module::Install::Base)
|
|
|
|
#BuildRequires: perl(Parse::CPAN::Meta)
|
|
|
|
#BuildRequires: perl(Try::Tiny)
|
|
|
|
#BuildRequires: perl(YAML::Tiny)
|
|
|
|
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}
|
2009-08-07 13:17:06 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-17 11:59:00 +00:00
|
|
|
JSON::RPC is a set of modules that implment JSON RPC 2.0 protocol.
|
2009-08-07 13:17:06 +00:00
|
|
|
|
2013-06-17 11:59:00 +00:00
|
|
|
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****
|
2010-11-11 15:11:11 +00:00
|
|
|
|
2009-08-07 13:17:06 +00:00
|
|
|
%prep
|
2010-11-11 15:11:11 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-08-07 13:17:06 +00:00
|
|
|
|
|
|
|
%build
|
2010-11-11 15:11:11 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-08-07 13:26:28 +00:00
|
|
|
|
|
|
|
%check
|
2009-08-07 13:17:06 +00:00
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
2010-11-11 15:11:11 +00:00
|
|
|
%perl_make_install
|
2013-06-17 11:59:00 +00:00
|
|
|
%perl_process_packlist
|
2010-11-11 15:11:11 +00:00
|
|
|
%perl_gen_filelist
|
2009-08-07 13:17:06 +00:00
|
|
|
|
2010-11-11 15:11:11 +00:00
|
|
|
%files -f %{name}.files
|
2013-06-17 11:59:00 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes README
|
2009-08-07 13:17:06 +00:00
|
|
|
|
|
|
|
%changelog
|