Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-AnyEvent.git#5329b643b1c3c3c6c9a4366a3500ef3bd5e70a3e
This commit is contained in:
DistroBaker 2021-01-26 15:44:36 +00:00
parent ec18f36ace
commit 678fdc65eb

View File

@ -1,5 +1,33 @@
#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}
@ -8,7 +36,7 @@
Name: perl-AnyEvent
Version: 7.17
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Framework for multiple event loops
License: GPL+ or Artistic
URL: https://metacpan.org/release/AnyEvent
@ -61,10 +89,18 @@ BuildRequires: perl(warnings)
# AnyEvent::AIO, EV and IO::Async::Loop are not (yet) in EPEL-7
# Test suite does not currently test the Qt event loop
%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
@ -101,19 +137,27 @@ Requires: perl(Unicode::Normalize)
%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
@ -145,6 +189,22 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_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
@ -159,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*
@ -168,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*
@ -192,6 +301,12 @@ make test
%changelog
* Tue Jan 26 2021 Petr Pisar <ppisar@redhat.com> - 7.17-6
- Conditionalize POE support
- Conditionalize Tk support
- Conditionalize Glib support
- Conditionalize Event support
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.17-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild