Name: perl-Protocol-HTTP2 Version: 1.11 Release: 2%{?dist} Summary: HTTP/2 protocol implementation (RFC 7540) License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Protocol-HTTP2 Source0: https://cpan.metacpan.org/authors/id/C/CR/CRUX/Protocol-HTTP2-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(strict) # Run-time: BuildRequires: perl(:VERSION) >= 5.8.5 BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Exporter) BuildRequires: perl(MIME::Base64) >= 3.11 BuildRequires: perl(Scalar::Util) BuildRequires: perl(Time::HiRes) BuildRequires: perl(warnings) # Tests: BuildRequires: perl(AnyEvent) BuildRequires: perl(AnyEvent::Handle) BuildRequires: perl(AnyEvent::Socket) BuildRequires: perl(AnyEvent::TLS) BuildRequires: perl(Data::Dumper) BuildRequires: perl(lib) 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 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((MIME::Base64|Net::SSLeay|Test::More)\\)$ # Hide private modules %global __requires_exclude %{__requires_exclude}|^perl\\((PH2ClientServerTest|PH2Test)\\) %global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\((PH2ClientServerTest|PH2Test)\\) %description Protocol::HTTP2 is Perl HTTP/2 protocol implementation (RFC 7540) with stateful decoders/encoders of HTTP/2 frames. You may use this module to implement your own HTTP/2 client/server/intermediate on top of your favorite event loop over plain or TLS socket. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Net::SSLeay) >= 1.45 Requires: perl(Test::More) >= 0.98 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n Protocol-HTTP2-%{version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Build.PL --installdirs=vendor ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 find %{buildroot}%{_mandir} -type f -empty -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} mkdir -p %{buildroot}%{_libexecdir}/%{name}/examples cp -a examples/test.{key,crt} %{buildroot}%{_libexecdir}/%{name}/examples cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') ./Build test %files %license LICENSE %doc Changes examples README.md %dir %{perl_vendorlib}/Protocol %{perl_vendorlib}/Protocol/HTTP2 %{perl_vendorlib}/Protocol/HTTP2.pm %{_mandir}/man3/Protocol::HTTP2.* %{_mandir}/man3/Protocol::HTTP2::* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue May 21 2024 Petr Pisar - 1.11-1 - 1.11 bump * Thu Jan 25 2024 Fedora Release Engineering - 1.10-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.10-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Aug 08 2023 Petr Pisar - 1.10-13 - Adapt tests to OpenSSL 3.1.0 (TLS 1.0 moved to security level 0) (upstream bug #16) - Convert a license tag to SPDX - Package the tests * Fri Jul 21 2023 Fedora Release Engineering - 1.10-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.10-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 1.10-9 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.10-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.10-6 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.10-3 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 12 2019 Petr Pisar - 1.10-1 - 1.10 bump * Fri Jul 26 2019 Fedora Release Engineering - 1.09-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.09-4 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.09-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Aug 06 2018 Petr Pisar - 1.09-2 - Do not package empty manual pages (CPAN RT#125985) * Mon Aug 06 2018 Petr Pisar - 1.09-1 - 1.09 bump * Fri Jul 13 2018 Fedora Release Engineering - 1.08-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 1.08-5 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.08-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.08-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 1.08-2 - Perl 5.26 rebuild * Fri Mar 10 2017 Petr Pisar 1.08-1 - Specfile autogenerated by cpanspec 1.78.