8
0
2025-06-03 15:26:34 +00:00
committed by Git OBS Bridge
commit 3eec13682f
6 changed files with 241 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

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

23
cpanspec.yml Normal file
View File

@@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -0,0 +1,98 @@
-------------------------------------------------------------------
Tue Jun 3 15:26:15 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Wed Mar 13 16:32:45 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 0.26
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.26 2019-03-09T09:35:15Z
- Introduce MAX_FRAGMENTS_AMOUNT to change the allowable amount of fragments (Daniel Kamil Kozar)
- Update draft-ietf-hybi-00 tests to include the error text in response line (Daniel Kamil Kozar)
0.25 2019-03-09T09:31:45Z
- The "Wrong response line" error now includes the actual response line (Max Maischein)
-------------------------------------------------------------------
Sun Jan 14 07:05:41 UTC 2018 - coolo@suse.com
- updated to 0.24
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.24 2018-01-13T09:59:07Z
- draft-ietf-hybi-17 uses origin header, not sec-websocket-origin (Eric Wastl)
-------------------------------------------------------------------
Wed Dec 13 06:47:34 UTC 2017 - coolo@suse.com
- updated to 0.23
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.23 2017-12-12T19:16:32Z
- revert previous release
-------------------------------------------------------------------
Sat Dec 9 06:47:48 UTC 2017 - coolo@suse.com
- updated to 0.22
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.22 2017-12-08T17:24:15Z
- reliable UTF-8 bahaviour (Paul "LeoNerd" Evans #GH-35, #GH-52)
- document masked frame attribute
-------------------------------------------------------------------
Tue Sep 5 06:01:57 UTC 2017 - coolo@suse.com
- updated to 0.21
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.21 2017-09-04T17:06:56Z
- MAX_PAYLOAD_SIZE global var
- MAX_MESSAGE_SIZE global var
-------------------------------------------------------------------
Sat Nov 5 07:09:59 UTC 2016 - coolo@suse.com
- updated to 0.20
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.20 2016-11-04T18:21:37Z
- RSV bit (Anton Petrusevich)
- do not modify passed headers structure (Graham Ollis)
- bypass max payload size (Graham Ollis)
-------------------------------------------------------------------
Sun Oct 4 09:10:18 UTC 2015 - coolo@suse.com
- updated to 0.19
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
0.19 2015-09-28T16:55:01Z
- custom headers in request
- fix wrong UTF-8 related documentation (#GH-13)
-------------------------------------------------------------------
Tue Apr 14 18:33:21 UTC 2015 - coolo@suse.com
- updated to 0.18
see /usr/share/doc/packages/perl-Protocol-WebSocket/Changes
-------------------------------------------------------------------
Tue Oct 1 06:41:53 UTC 2013 - coolo@suse.com
- initial package 0.12
* created by cpanspec 1.78.07

View File

@@ -0,0 +1,93 @@
#
# spec file for package perl-Protocol-WebSocket
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Protocol-WebSocket
Name: perl-Protocol-WebSocket
Version: 0.260.0
Release: 0
# 0.26 -> normalize -> 0.260.0
%define cpan_version 0.26
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: WebSocket protocol
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/V/VT/VTI/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Tiny) >= 0.35
Requires: perl(Digest::SHA)
Provides: perl(Protocol::WebSocket) = %{version}
Provides: perl(Protocol::WebSocket::Client)
Provides: perl(Protocol::WebSocket::Cookie)
Provides: perl(Protocol::WebSocket::Cookie::Request)
Provides: perl(Protocol::WebSocket::Cookie::Response)
Provides: perl(Protocol::WebSocket::Frame)
Provides: perl(Protocol::WebSocket::Handshake)
Provides: perl(Protocol::WebSocket::Handshake::Client)
Provides: perl(Protocol::WebSocket::Handshake::Server)
Provides: perl(Protocol::WebSocket::Message)
Provides: perl(Protocol::WebSocket::Request)
Provides: perl(Protocol::WebSocket::Response)
Provides: perl(Protocol::WebSocket::Stateful)
Provides: perl(Protocol::WebSocket::URL)
%undefine __perllib_provides
%{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.
Protocol::WebSocket 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.
Protocol::WebSocket itself does not contain any code and cannot be used
directly. Instead the following modules should be used:
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes examples README.md util
%license LICENSE
%changelog