Compare commits

...

No commits in common. "c8" and "8790771b5195a7f61ccab9b223a03071f845c803" have entirely different histories.

5 changed files with 201 additions and 80 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/AnyEvent-7.14.tar.gz
/AnyEvent-[0-9.]*.tar.gz

1
.perl-AnyEvent.metadata Normal file
View File

@ -0,0 +1 @@
6aa1247d79a5617ca52786ea15c59fb915d299b8 AnyEvent-7.17.tar.gz

View File

@ -1,12 +0,0 @@
diff -r -u AnyEvent-7.14.orig/t/80_ssltest.t AnyEvent-7.14/t/80_ssltest.t
--- AnyEvent-7.14.orig/t/80_ssltest.t 2012-05-13 01:06:34.000000000 +0200
+++ AnyEvent-7.14/t/80_ssltest.t 2023-08-23 11:28:59.863150707 +0200
@@ -11,7 +11,7 @@
use AnyEvent::Handle;
use AnyEvent::TLS;
-my $ctx = new AnyEvent::TLS cert_file => $0;
+my $ctx = new AnyEvent::TLS cert_file => $0, dh => "schmorp2048";
for my $mode (1..5) {
ok (1, "mode $mode");

View File

@ -1,10 +1,33 @@
# Do not use optional dependencies
%bcond_with perl_AnyEvent_enables_optional_features
# Do not test optional backends, we never run-require them
%bcond_with perl_AnyEvent_enables_optional_backend_test
#global subver 1
# Support Event
%if 0%{?rhel} >= 9
%bcond_with perl_AnyEvent_enables_Event
%else
%bcond_without perl_AnyEvent_enables_Event
%endif
# Support Glib
%if 0%{?rhel} >= 9
%bcond_with perl_AnyEvent_enables_Glib
%else
%bcond_without perl_AnyEvent_enables_Glib
%endif
# Support POE
%if 0%{?rhel} >= 9
%bcond_with perl_AnyEvent_enables_POE
%else
%bcond_without perl_AnyEvent_enables_POE
%endif
# Support Tk
%if 0%{?rhel} >= 9
%bcond_with perl_AnyEvent_enables_Tk
%else
%bcond_without perl_AnyEvent_enables_Tk
%endif
# A noarch-turned-arch package should not have debuginfo
%global debug_package %{nil}
@ -12,33 +35,30 @@
%global have_weak_deps 0%{?fedora} > 20 || 0%{?rhel} > 7
Name: perl-AnyEvent
Version: 7.14
Version: 7.17
Release: 8%{?dist}
Summary: Framework for multiple event loops
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/AnyEvent/
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}%{?subver}.tar.gz
# rhbz#2108086 - Build is failing in %check section
Patch0: AnyEvent-7.14-fix_minimal_dh_algorithm.patch
URL: https://metacpan.org/release/AnyEvent
Source0: https://cpan.metacpan.org/modules/by-module/AnyEvent/AnyEvent-%{version}%{?subver}.tar.gz
# Build requirements
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl-interpreter >= 3:5.8.1
BuildRequires: perl(Canary::Stability)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module requirements
BuildRequires: perl-interpreter >= 3:5.8.1
BuildRequires: perl(B)
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Guard)
BuildRequires: perl(integer)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(List::Util)
@ -46,15 +66,12 @@ BuildRequires: perl(overload)
BuildRequires: perl(POSIX)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Socket)
BuildRequires: perl(strict)
BuildRequires: perl(Time::HiRes)
%if %{with perl_AnyEvent_enables_optional_features}
BuildRequires: perl(Guard)
BuildRequires: perl(Storable)
BuildRequires: perl(strict)
BuildRequires: perl(Sys::Syslog)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Unicode::Normalize)
%endif
# Test suite requirements
BuildRequires: perl(File::Spec)
@ -71,12 +88,19 @@ BuildRequires: perl(warnings)
# Cocoa, FLTK and UV are not in Fedora/EPEL
# AnyEvent::AIO, EV and IO::Async::Loop are not (yet) in EPEL-7
# Test suite does not currently test the Qt event loop
%if %{with perl_AnyEvent_enables_optional_backend_test}
%if 0%{!?perl_bootstrap:1}
%if %{with perl_AnyEvent_enables_Event}
BuildRequires: perl(Event)
%endif
%if %{with perl_AnyEvent_enables_Glib}
BuildRequires: perl(Glib) >= 1.210
%endif
%if %{with perl_AnyEvent_enables_POE}
BuildRequires: perl(POE) >= 1.312
%endif
%if %{with perl_AnyEvent_enables_Tk}
BuildRequires: perl(Tk)
%endif
%if 0%{?fedora}
BuildRequires: perl(AnyEvent::AIO)
BuildRequires: perl(EV) >= 4.00
@ -84,12 +108,10 @@ BuildRequires: perl(IO::AIO) >= 4.13
BuildRequires: perl(IO::Async::Loop) >= 0.33
%endif
%endif
%endif
# Runtime requires
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(File::Temp)
%if %{with perl_AnyEvent_enables_optional_features}
%if %{have_weak_deps}
# Optional but recommended
Recommends: perl(Guard)
@ -110,25 +132,32 @@ Requires: perl(Sys::Syslog)
Requires: perl(Task::Weaken)
Requires: perl(Unicode::Normalize)
%endif
%endif
# Optional dependencies we don't want to require
%global optional_deps AnyEvent::AIO
%global optional_deps %{optional_deps}|Cocoa::EventLoop
%global optional_deps %{optional_deps}|EV
%if %{with perl_AnyEvent_enables_Event}
%global optional_deps %{optional_deps}|Event
%endif
%global optional_deps %{optional_deps}|Event::Lib
%global optional_deps %{optional_deps}|EventLoop
%global optional_deps %{optional_deps}|FLTK
%if %{with perl_AnyEvent_enables_Glib}
%global optional_deps %{optional_deps}|Glib
%endif
%global optional_deps %{optional_deps}|IO::AIO
%global optional_deps %{optional_deps}|IO::Async::Loop
%global optional_deps %{optional_deps}|Irssi
%if %{with perl_AnyEvent_enables_POE}
%global optional_deps %{optional_deps}|POE
%endif
%global optional_deps %{optional_deps}|Qt
%global optional_deps %{optional_deps}|Qt::isa
%global optional_deps %{optional_deps}|Qt::slots
%if %{with perl_AnyEvent_enables_Tk}
%global optional_deps %{optional_deps}|Tk
%endif
%global optional_deps %{optional_deps}|UV
# Don't include optional dependencies
@ -139,9 +168,6 @@ Requires: perl(Unicode::Normalize)
# underlying modules are not currently available in Fedora
%global __provides_exclude ^perl[(](AnyEvent(::Impl::(Cocoa|FLTK|UV))?|DB)[)]$
# Remove private test modules
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(.::t/io_common\\)$
%description
AnyEvent provides an identical interface to multiple event loops. This allows
@ -150,25 +176,8 @@ same event loop (as multiple event loops cannot coexist peacefully at any one
time).
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n AnyEvent-%{version}%{?subver}
%patch0 -p1
# Help generators to recognize Perl scripts
for F in $(find t/ -name '*.t'); do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
@ -179,14 +188,23 @@ make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%{_fixperms} -c %{buildroot}
%if !%{with perl_AnyEvent_enables_Event}
rm %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/Event.pm
rm %{buildroot}%{_mandir}/man3/AnyEvent::Impl::Event.3*
%endif
%if !%{with perl_AnyEvent_enables_Glib}
rm %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/Glib.pm
rm %{buildroot}%{_mandir}/man3/AnyEvent::Impl::Glib.3*
%endif
%if !%{with perl_AnyEvent_enables_POE}
rm %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/POE.pm
rm %{buildroot}%{_mandir}/man3/AnyEvent::Impl::POE.3*
%endif
%if !%{with perl_AnyEvent_enables_Tk}
rm %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/Tk.pm
rm %{buildroot}%{_mandir}/man3/AnyEvent::Impl::Tk.3*
%endif
%check
@ -201,7 +219,48 @@ make test
%doc Changes README
%{perl_vendorarch}/AE.pm
%{perl_vendorarch}/AnyEvent.pm
%{perl_vendorarch}/AnyEvent/
%dir %{perl_vendorarch}/AnyEvent/
%{perl_vendorarch}/AnyEvent/constants.pl
%{perl_vendorarch}/AnyEvent/DNS.pm
%{perl_vendorarch}/AnyEvent/Debug.pm
%{perl_vendorarch}/AnyEvent/FAQ.pod
%{perl_vendorarch}/AnyEvent/Handle.pm
%dir %{perl_vendorarch}/AnyEvent/Impl
%{perl_vendorarch}/AnyEvent/Impl/Cocoa.pm
%{perl_vendorarch}/AnyEvent/Impl/EV.pm
%if %{with perl_AnyEvent_enables_Event}
%{perl_vendorarch}/AnyEvent/Impl/Event.pm
%endif
%{perl_vendorarch}/AnyEvent/Impl/EventLib.pm
%{perl_vendorarch}/AnyEvent/Impl/FLTK.pm
%if %{with perl_AnyEvent_enables_Glib}
%{perl_vendorarch}/AnyEvent/Impl/Glib.pm
%endif
%{perl_vendorarch}/AnyEvent/Impl/IOAsync.pm
%{perl_vendorarch}/AnyEvent/Impl/Irssi.pm
%{perl_vendorarch}/AnyEvent/Impl/Perl.pm
%if %{with perl_AnyEvent_enables_POE}
%{perl_vendorarch}/AnyEvent/Impl/POE.pm
%endif
%{perl_vendorarch}/AnyEvent/Impl/Qt.pm
%if %{with perl_AnyEvent_enables_Tk}
%{perl_vendorarch}/AnyEvent/Impl/Tk.pm
%endif
%{perl_vendorarch}/AnyEvent/Impl/UV.pm
%{perl_vendorarch}/AnyEvent/Intro.pod
%{perl_vendorarch}/AnyEvent/IO.pm
%dir %{perl_vendorarch}/AnyEvent/IO
%{perl_vendorarch}/AnyEvent/IO/IOAIO.pm
%{perl_vendorarch}/AnyEvent/IO/Perl.pm
%{perl_vendorarch}/AnyEvent/Log.pm
%{perl_vendorarch}/AnyEvent/Loop.pm
%{perl_vendorarch}/AnyEvent/Socket.pm
%{perl_vendorarch}/AnyEvent/Strict.pm
%{perl_vendorarch}/AnyEvent/TLS.pm
%{perl_vendorarch}/AnyEvent/Util.pm
%dir %{perl_vendorarch}/AnyEvent/Util
%{perl_vendorarch}/AnyEvent/Util/idna.pl
%{perl_vendorarch}/AnyEvent/Util/uts46data.pl
%{_mandir}/man3/AE.3*
%{_mandir}/man3/AnyEvent.3*
%{_mandir}/man3/AnyEvent::DNS.3*
@ -210,16 +269,24 @@ make test
%{_mandir}/man3/AnyEvent::Handle.3*
%{_mandir}/man3/AnyEvent::Impl::Cocoa.3*
%{_mandir}/man3/AnyEvent::Impl::EV.3*
%if %{with perl_AnyEvent_enables_Event}
%{_mandir}/man3/AnyEvent::Impl::Event.3*
%endif
%{_mandir}/man3/AnyEvent::Impl::EventLib.3*
%{_mandir}/man3/AnyEvent::Impl::FLTK.3*
%if %{with perl_AnyEvent_enables_Glib}
%{_mandir}/man3/AnyEvent::Impl::Glib.3*
%endif
%{_mandir}/man3/AnyEvent::Impl::IOAsync.3*
%{_mandir}/man3/AnyEvent::Impl::Irssi.3*
%if %{with perl_AnyEvent_enables_POE}
%{_mandir}/man3/AnyEvent::Impl::POE.3*
%endif
%{_mandir}/man3/AnyEvent::Impl::Perl.3*
%{_mandir}/man3/AnyEvent::Impl::Qt.3*
%if %{with perl_AnyEvent_enables_Tk}
%{_mandir}/man3/AnyEvent::Impl::Tk.3*
%endif
%{_mandir}/man3/AnyEvent::Impl::UV.3*
%{_mandir}/man3/AnyEvent::Intro.3*
%{_mandir}/man3/AnyEvent::IO.3*
@ -233,26 +300,90 @@ make test
%{_mandir}/man3/AnyEvent::Util.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Wed Nov 15 2023 Michal Josef Špaček <mspacek@redhat.com> - 7.14-8
- Update tests for nitrate
Resolves: RHEL-5540
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 7.17-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed Aug 23 2023 Michal Josef Špaček <mspacek@redhat.com> - 7.14-7
- Fix tests run by adding better algorithm
Resolves: rhbz#2108086
- Package tests
Resolves: rhbz#2108086
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 7.17-7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jul 17 2018 Petr Pisar <ppisar@redhat.com> - 7.14-6
- Do not test optional backends
* Tue Jan 26 2021 Petr Pisar <ppisar@redhat.com> - 7.17-6
- Conditionalize POE support
- Conditionalize Tk support
- Conditionalize Glib support
- Conditionalize Event support
* Wed Jul 04 2018 Petr Pisar <ppisar@redhat.com> - 7.14-5
- Disable optional features
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.17-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 7.17-4
- Perl 5.32 re-rebuild of bootstrapped packages
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 7.17-3
- Perl 5.32 rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Sep 18 2019 Paul Howarth <paul@city-fan.org> - 7.17-1
- Update to 7.17
- Work around antique openssl version in RHEL-7 by formatting dh parameters
differently
- Add t/13_weaken.t
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jul 21 2019 Paul Howarth <paul@city-fan.org> - 7.16-1
- Update to 7.16
- Add ffdhe group dh parameters from RFC 7919, and use ffdhe3072 as new
default, instead of schmorp1539
- AnyEvent::Log did not re-assess logging status of AnyEvent::Log::loggers
when contexts were changed with ->attach/detach/slaves, causing them not to
log even though a recent attach should have caused them to log
- Added some more logging configuration examples
- Mention RFC 8482 in AnyEvent::DNS
- ffdhe group dh parameters require OpenSSL 1.0.2 (CPAN RT#130116)
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 7.15-3
- Perl 5.30 re-rebuild of bootstrapped packages
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 7.15-2
- Perl 5.30 rebuild
* Tue Feb 26 2019 Paul Howarth <paul@city-fan.org> - 7.15-1
- Update to 7.15
- INCOMPATIBLE CHANGE: AnyEvent::Handle's tls_detect documentation gave
separate major and minor versions, while code passed only a single value;
this version follows the documentation and now passes separate major and
minor values
- Work around Net::SSLeay not having been ported to openssl 1.1, but many
distributions compiling it against openssl 1.1, which unfortunately
succeeds and results in a very broken module
- AnyEvent::DNS::dns_unpack now stores the original DNS packet in the __
member, to allow decoding of undecodable resource records containing
compressed domain names
- AnyEvent::Socket::parse_ipv6 would NOT, as advertised, accept ipv4
addresses; it now does and converts them to ipv4 mapped addresses
- Support CAA records
- Add freenom and cloudflare nameservers as DNS fallback
- AnyEvent::Strict would not properly ward against io watchers on files when
the handle passed was a file descriptor
- Document "internal" variables used by the DNS en-/decoder to allow
enterprising users to extend them in a semi-official way
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.14-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.14-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 7.14-6
- Perl 5.28 re-rebuild of bootstrapped packages
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 7.14-5
- Perl 5.28 rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.14-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (AnyEvent-7.17.tar.gz) = c553cce80fa14e2f91031c569d1c30acf470871ddd1c122fa3dd36cd1ba5b7002e7ba1dea4c950d889c7c661b81042dd97975e195a5325190ad644babff81e0a