commit 6b0532beb923aad62124d0c9ddb4773c6150304b2ac9ae79ea9ae1421be4c43f Author: Stephan Kulow Date: Tue Oct 1 06:41:57 2013 +0000 initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Protocol-WebSocket?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Protocol-WebSocket-0.12.tar.gz b/Protocol-WebSocket-0.12.tar.gz new file mode 100644 index 0000000..5a77155 --- /dev/null +++ b/Protocol-WebSocket-0.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c2730bd91849d56cef9bb00b6a552219654fcbd1ae4d48da925b44cc1a83038 +size 49703 diff --git a/perl-Protocol-WebSocket.changes b/perl-Protocol-WebSocket.changes new file mode 100644 index 0000000..7f504c5 --- /dev/null +++ b/perl-Protocol-WebSocket.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Tue Oct 1 06:41:53 UTC 2013 - coolo@suse.com + +- initial package 0.12 + * created by cpanspec 1.78.07 + diff --git a/perl-Protocol-WebSocket.spec b/perl-Protocol-WebSocket.spec new file mode 100644 index 0000000..b12c7d6 --- /dev/null +++ b/perl-Protocol-WebSocket.spec @@ -0,0 +1,118 @@ +# +# 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