commit 2a43b34b1452a606a1b096907e80df4f25073a1f Author: MSVSphere Packaging Team Date: Fri Oct 25 18:07:15 2024 +0300 import perl-Test-Deep-1.204-8.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8468aca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Test-Deep-1.204.tar.gz diff --git a/.perl-Test-Deep.metadata b/.perl-Test-Deep.metadata new file mode 100644 index 0000000..6f89a3e --- /dev/null +++ b/.perl-Test-Deep.metadata @@ -0,0 +1 @@ +4669d04cb2e07cb3c087d921586b1e7a2d9364ef SOURCES/Test-Deep-1.204.tar.gz diff --git a/SPECS/perl-Test-Deep.spec b/SPECS/perl-Test-Deep.spec new file mode 100644 index 0000000..f2799f9 --- /dev/null +++ b/SPECS/perl-Test-Deep.spec @@ -0,0 +1,417 @@ +Name: perl-Test-Deep +Version: 1.204 +Release: 8%{?dist} +Summary: Extremely flexible deep comparison +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Test-Deep +Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Deep-%{version}.tar.gz +BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.12 +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78 +# Module Runtime +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(overload) +BuildRequires: perl(Scalar::Util) >= 1.09 +BuildRequires: perl(strict) +BuildRequires: perl(Test::Builder) +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(if) +BuildRequires: perl(lib) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Tester) >= 0.107 +# Runtime +Requires: perl(Test::Builder) + +# Remove private test modules +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Std\\)$ +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Over\\)$ + +%description +Test::Deep gives you very flexible ways to check that the result you +got is the result you were expecting. At its simplest it compares two +structures by going through each level, ensuring that the values +match, that arrays and hashes have the same elements and that +references are blessed into the correct class. It also handles +circular data structures without getting caught in an infinite loop. + +%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-Deep-%{version} +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_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/00* +# Remove unused test +rm -f %{buildroot}%{_libexecdir}/%{name}/t/regexp.t.orig +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +make test + +%files +%license LICENSE +%doc Changes README TODO +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::Deep.3* +%{_mandir}/man3/Test::Deep::*.3* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 1.204-8 +- Rebuilt for MSVSphere 10 + +* Sat Jul 13 2024 Michal Josef Špaček - 1.204-8 +- Remove not used test file + +* Fri Jul 12 2024 Michal Josef Špaček - 1.204-7 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 1.204-6 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.204-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.204-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.204-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 1.204-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Jan 8 2023 Paul Howarth - 1.204-1 +- Update to 1.204 (rhbz#2159015) + - Try to avoid clobbering global error variables when loading test libraries + - hash_each now enumates keys in sort() order, to make errors more consistent + +* Thu Jan 5 2023 Paul Howarth - 1.202-1 +- Update to 1.202 (rhbz#2158345) + - Converted to Dist::Zilla + - Test::Deep will now require v5.12, and this may go up; this change allows + simplification of the Makefile.PL, which was coping with a mistake made + twelve years ago +- Use SPDX-format license tag +- Package LICENSE file + +* Fri Jul 22 2022 Fedora Release Engineering - 1.130-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1.130-8 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.130-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.130-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.130-5 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.130-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.130-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.130-2 +- Perl 5.32 rebuild + +* Mon Mar 2 2020 Paul Howarth - 1.130-1 +- Update to 1.128 + - Allow 'use Test::Deep' while other modules use Test::Deep::NoTest (GH#76) + - Added true/false optional imports (GH#41, GH#44) + - Documentation fixes (GH#79) +- Use author-independent source URL + +* Thu Jan 30 2020 Fedora Release Engineering - 1.128-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.128-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1.128-5 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.128-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.128-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1.128-2 +- Perl 5.28 rebuild + +* Fri Apr 20 2018 Paul Howarth - 1.128-1 +- Update to 1.128 + - Numerous small improvements to documentation + - Improved CI setup + +* Fri Feb 09 2018 Fedora Release Engineering - 1.127-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.127-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.127-2 +- Perl 5.26 rebuild + +* Thu May 4 2017 Paul Howarth - 1.127-1 +- Update to 1.127 + - Do not eagerly convert simple scalars into tests in the all, any and none + tests; this was breaking LeafWrapper application +- Drop EL-5-isms + - Drop BuildRoot: and Group: tags + - Drop explicit buildroot cleaning in %%install section + - Drop explicit %%clean section + +* Sat Feb 11 2017 Fedora Release Engineering - 1.126-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Jan 1 2017 Paul Howarth - 1.126-1 +- Update to 1.126 + - If objects in the "expected" structure have an as_test_deep_cmp method, it + will be called and its return (which should be a Test::Deep::Cmp object) + will be used as the test for that location in the structure + - Internal undocumented class_base routine has been replaced with a + different, clearly private routine + - The LeafWrapper is also used for objects with an unknown reftype (like + LVALUE or other weird ones) + +* Sun Nov 6 2016 Paul Howarth - 1.124-1 +- Update to 1.124 + - Avoid an uninitialized warning when array_each() compares to a + non-reference + +* Sat Sep 10 2016 Paul Howarth - 1.123-1 +- Update to 1.123 + - Remove test suite reliance on "." appearing @INC + - When an object with stringification overloading fails to match a "re" test, + its stringification is included in the diagnostics + +* Thu Sep 8 2016 Paul Howarth - 1.122-1 +- Update to 1.122 + - Added $Test::Deep::LeafWrapper to control the behavior of simple values in + the "expected" definition + - Documentation improvements + - Avoid a few evals, localize $@ in a few places where eval is used + - Goodbye tabs, hello spaces +- BR: perl-generators +- Simplify find command using -delete + +* Sun May 15 2016 Jitka Plesnikova - 1.120-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.120-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Nov 30 2015 Paul Howarth - 1.120-1 +- Update to 1.120 + - Add none() test; it's like any(), but negative + - Fix stringification of any() expectations + +* Wed Sep 30 2015 Paul Howarth - 0.119-1 +- Update to 0.119 + - Overloading of & and | no longer can change All or Any objects found as + arguments + - An All as an argument to an All constructed is flattened out into its + All-ed values; the same goes for Any + - Remove use of Test::NoWarnings for user-facing tests + +* Mon Jun 22 2015 Paul Howarth - 0.117-1 +- Update to 0.117 + - Do not lose argument(s) to import + (https://github.com/rjbs/Test-Deep/issues/29) + +* Sun Jun 21 2015 Paul Howarth - 0.116-1 +- Update to 0.116 + - On its own, :preload options uses default group of exports + +* Thu Jun 18 2015 Fedora Release Engineering - 0.115-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Jitka Plesnikova - 0.115-2 +- Perl 5.22 rebuild + +* Sat Jan 10 2015 Paul Howarth - 0.115-1 +- Update to 0.115 + - Worked around a bug in chained goto on 5.8.5 + +* Mon Dec 15 2014 Paul Howarth - 0.114-1 +- Update to 0.114 + - Improve prereqs metadata + - Add a noneof() set test + - regexponly hasn't worked... ever; now it does + - Passing :preload to import loads all plugins up front + - A few more tests have been documented + - The many exports of Test::Deep are now documented! + +* Thu Nov 13 2014 Paul Howarth - 0.113-1 +- Update to 0.113 + - Fix a compile error (!!) in RegexpOnly + - Fix some documentation typos + - Add license to META file + +* Wed Aug 27 2014 Jitka Plesnikova - 0.112-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.112-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Nov 30 2013 Paul Howarth - 0.112-1 +- Update to 0.112 + - When printing diagnostics, differentiate the type of a blessed object from + the name of the class itself (CPAN RT#78288) + - Typo fixes + - Fixes to clarity and accuracy of documentation + - Add metadata links to repo and issue tracker + - Added obj_isa for testing ->isa without falling back to ref($x) + - Added the *experimental* ":v1" export group to skip importing Isa, isa, and + blessed + +* Sun Aug 04 2013 Fedora Release Engineering - 0.110-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 0.110-2 +- Perl 5.18 rebuild + +* Wed Feb 20 2013 Paul Howarth - 0.110-1 +- Update to 0.110 + - Allow methods() and listmethods() to work again on class methods + (CPAN RT#77804) +- Drop redundant BR: perl(Data::Dumper) +- Drop arrayeach patch - similar change introduced upstream +- Drop %%defattr, redundant since rpm 4.4 +- Don't need to remove empty directories from the buildroot +- Don't use macros for commands +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Make %%files list more explicit + +* Thu Feb 14 2013 Fedora Release Engineering - 0.108-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 0.108-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 12 2012 Petr Pisar - 0.108-6 +- Perl 5.16 rebuild +- Specify all dependencies + +* Fri Jan 13 2012 Fedora Release Engineering - 0.108-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Marcela Mašláňová - 0.108-4 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.108-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 22 2010 Marcela Maslanova - 0.108-2 +- Rebuild to fix problems with vendorarch/lib (#661697) + +* Sat Dec 18 2010 Steven Pritchard 0.108-1 +- Update to 0.108. +- Update Source0 URL. + +* Thu May 06 2010 Marcela Maslanova - 0.106-3 +- Mass rebuild with perl-5.12.0 + +* Fri Dec 4 2009 Stepan Kasal - 0.106-2 +- rebuild against perl 5.10.1 + +* Fri Oct 30 2009 Stepan Kasal - 0.106-1 +- new upstream version + +* Sun Jul 26 2009 Fedora Release Engineering - 0.103-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.103-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Oct 22 2008 Lubomir Rintel 0.103-2 +- Fix crash on matching array_each() against non-array + +* Wed Jun 04 2008 Steven Pritchard 0.103-1 +- Update to 0.103. + +* Sat May 31 2008 Steven Pritchard 0.102-1 +- Update to 0.102. + +* Fri May 16 2008 Steven Pritchard 0.101-1 +- Update to 0.101. + +* Sat Feb 2 2008 Tom "spot" Callaway 0.100-2 +- rebuild for new perl + +* Mon Jan 28 2008 Steven Pritchard 0.100-1 +- Update to 0.100. + +* Sat Jan 12 2008 Steven Pritchard 0.099-1 +- Update to 0.099. +- Update License tag. + +* Tue Sep 18 2007 Steven Pritchard 0.098-1 +- Update to 0.098. + +* Fri Aug 10 2007 Steven Pritchard 0.097-1 +- Update to 0.097. + +* Wed Apr 18 2007 Steven Pritchard 0.096-2 +- Use fixperms macro instead of our own chmod incantation. +- BR ExtUtils::MakeMaker. + +* Tue Sep 26 2006 Steven Pritchard 0.096-1 +- Update to 0.096. + +* Sat Sep 16 2006 Steven Pritchard 0.095-2 +- Fix find option order. + +* Fri Apr 21 2006 Steven Pritchard 0.095-1 +- Update to 0.095. + +* Sat Apr 08 2006 Steven Pritchard 0.093-1 +- Specfile autogenerated by cpanspec 1.64. +- Improve description. +- Fix License. +- Remove explicit dependency on Test::Tester and Test::NoWarnings.