Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Exception-Base for 
openSUSE:Factory checked in at 2023-08-08 15:55:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Exception-Base (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Exception-Base.new.22712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Exception-Base"

Tue Aug  8 15:55:22 2023 rev:9 rq:1102848 version:0.2501

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Exception-Base/perl-Exception-Base.changes  
2015-11-26 17:02:18.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Exception-Base.new.22712/perl-Exception-Base.changes
       2023-08-08 15:55:39.709266402 +0200
@@ -1,0 +2,5 @@
+Tue Aug  8 09:01:24 UTC 2023 - Dirk Stoecker <[email protected]>
+
+- fix deprecation warning with perl 5.38: fix_perl538.patch
+
+-------------------------------------------------------------------
@@ -25 +29,0 @@
-

New:
----
  fix_perl538.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Exception-Base.spec ++++++
--- /var/tmp/diff_new_pack.lsg356/_old  2023-08-08 15:55:40.325270256 +0200
+++ /var/tmp/diff_new_pack.lsg356/_new  2023-08-08 15:55:40.329270282 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Exception-Base
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,27 +12,29 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define cpan_name Exception-Base
 Name:           perl-Exception-Base
 Version:        0.2501
 Release:        0
-%define cpan_name Exception-Base
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Summary:        Lightweight exceptions
-License:        Artistic-1.0 or GPL-1.0+
-Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/Exception-Base/
-Source0:        
http://www.cpan.org/authors/id/D/DE/DEXTER/%{cpan_name}-%{version}.tar.gz
+URL:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/D/DE/DEXTER/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
+# PATCH-FIX-UPSTREAM deprecated smartmatch operator 
https://github.com/dex4er/perl-Exception-Base/issues/5
+Patch0:         fix_perl538.patch
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Test::Unit::Lite) >= 0.12
 %{perl_requires}
+# MANUAL BEGIN
+BuildRequires:  perl(Module::Build)
+# MANUAL END
 
 %description
 This class implements a fully OO exception mechanism similar to
@@ -72,21 +74,21 @@
   * some defaults (i.e. verbosity) can be different for different exceptions
 
 %prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup  -n %{cpan_name}-%{version} -p0
 
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build build --flags=%{?_smp_mflags}
 
 %check
 ./Build test
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
-%doc Changes examples Incompatibilities LICENSE README README.md
+%doc Changes examples Incompatibilities README README.md
+%license LICENSE
 
 %changelog

++++++ cpanspec.yml ++++++
--- /var/tmp/diff_new_pack.lsg356/_old  2023-08-08 15:55:40.369270532 +0200
+++ /var/tmp/diff_new_pack.lsg356/_new  2023-08-08 15:55:40.373270556 +0200
@@ -4,11 +4,10 @@
 #sources:
 #  - source1
 #  - source2
-#patches:
-#  foo.patch: -p1
-#  bar.patch:
-#preamble: |-
-# BuildRequires:  gcc-c++
+patches:
+  fix_perl538.patch: -p0 PATCH-FIX-UPSTREAM deprecated smartmatch operator 
https://github.com/dex4er/perl-Exception-Base/issues/5
+preamble: |-
+ BuildRequires:  perl(Module::Build)
 #post_prep: |-
 # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
 # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 

++++++ fix_perl538.patch ++++++
--- t/tlib/Exception/BaseTest.pm
+++ t/tlib/Exception/BaseTest.pm
@@ -569,7 +569,8 @@
     $self->assert_matches(qr/String at /, $obj);
 
     # smart matching for Perl 5.10
-    if ($] >= 5.010) {
+    # Deprecation warning added in 5.37.10
+    if ($] >= 5.010 && $] < 5.037010) {
         no if $] >= 5.018, warnings => 'experimental::smartmatch';
         eval q{
             $self->assert_num_equals(1, 'String' ~~ $obj);
 

Reply via email to