forked from pool/perl-AnyEvent-WebSocket-Server
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
822b2ed274 | |||
abaf7a2e46 |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 3 15:10:13 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||||
|
|
||||||
|
- Normalize CPAN version
|
||||||
|
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 25 03:06:10 UTC 2021 - Tina Müller <timueller+perl@suse.de>
|
Mon Jan 25 03:06:10 UTC 2021 - Tina Müller <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-AnyEvent-WebSocket-Server
|
# spec file for package perl-AnyEvent-WebSocket-Server
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,12 +18,14 @@
|
|||||||
|
|
||||||
%define cpan_name AnyEvent-WebSocket-Server
|
%define cpan_name AnyEvent-WebSocket-Server
|
||||||
Name: perl-AnyEvent-WebSocket-Server
|
Name: perl-AnyEvent-WebSocket-Server
|
||||||
Version: 0.10
|
Version: 0.100.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: WebSocket server for AnyEvent
|
# 0.10 -> normalize -> 0.100.0
|
||||||
|
%define cpan_version 0.10
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
|
Summary: WebSocket server for AnyEvent
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOSHIOITO/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOSHIOITO/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@@ -31,9 +33,9 @@ BuildRequires: perl-macros
|
|||||||
BuildRequires: perl(AnyEvent)
|
BuildRequires: perl(AnyEvent)
|
||||||
BuildRequires: perl(AnyEvent::Handle)
|
BuildRequires: perl(AnyEvent::Handle)
|
||||||
BuildRequires: perl(AnyEvent::Socket)
|
BuildRequires: perl(AnyEvent::Socket)
|
||||||
BuildRequires: perl(AnyEvent::WebSocket::Client) >= 0.37
|
BuildRequires: perl(AnyEvent::WebSocket::Client) >= 0.370
|
||||||
BuildRequires: perl(Module::Build) >= 0.420000
|
BuildRequires: perl(Module::Build) >= 0.42
|
||||||
BuildRequires: perl(Module::Build::Prereqs::FromCPANfile) >= 0.02
|
BuildRequires: perl(Module::Build::Prereqs::FromCPANfile) >= 0.20
|
||||||
BuildRequires: perl(Protocol::WebSocket::Frame)
|
BuildRequires: perl(Protocol::WebSocket::Frame)
|
||||||
BuildRequires: perl(Protocol::WebSocket::Handshake::Client)
|
BuildRequires: perl(Protocol::WebSocket::Handshake::Client)
|
||||||
BuildRequires: perl(Protocol::WebSocket::Handshake::Server)
|
BuildRequires: perl(Protocol::WebSocket::Handshake::Server)
|
||||||
@@ -41,9 +43,11 @@ BuildRequires: perl(Test::Memory::Cycle)
|
|||||||
BuildRequires: perl(Test::Requires)
|
BuildRequires: perl(Test::Requires)
|
||||||
BuildRequires: perl(Try::Tiny)
|
BuildRequires: perl(Try::Tiny)
|
||||||
Requires: perl(AnyEvent::Handle)
|
Requires: perl(AnyEvent::Handle)
|
||||||
Requires: perl(AnyEvent::WebSocket::Client) >= 0.37
|
Requires: perl(AnyEvent::WebSocket::Client) >= 0.370
|
||||||
Requires: perl(Protocol::WebSocket::Handshake::Server)
|
Requires: perl(Protocol::WebSocket::Handshake::Server)
|
||||||
Requires: perl(Try::Tiny)
|
Requires: perl(Try::Tiny)
|
||||||
|
Provides: perl(AnyEvent::WebSocket::Server) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
Recommends: perl(Net::SSLeay)
|
Recommends: perl(Net::SSLeay)
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
@@ -55,18 +59,19 @@ context.
|
|||||||
https://tools.ietf.org/html/rfc6455 for detail.
|
https://tools.ietf.org/html/rfc6455 for detail.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL installdirs=vendor
|
perl Build.PL --installdirs=vendor
|
||||||
./Build build flags=%{?_smp_mflags}
|
./Build build --flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=%{buildroot} create_packlist=0
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
Reference in New Issue
Block a user