Files
perl-Event-RPC/perl-Event-RPC.spec
Stephan Kulow 97bd0a4f0c - updated to 1.03
Features:
     - Added options 'ssl_ca_file and 'ssl_ca_path' options
       to Event::RPC::Client, which enable SSL peer verifcation
       on the client. Thanks for the report about a security
       warning of IO::Socket::SSL to Moritz Bunkus.
 
     Features:
     - Added AnyEvent mainloop implementation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Event-RPC?expand=0&rev=5
2013-07-27 09:13:49 +00:00

97 lines
3.3 KiB
RPMSpec

#
# spec file for package perl-Event-RPC
#
# Copyright (c) 2013 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Event-RPC
Version: 1.03
Release: 0
%define cpan_name Event-RPC
Summary: Event based transparent Client/Server RPC framework
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Event-RPC/
Source: http://www.cpan.org/authors/id/J/JR/JRED/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Event)
BuildRequires: perl(Glib)
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(Net::SSLeay)
#BuildRequires: perl(AnyEvent)
#BuildRequires: perl(Event::RPC)
#BuildRequires: perl(Event::RPC::AuthPasswdHash)
#BuildRequires: perl(Event::RPC::Client)
#BuildRequires: perl(Event::RPC::Connection)
#BuildRequires: perl(Event::RPC::LogConnection)
#BuildRequires: perl(Event::RPC::Logger)
#BuildRequires: perl(Event::RPC::Loop)
#BuildRequires: perl(Event::RPC::Message)
#BuildRequires: perl(Event::RPC::Server)
#BuildRequires: perl(Event_RPC_Test)
#BuildRequires: perl(Event_RPC_Test2)
Requires: perl(Event)
Requires: perl(Glib)
Requires: perl(IO::Socket::SSL)
Requires: perl(Net::SSLeay)
%{perl_requires}
%description
Event::RPC consists of a server and a client library. The server exports a
list of classes and methods, which are allowed to be called over the
network. More specific it acts as a proxy for objects created on the server
side (on demand of the connected clients) which handles client side methods
calls with transport of method arguments and return values.
The object proxy handles refcounting and destruction of objects created by
clients properly. Objects as method parameters and return values are
handled as well (although with some limitations, see below).
For the client the whole thing is totally transparent - once connected to
the server it doesn't know whether it calls methods on local or remote
objects.
Also the methods on the server newer know whether they are called locally
or from a connected client. Your application logic is not affected by
Event::RPC at all, at least if it has a rudimentary clean OO design.
For details on implementing servers and clients please refer to the man
pages of Event::RPC::Server and Event::RPC::Client.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples README
%changelog