forked from pool/perl-Protocol-HTTP2
Accepting request 1085707 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1085707 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Protocol-HTTP2?expand=0&rev=2
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
patches:
|
||||
openssl3_1-adapt_tests.patch: -p1 PATCH-FIX-OPENSUSE https://github.com/vlet/p5-Protocol-HTTP2/pull/14
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
|
31
openssl3_1-adapt_tests.patch
Normal file
31
openssl3_1-adapt_tests.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
From 552e3677372c77ec458548fd8c3fdc280e493d91 Mon Sep 17 00:00:00 2001
|
||||
From: Otto Hollmann <otto.hollmann@suse.com>
|
||||
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} ) {
|
||||
|
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 9 12:28:36 UTC 2023 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- refresh package, Update cpanspec.yml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 13:11:57 UTC 2023 - Otto Hollmann <otto.hollmann@suse.com>
|
||||
|
||||
- Adapt tests for OpenSSL 3.1 [bsc#1209430]
|
||||
* Add openssl3_1-adapt_tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 26 13:57:41 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Protocol-HTTP2
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,18 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name Protocol-HTTP2
|
||||
Name: perl-Protocol-HTTP2
|
||||
Version: 1.10
|
||||
Release: 0
|
||||
%define cpan_name Protocol-HTTP2
|
||||
Summary: HTTP/2 protocol implementation (RFC 7540)
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Summary: HTTP/2 protocol implementation (RFC 7540)
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: Protocol-HTTP2-1.10.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/C/CR/CRUX/%{cpan_name}-%{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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(AnyEvent)
|
||||
@@ -48,7 +48,7 @@ client/server/intermediate on top of your favorite event loop over plain or
|
||||
tls socket (see examples).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
perl Build.PL --installdirs=vendor
|
||||
@@ -62,7 +62,6 @@ perl Build.PL --installdirs=vendor
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples README.md
|
||||
%license LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user