From a7c2e38fbc2b78c4e20c82e181ff60fbdbd03c6a97ef504618af2d5b777ee5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 26 Feb 2025 14:02:27 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-Test2-Plugin-NoWarnings revision 2073abbe73e73b14f50abb643c33d716 --- Test2-Plugin-NoWarnings-0.09.tar.gz | 3 --- Test2-Plugin-NoWarnings-0.10.tar.gz | 3 +++ perl-Test2-Plugin-NoWarnings.changes | 13 +++++++++++++ perl-Test2-Plugin-NoWarnings.spec | 29 ++++++++++++++++------------ 4 files changed, 33 insertions(+), 15 deletions(-) delete mode 100644 Test2-Plugin-NoWarnings-0.09.tar.gz create mode 100644 Test2-Plugin-NoWarnings-0.10.tar.gz diff --git a/Test2-Plugin-NoWarnings-0.09.tar.gz b/Test2-Plugin-NoWarnings-0.09.tar.gz deleted file mode 100644 index 8584277..0000000 --- a/Test2-Plugin-NoWarnings-0.09.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be3dd800042eef362bf17d2056cf9e934dee91ccce98e4f178b8fb5772f2fb74 -size 26442 diff --git a/Test2-Plugin-NoWarnings-0.10.tar.gz b/Test2-Plugin-NoWarnings-0.10.tar.gz new file mode 100644 index 0000000..4e504b1 --- /dev/null +++ b/Test2-Plugin-NoWarnings-0.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c97cb1122cc6e3e4a079059da71e12f65760bfb0671d19d25a7ec7c5f1f240fb +size 27614 diff --git a/perl-Test2-Plugin-NoWarnings.changes b/perl-Test2-Plugin-NoWarnings.changes index c211420..937e709 100644 --- a/perl-Test2-Plugin-NoWarnings.changes +++ b/perl-Test2-Plugin-NoWarnings.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Apr 8 03:07:54 UTC 2024 - Tina Müller + +- updated to 0.10 + see /usr/share/doc/packages/perl-Test2-Plugin-NoWarnings/Changes + + 0.10 2024-04-07 + + - Previous, when tests were run via prove without the verbose flag and there + was a warning that caused a test failure, there was no output indicating + that a warning caused the failure. This has now been corrected and you'll + see output that includes "Unexpected warning". Reported by @janlimpens. + ------------------------------------------------------------------- Wed Jul 1 03:14:43 UTC 2020 - Tina Müller diff --git a/perl-Test2-Plugin-NoWarnings.spec b/perl-Test2-Plugin-NoWarnings.spec index a18773a..b9af2a6 100644 --- a/perl-Test2-Plugin-NoWarnings.spec +++ b/perl-Test2-Plugin-NoWarnings.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Test2-Plugin-NoWarnings # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,22 @@ # -Name: perl-Test2-Plugin-NoWarnings -Version: 0.09 -Release: 0 %define cpan_name Test2-Plugin-NoWarnings -Summary: Fail if tests warn +Name: perl-Test2-Plugin-NoWarnings +Version: 0.100.0 +Release: 0 +# 0.10 -> normalize -> 0.100.0 +%define cpan_version 0.10 License: Artistic-2.0 -Group: Development/Libraries/Perl +Summary: Fail if tests warn URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(IPC::Run3) +BuildRequires: perl(Module::Pluggable) BuildRequires: perl(Test2) >= 1.302167 BuildRequires: perl(Test2::API) BuildRequires: perl(Test2::Event) @@ -44,6 +45,9 @@ Requires: perl(Test2::API) Requires: perl(Test2::Event) Requires: perl(Test2::Util::HashBase) Requires: perl(parent) +Provides: perl(Test2::Event::Warning) = %{version} +Provides: perl(Test2::Plugin::NoWarnings) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -55,11 +59,13 @@ This module uses '$SIG{__WARN__}', so if the code you're testing sets this, then this module will stop working. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -70,8 +76,7 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md +%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md %license LICENSE %changelog