From a184305c4525b4a728ffeffbe7799683340b6b41 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 15:23:38 +0000 Subject: [PATCH] import UBI perl-Test-Simple-1.302199-513.el10 --- .gitignore | 2 +- .perl-Test-Simple.metadata | 1 - ...-Test-Simple.spec => perl-Test-Simple.spec | 283 +++++++++++++++++- sources | 1 + 4 files changed, 278 insertions(+), 9 deletions(-) delete mode 100644 .perl-Test-Simple.metadata rename SPECS/perl-Test-Simple.spec => perl-Test-Simple.spec (72%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index 3c8ed31..d700d56 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Test-Simple-1.302170.tar.gz +Test-Simple-1.302199.tar.gz diff --git a/.perl-Test-Simple.metadata b/.perl-Test-Simple.metadata deleted file mode 100644 index 4c57ccf..0000000 --- a/.perl-Test-Simple.metadata +++ /dev/null @@ -1 +0,0 @@ -9e7b94ba932da0f5bffb355472b1bbf66c9da835 SOURCES/Test-Simple-1.302170.tar.gz diff --git a/SPECS/perl-Test-Simple.spec b/perl-Test-Simple.spec similarity index 72% rename from SPECS/perl-Test-Simple.spec rename to perl-Test-Simple.spec index e7a6fd5..a8687b3 100644 --- a/SPECS/perl-Test-Simple.spec +++ b/perl-Test-Simple.spec @@ -1,4 +1,9 @@ %if ! (0%{?rhel}) +%bcond_without perl_Test_Simple_enables_Module_Pluggable +%else +%bcond_with perl_Test_Simple_enables_Module_Pluggable +%endif +%if ! (0%{?rhel}) %bcond_without perl_Test_Simple_enables_optional_test %else %bcond_with perl_Test_Simple_enables_optional_test @@ -7,17 +12,18 @@ Name: perl-Test-Simple Summary: Basic utilities for writing tests Epoch: 3 -Version: 1.302170 -Release: 1%{?dist} -# CC0: lib/ok.pm +Version: 1.302199 +Release: 513%{?dist} +# CC0-1.0: lib/ok.pm # Public Domain: lib/Test/Tutorial.pod -# GPL+ or Artistic: the rest of the distribution -License: (GPL+ or Artistic) and CC0 and Public Domain +# GPL-1.0-or-later OR Artistic-1.0-Perl: the rest of the distribution +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND CC0-1.0 AND LicenseRef-Fedora-Public-Domain URL: https://metacpan.org/release/Test-Simple Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Simple-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: coreutils +BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter @@ -31,7 +37,13 @@ BuildRequires: perl(Exporter) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) BuildRequires: perl(IO::Handle) +BuildRequires: perl(JSON::PP) BuildRequires: perl(List::Util) +%if %{with perl_Test_Simple_enables_Module_Pluggable} && !%{defined perl_bootstrap} +BuildRequires: perl(Module::Pluggable) +%endif +# mro used since Perl 5.010 +BuildRequires: perl(mro) BuildRequires: perl(overload) BuildRequires: perl(PerlIO) >= 1.02 BuildRequires: perl(POSIX) @@ -43,11 +55,13 @@ BuildRequires: perl(Term::ANSIColor) %if !%{defined perl_bootstrap} BuildRequires: perl(Term::Table) %endif +BuildRequires: perl(Time::HiRes) BuildRequires: perl(vars) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(Cwd) BuildRequires: perl(File::Basename) +BuildRequires: perl(if) BuildRequires: perl(IO::Pipe) BuildRequires: perl(lib) BuildRequires: perl(threads) @@ -65,9 +79,14 @@ BuildRequires: perl(Test::Pod) >= 0.95 BuildRequires: perl(Test::Script) %endif %endif -# Runtime -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Dependencies Requires: perl(Data::Dumper) +Requires: perl(JSON::PP) +%if %{with perl_Test_Simple_enables_Module_Pluggable} && !%{defined perl_bootstrap} +Suggests: perl(Module::Pluggable) +%endif +# mro used since Perl 5.010 +Requires: perl(mro) Requires: perl(Term::ANSIColor) %if !%{defined perl_bootstrap} Requires: perl(Term::Table) @@ -75,14 +94,37 @@ Requires: perl(Term::Table) %{?perl_default_filter} +# Remove private test modules +%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Dev::Null|MyOverload|MyTest|SmallTest|Test::Builder::NoOutput|Test::Simple::Catch|TieOut|main::HBase|main::HBase::Wrapped)\\)$ +%if %{without perl_Test_Simple_enables_optional_test} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Test::Script|Test::Class)\\)$ +%endif + %description This package provides the bulk of the core testing facilities. For more information, see perldoc for Test::Simple, Test::More, etc. This package is the CPAN component of the dual-lifed core package Test-Simple. +%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 Test-Simple-%{version} +# 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#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done +# Update line after previous update +perl -pi -e "s/line 9/line 10/" t/Legacy_And_Test2/diag_event_on_ok.t %build perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 @@ -91,6 +133,19 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 %install %{make_install} %{_fixperms} -c %{buildroot} +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +# Remove author tests +rm -f %{buildroot}%{_libexecdir}/%{name}/t/00compile.t +# Remove tests, which are not compatible with running outside of t/ directory +rm -f %{buildroot}%{_libexecdir}/%{name}/t/Legacy/More.t +rm -f %{buildroot}%{_libexecdir}/%{name}/t/Legacy/fail-more.t +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check make test %{!?perl_bootstrap:AUTHOR_TESTING=1} @@ -130,6 +185,10 @@ make test %{!?perl_bootstrap:AUTHOR_TESTING=1} %{_mandir}/man3/Test2::API::Breakage.3* %{_mandir}/man3/Test2::API::Context.3* %{_mandir}/man3/Test2::API::Instance.3* +%{_mandir}/man3/Test2::API::InterceptResult.3* +%{_mandir}/man3/Test2::API::InterceptResult::Event.3* +%{_mandir}/man3/Test2::API::InterceptResult::Hub.3* +%{_mandir}/man3/Test2::API::InterceptResult::Squasher.3* %{_mandir}/man3/Test2::API::Stack.3* %{_mandir}/man3/Test2::Event.3* %{_mandir}/man3/Test2::Event::Bail.3* @@ -178,7 +237,217 @@ make test %{!?perl_bootstrap:AUTHOR_TESTING=1} %{_mandir}/man3/Test2::Util::HashBase.3* %{_mandir}/man3/Test2::Util::Trace.3* +%files tests +%{_libexecdir}/%{name} + %changelog +* Tue Oct 29 2024 Troy Dawson - 3:1.302199-513 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Aug 26 2024 Jitka Plesnikova - 3:1.302199-512 +- Fix filters of dependencies + +* Fri Aug 09 2024 Jitka Plesnikova - 3:1.302199-511 +- Perl 5.40 re-rebuild of bootstrapped packages + +* Thu Jul 18 2024 Jitka Plesnikova - 3:1.302199-510 +- Increase release to favour standalone package + +* Thu Jul 18 2024 Jitka Plesnikova - 3:1.302199-1 +- Update to 1.302199 + +* Fri Jul 12 2024 Michal Josef Špaček - 3:1.302198-6 +- Fix automatic detection of requires in *tests package + +* Thu Jul 11 2024 Michal Josef Špaček - 3:1.302198-5 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 3:1.302198-4 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 3:1.302198-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 3:1.302198-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 1 2023 Paul Howarth - 3:1.302198-1 +- Update to 1.302198 + - Remove use of defined-or operator + +* Wed Nov 29 2023 Paul Howarth - 3:1.302197-1 +- Update to 1.302197 + - Add ability to attach timestamps to trace objects via API or environment + variable + +* Wed Oct 25 2023 Paul Howarth - 3:1.302196-1 +- Update to 1.302196 + - Raise error on missing Hub ID, which should never happen (GH#882) + - Fix handling of VSTRING and LVALUE refs in is_deeply() (GH#918) + - Merge several documentation fixes (GH#910, GH#911, GH#912) + +* Fri Jul 21 2023 Fedora Release Engineering - 3:1.302195-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Jitka Plesnikova - 3:1.302195-4 +- Perl 5.38 re-rebuild of bootstrapped packages + +* Tue Jul 11 2023 Jitka Plesnikova - 3:1.302195-3 +- Perl 5.38 rebuild + +* Thu May 25 2023 Paul Howarth - 3:1.302195-2 +- Use SPDX-format license tag + +* Fri Apr 28 2023 Paul Howarth - 3:1.302195-1 +- Update to 1.302195 + - Fix done_testing(0) producing 2 plans and an incorrect message + +* Wed Mar 15 2023 Paul Howarth - 3:1.302194-1 +- Update to 1.302194 + - Fix failing test on 5.10 + +* Mon Mar 6 2023 Paul Howarth - 3:1.302193-1 +- Update to 1.302193 + - Deprecate isn't() + +* Thu Feb 2 2023 Paul Howarth - 3:1.302192-1 +- Update to 1.302192 + - Silence deprecation warning when testing smartmatch + +* Fri Jan 20 2023 Fedora Release Engineering - 3:1.302191-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 3:1.302191-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jul 11 2022 Paul Howarth - 3:1.302191-1 +- Update to 1.302191 + - CI fixes + - Avoid failing when printing diagnostic info comparing partial overload + objects + +* Fri Jun 03 2022 Jitka Plesnikova - 3:1.302190-489 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Mon May 30 2022 Jitka Plesnikova - 3:1.302190-488 +- Increase release to favour standalone package + +* Sat Mar 5 2022 Paul Howarth - 3:1.302190-1 +- Update to 1.302190 + - Fix subtest times to be hi-res + +* Fri Feb 25 2022 Paul Howarth - 3:1.302189-1 +- Update to 1.302189 + - GH#890, GH#891: Methods used in overload should always be invoked with 3 + parameters + +* Fri Jan 21 2022 Fedora Release Engineering - 3:1.302188-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Sep 29 2021 Paul Howarth - 3:1.302188-1 +- Update to 1.302188 + - Fix for non-gcc compilers on 5.10.0 + +* Sat Sep 18 2021 Paul Howarth - 3:1.302187-1 +- Update to 1.302187 + - Fix tests for core boolean support + +* Tue Jul 27 2021 Paul Howarth - 3:1.302186-1 +- Update to 1.302186 + - Add start/stop timestamps to subtests + +* Fri Jul 23 2021 Fedora Release Engineering - 3:1.302185-479 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 24 2021 Jitka Plesnikova - 3:1.302185-478 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 3:1.302185-477 +- Increase release to favour standalone package + +* Thu May 20 2021 Paul Howarth - 3:1.302185-1 +- Update to 1.302185 + - Fix Test::Builder->skip to stringify arguments + +* Wed Jan 27 2021 Fedora Release Engineering - 3:1.302183-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Oct 22 2020 Paul Howarth - 3:1.302183-1 +- Update to 1.302183 + - Avoid closing over scalar in BEGIN block in cmp_ok eval + +* Thu Oct 15 2020 Petr Pisar - 3:1.302182-2 +- Demote Module::Pluggable hard dependency to Suggests level + +* Tue Oct 6 2020 Paul Howarth - 3:1.302182-1 +- Update to 1.302182 + - Fix 5.6 support + - Fix fragile %%INC handling in a test + +* Mon Sep 14 2020 Paul Howarth - 3:1.302181-1 +- Update to 1.302181 + - Put try_sig_mask back where it goes (and add test to prevent this in the + future) + - Drop new List::Util requirement back down + +* Mon Sep 14 2020 Paul Howarth - 3:1.302180-1 +- Update to 1.302180 + - Move try_sig_mask to the only module that uses it + - Inherit warnings bitmask in cmp_ok string eval + - Update copyright date + - Improved API for intercept {} and what it returns + - Bump minimum List::Util version (for uniq) + +* Fri Aug 07 2020 Petr Pisar - 3:1.302177-1 +- Update to 1.302177 + - Minor fix to author downstream test + - No significant changes since the last trial + - Fix Test::More's $TODO inside intercept (#862) + +* Tue Jul 28 2020 Fedora Release Engineering - 3:1.302175-458 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Jitka Plesnikova - 3:1.302175-457 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Mon Jun 22 2020 Jitka Plesnikova - 3:1.302175-456 +- Increase release to favour standalone package + +* Tue Apr 14 2020 Paul Howarth - 3:1.302175-1 +- Update to 1.302175 + - Fix typos in POD + - Fix incorrect Test2::Hub documentation + - Fix test that needed . in @INC on Windows + - Fix Breakage test to show more info + +* Tue Mar 31 2020 Paul Howarth - 3:1.302174-1 +- Update to 1.302174 + - Fall back to Data::Dumper if JSON::PP is not available during IPC errors + +* Fri Mar 27 2020 Paul Howarth - 3:1.302173-1 +- Update to 1.302173 + - Add extra debugging for "Not all files from hub '...' have been collected!" + +* Mon Mar 9 2020 Paul Howarth - 3:1.302172-1 +- Update to 1.302172 + - Fix transition documentation + - Fix warnings from info/debug tap + +* Thu Jan 30 2020 Fedora Release Engineering - 3:1.302171-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Jan 19 2020 Paul Howarth - 3:1.302171-1 +- Update to 1.302171 + - Fix 5.6 + - Fix EBCDIC + - Upgrade Object::HashBase + - Clarify error message in test (GH#841) + - Spelling/Grammar fixes + +* Thu Jan 02 2020 Petr Pisar - 3:1.302170-2 +- Require mro + * Tue Dec 3 2019 Paul Howarth - 3:1.302170-1 - Update to 1.302170 - Fix unwanted END phase event (GH#840) diff --git a/sources b/sources new file mode 100644 index 0000000..b523296 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Test-Simple-1.302199.tar.gz) = ae3670ed55d75d7b3f2016f94aa2f9577c6bd2f6822c32476a70b343b2357df4c13db8ab98404cd4467a06878d33eaad07d557022a1e1d198a0860a53f2b21a5