|
|
|
@ -13,12 +13,14 @@
|
|
|
|
|
|
|
|
|
|
Name: perl-AnyEvent
|
|
|
|
|
Version: 7.14
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# Build requirements
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
@ -137,6 +139,9 @@ 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
|
|
|
|
@ -145,8 +150,25 @@ 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
|
|
|
|
@ -157,6 +179,14 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -203,10 +233,24 @@ make test
|
|
|
|
|
%{_mandir}/man3/AnyEvent::Util.3*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 7.14-6
|
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 7.14-8
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Wed Nov 15 2023 Michal Josef Špaček <mspacek@redhat.com> - 7.14-8
|
|
|
|
|
- Update tests for nitrate
|
|
|
|
|
Resolves: RHEL-5540
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Tue Jul 17 2018 Petr Pisar <ppisar@redhat.com> - 7.14-6
|
|
|
|
|
- Do not test optional backends
|
|
|
|
|
|
|
|
|
|