Compare commits

..

1 Commits
c8 ... a8

Author SHA1 Message Date
eabdullin 7df8a744d9 Add patch for tests 2021-12-06 17:11:22 +03:00
3 changed files with 8 additions and 46 deletions

1
.perl-AnyEvent.metadata Normal file
View File

@ -0,0 +1 @@
2e1ebcaaab8a3ffd2238f4a238681661836a5cfc SOURCES/AnyEvent-7.14.tar.gz

View File

@ -1,6 +1,6 @@
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
diff -Naur AnyEvent-7.14/t/80_ssltest.t AnyEvent-7.14.dh/t/80_ssltest.t
--- AnyEvent-7.14/t/80_ssltest.t 2012-05-12 23:06:34.000000000 +0000
+++ AnyEvent-7.14.dh/t/80_ssltest.t 2021-05-14 11:19:54.342751254 +0000
@@ -11,7 +11,7 @@
use AnyEvent::Handle;
use AnyEvent::TLS;

View File

@ -13,14 +13,13 @@
Name: perl-AnyEvent
Version: 7.14
Release: 8%{?dist}
Release: 6%{?dist}.alma
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
Patch0: AnyEvent-7.14-fix_ssltest.patch
# Build requirements
BuildRequires: coreutils
@ -139,9 +138,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 +146,9 @@ 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 +159,6 @@ 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
@ -233,20 +205,9 @@ 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
* 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
* Mon Dec 06 2021 Eduard Abdullin <eabdullin@redhat.com> - 7.14-6.alma
- Patch for tests
* Tue Jul 17 2018 Petr Pisar <ppisar@redhat.com> - 7.14-6
- Do not test optional backends