From dcb4c0286e4bee87781cb10796c7bbf2cd18fcbb0a21b39d6ce690c99db08455 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Wed, 3 Jul 2024 16:28:21 +0000 Subject: [PATCH] Accepting request 1185178 from devel:languages:perl:autoupdate - Remove openssl3_1-adapt_tests.patch (fixed upstream) - updated to 1.11 see /usr/share/doc/packages/perl-Protocol-HTTP2/Changes 1.11 2024-05-19T16:55:28Z - Fix minor typos and spelling errors (Yoshikazu Sawa) - Do not hardcode tlsv1 which is deprecated and disabled in some systems (Olivier Gayot) - Fix length-undef warnings in pre-5.12 perls (Felipe Gasper) OBS-URL: https://build.opensuse.org/request/show/1185178 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Protocol-HTTP2?expand=0&rev=6 --- Protocol-HTTP2-1.10.tar.gz | 3 --- Protocol-HTTP2-1.11.tar.gz | 3 +++ cpanspec.yml | 9 ++++---- openssl3_1-adapt_tests.patch | 31 -------------------------- perl-Protocol-HTTP2.changes | 16 ++++++++++++++ perl-Protocol-HTTP2.spec | 43 ++++++++++++++++++++++++++++++------ 6 files changed, 59 insertions(+), 46 deletions(-) delete mode 100644 Protocol-HTTP2-1.10.tar.gz create mode 100644 Protocol-HTTP2-1.11.tar.gz delete mode 100644 openssl3_1-adapt_tests.patch diff --git a/Protocol-HTTP2-1.10.tar.gz b/Protocol-HTTP2-1.10.tar.gz deleted file mode 100644 index fa9cdb7..0000000 --- a/Protocol-HTTP2-1.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c26a0058fb4afae97e4bf0dbc64189f671144515c4447f3dcb597ecd0396a64a -size 53303 diff --git a/Protocol-HTTP2-1.11.tar.gz b/Protocol-HTTP2-1.11.tar.gz new file mode 100644 index 0000000..385a580 --- /dev/null +++ b/Protocol-HTTP2-1.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:569f05b1abe997b507c8251530cc81d1ee96bd932cc682534b6ce48653500913 +size 53533 diff --git a/cpanspec.yml b/cpanspec.yml index 03d1caa..ece0612 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -7,11 +7,10 @@ #sources: # - source1 # - source2 -patches: - openssl3_1-adapt_tests.patch: -p1 PATCH-FIX-OPENSUSE https://github.com/vlet/p5-Protocol-HTTP2/pull/14 +#patches: # bar.patch: -#preamble: |- -# BuildRequires: gcc-c++ +preamble: |- + BuildRequires: perl(Net::SSLeay) > 1.45 #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 @@ -25,7 +24,7 @@ patches: #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test -#ignore_requires: Bizarre::Module +ignore_requires: Net::SSLeay #skip_doc: regexp_to_skip_for_doc.* #add_doc: files to add to docs #misc: |- diff --git a/openssl3_1-adapt_tests.patch b/openssl3_1-adapt_tests.patch deleted file mode 100644 index 8b7cf9c..0000000 --- a/openssl3_1-adapt_tests.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 552e3677372c77ec458548fd8c3fdc280e493d91 Mon Sep 17 00:00:00 2001 -From: Otto Hollmann -Date: Thu, 4 May 2023 13:42:51 +0200 -Subject: [PATCH] Adapt tests for OpenSSL 3.1 - ---- - t/lib/PH2ClientServerTest.pm | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/t/lib/PH2ClientServerTest.pm b/t/lib/PH2ClientServerTest.pm -index 3fe9203..fe90f32 100644 ---- a/t/lib/PH2ClientServerTest.pm -+++ b/t/lib/PH2ClientServerTest.pm -@@ -43,7 +43,7 @@ sub server { - if ( !$h{upgrade} && ( $h{npn} || $h{alpn} ) ) { - eval { - $tls = AnyEvent::TLS->new( -- method => 'tlsv1', -+ method => 'tlsv1_2', - cert_file => $tls_crt, - key_file => $tls_key, - ); -@@ -122,7 +122,7 @@ sub client { - } - elsif ( $h{npn} || $h{alpn} ) { - eval { -- $tls = AnyEvent::TLS->new( method => 'tlsv1', ); -+ $tls = AnyEvent::TLS->new( method => 'tlsv1_2', ); - - if ( delete $h{npn} ) { - diff --git a/perl-Protocol-HTTP2.changes b/perl-Protocol-HTTP2.changes index e85a550..7445f63 100644 --- a/perl-Protocol-HTTP2.changes +++ b/perl-Protocol-HTTP2.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Jul 3 16:17:00 UTC 2024 - Tina Müller + +- Remove openssl3_1-adapt_tests.patch (fixed upstream) + +------------------------------------------------------------------- +Mon May 20 03:07:24 UTC 2024 - Tina Müller + +- updated to 1.11 + see /usr/share/doc/packages/perl-Protocol-HTTP2/Changes + + 1.11 2024-05-19T16:55:28Z + - Fix minor typos and spelling errors (Yoshikazu Sawa) + - Do not hardcode tlsv1 which is deprecated and disabled in some systems (Olivier Gayot) + - Fix length-undef warnings in pre-5.12 perls (Felipe Gasper) + ------------------------------------------------------------------- Tue May 9 12:28:36 UTC 2023 - Dirk Stoecker diff --git a/perl-Protocol-HTTP2.spec b/perl-Protocol-HTTP2.spec index 0c66fb4..af241b1 100644 --- a/perl-Protocol-HTTP2.spec +++ b/perl-Protocol-HTTP2.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Protocol-HTTP2 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,27 +18,56 @@ %define cpan_name Protocol-HTTP2 Name: perl-Protocol-HTTP2 -Version: 1.10 +Version: 1.110.0 Release: 0 +# 1.11 -> normalize -> 1.110.0 +%define cpan_version 1.11 License: Artistic-1.0 OR GPL-1.0-or-later Summary: HTTP/2 protocol implementation (RFC 7540) URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/C/CR/CRUX/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/C/CR/CRUX/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml -# PATCH-FIX-OPENSUSE https://github.com/vlet/p5-Protocol-HTTP2/pull/14 -Patch0: openssl3_1-adapt_tests.patch BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(AnyEvent) BuildRequires: perl(MIME::Base64) >= 3.11 +BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Tiny) >= 0.035 -BuildRequires: perl(Net::SSLeay) >= 1.45 +#BuildRequires: perl(Net::SSLeay) >= > 1.45 BuildRequires: perl(Test::LeakTrace) BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Test::TCP) Requires: perl(MIME::Base64) >= 3.11 +Provides: perl(Protocol::HTTP2) = %{version} +Provides: perl(Protocol::HTTP2::Client) +Provides: perl(Protocol::HTTP2::Connection) +Provides: perl(Protocol::HTTP2::Constants) +Provides: perl(Protocol::HTTP2::Frame) +Provides: perl(Protocol::HTTP2::Frame::Continuation) +Provides: perl(Protocol::HTTP2::Frame::Data) +Provides: perl(Protocol::HTTP2::Frame::Goaway) +Provides: perl(Protocol::HTTP2::Frame::Headers) +Provides: perl(Protocol::HTTP2::Frame::Ping) +Provides: perl(Protocol::HTTP2::Frame::Priority) +Provides: perl(Protocol::HTTP2::Frame::Push_promise) +Provides: perl(Protocol::HTTP2::Frame::Rst_stream) +Provides: perl(Protocol::HTTP2::Frame::Settings) +Provides: perl(Protocol::HTTP2::Frame::Window_update) +Provides: perl(Protocol::HTTP2::HeaderCompression) +Provides: perl(Protocol::HTTP2::Huffman) +Provides: perl(Protocol::HTTP2::HuffmanCodes) +Provides: perl(Protocol::HTTP2::Server) +Provides: perl(Protocol::HTTP2::Server::Stream) +Provides: perl(Protocol::HTTP2::StaticTable) +Provides: perl(Protocol::HTTP2::Stream) +Provides: perl(Protocol::HTTP2::Trace) +Provides: perl(Protocol::HTTP2::Upgrade) +%undefine __perllib_provides %{perl_requires} +# MANUAL BEGIN +BuildRequires: perl(Net::SSLeay) > 1.45 +# MANUAL END %description Protocol::HTTP2 is HTTP/2 protocol implementation (at @@ -48,7 +77,7 @@ client/server/intermediate on top of your favorite event loop over plain or tls socket (see examples). %prep -%autosetup -n %{cpan_name}-%{version} -p1 +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Build.PL --installdirs=vendor