# # spec file for package perl-Protocol-WebSocket # # 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-Protocol-WebSocket Version: 0.12 Release: 0 %define cpan_name Protocol-WebSocket Summary: WebSocket protocol License: Artistic-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Protocol-WebSocket/ Source: http://www.cpan.org/authors/id/V/VT/VTI/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Digest::SHA1) #BuildRequires: perl(AE) #BuildRequires: perl(AnyEvent::Handle) #BuildRequires: perl(AnyEvent::HTTP::Server) #BuildRequires: perl(AnyEvent::Impl::Perl) #BuildRequires: perl(AnyEvent::Socket) #BuildRequires: perl(CPANPLUS::Backend) #BuildRequires: perl(Event) #BuildRequires: perl(Event::io) #BuildRequires: perl(EventReactor) #BuildRequires: perl(inc::Module::Install) #BuildRequires: perl(IO::Async::Listener) #BuildRequires: perl(IO::Async::Loop) #BuildRequires: perl(IO::Event) #BuildRequires: perl(IO::Lambda) #BuildRequires: perl(IO::Lambda::Socket) #BuildRequires: perl(IO::Multiplex) #BuildRequires: perl(JSON) #BuildRequires: perl(LWP::Simple) #BuildRequires: perl(Module::AutoInstall) #BuildRequires: perl(Module::Build) #BuildRequires: perl(Module::Install::Base) #BuildRequires: perl(Moose) #BuildRequires: perl(Net::Server::Multiplex) #BuildRequires: perl(Nginx::Engine) #BuildRequires: perl(Parse::CPAN::Meta) #BuildRequires: perl(POE) #BuildRequires: perl(POE::Component::Server::TCP) #BuildRequires: perl(Protocol::WebSocket::Cookie) #BuildRequires: perl(Protocol::WebSocket::Cookie::Request) #BuildRequires: perl(Protocol::WebSocket::Cookie::Response) #BuildRequires: perl(Protocol::WebSocket::Frame) #BuildRequires: perl(Protocol::WebSocket::Handshake) #BuildRequires: perl(Protocol::WebSocket::Handshake::Client) #BuildRequires: perl(Protocol::WebSocket::Handshake::Server) #BuildRequires: perl(Protocol::WebSocket::Message) #BuildRequires: perl(Protocol::WebSocket::Request) #BuildRequires: perl(Protocol::WebSocket::Response) #BuildRequires: perl(Protocol::WebSocket::Stateful) #BuildRequires: perl(Protocol::WebSocket::URL) #BuildRequires: perl(Reflex::Acceptor) #BuildRequires: perl(Reflex::Collection) #BuildRequires: perl(Reflex::Stream) #BuildRequires: perl(YAML::Tiny) Requires: perl(Digest::SHA1) %{perl_requires} %description Client/server WebSocket message and frame parser/constructor. This module does not provide a WebSocket server or client, but is made for using in http servers or clients to provide WebSocket support. the Protocol::WebSocket manpage supports the following WebSocket protocol versions: draft-ietf-hybi-17 (latest) draft-ietf-hybi-10 draft-ietf-hybi-00 (with HAProxy support) draft-hixie-75 By default the latest version is used. The WebSocket version is detected automatically on the server side. On the client side you have set a 'version' attribute to an appropriate value. the Protocol::WebSocket manpage itself does not contain any code and cannot be used directly. Instead the following modules should be used: %prep %setup -q -n %{cpan_name}-%{version} %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 MYMETA.json MYMETA.yml %changelog