Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Image-Size for openSUSE:Factory checked in at 2021-03-02 12:34:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Image-Size (Old) and /work/SRC/openSUSE:Factory/.perl-Image-Size.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Image-Size" Tue Mar 2 12:34:27 2021 rev:28 rq:875945 version:3.300 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Image-Size/perl-Image-Size.changes 2015-04-21 10:51:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Image-Size.new.2378/perl-Image-Size.changes 2021-03-02 12:45:53.512378090 +0100 @@ -1,0 +2,6 @@ +Mon Mar 1 10:19:24 UTC 2021 - Dirk Stoecker <opens...@dstoecker.de> + +- add fix for JPEG markers starting with 0x00 + (Image-Size-3.300_Fix_JPEG_00_Markers.patch) + +------------------------------------------------------------------- New: ---- Image-Size-3.300_Fix_JPEG_00_Markers.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Image-Size.spec ++++++ --- /var/tmp/diff_new_pack.ayJj9k/_old 2021-03-02 12:45:53.988378501 +0100 +++ /var/tmp/diff_new_pack.ayJj9k/_new 2021-03-02 12:45:53.992378504 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Image-Size # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,29 +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 Image-Size Name: perl-Image-Size Version: 3.300 Release: 0 -#Upstream: Artistic-1.0 or GPL-1.0+ -%define cpan_name Image-Size -Summary: Read the Dimensions of an Image in Several Popular Formats -License: LGPL-2.1 or Artistic-1.0 -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Image-Size/ -Source0: http://www.cpan.org/authors/id/R/RJ/RJRAY/%{cpan_name}-%{version}.tar.gz +#Upstream: Artistic-1.0 or GPL-1.0-or-later +Summary: Read the dimensions of an image in several popular formats +License: LGPL-2.1-only OR Artistic-1.0 +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJRAY/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml Patch0: endian.patch +# PATCH-FIX-UPSTREAM do not fail on JPEG files with 0x00XX markers +Patch1: Image-Size-3.300_Fix_JPEG_00_Markers.patch BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.42 +BuildRequires: perl(Module::Build) >= 0.420000 BuildRequires: perl(Test::More) >= 0.80 -Requires: perl(Module::Build) >= 0.28 +Requires: perl(Module::Build) >= 0.280000 Requires: perl(Test::More) >= 0.80 Recommends: perl(Compress::Zlib) >= 2 %{perl_requires} @@ -47,16 +47,15 @@ bulleted lists, for example) do not result in repeated computations. %prep -%setup -q -n %{cpan_name}-%{version} -%patch0 -p1 -find . -type f -print0 | xargs -0 chmod 644 +%autosetup -n %{cpan_name}-%{version} -p1 +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -64,7 +63,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc ChangeLog ChangeLog.xml etc ex imgsize README README.textile +%doc ChangeLog ChangeLog.xml imgsize README README.textile %changelog ++++++ Image-Size-3.300_Fix_JPEG_00_Markers.patch ++++++ diff -ur Image-Size-3.300/lib/Image/Size.pm Image-Size-3.300_fix/lib/Image/Size.pm --- Image-Size-3.300/lib/Image/Size.pm 2015-02-28 18:00:55.000000000 +0100 +++ Image-Size-3.300_fix/lib/Image/Size.pm 2021-03-01 11:17:29.058012588 +0100 @@ -604,6 +604,7 @@ my $stream = shift; my $MARKER = chr 0xff; # Section marker + my $MARKER2 = chr 0x00; # some sections also use 0x00 my $SIZE_FIRST = 0xC0; # Range of segment identifier codes my $SIZE_LAST = 0xC3; # that hold size info. @@ -630,7 +631,7 @@ $length = unpack 'n', $segheader; # Verify that it's a valid segment. - if ($marker ne $MARKER) + if ($marker ne $MARKER && $marker ne $MARKER2) { # Was it there? $id = 'JPEG marker not found'; ++++++ cpanspec.yml ++++++ --- /var/tmp/diff_new_pack.ayJj9k/_old 2021-03-02 12:45:54.024378532 +0100 +++ /var/tmp/diff_new_pack.ayJj9k/_new 2021-03-02 12:45:54.024378532 +0100 @@ -6,6 +6,7 @@ # - source2 patches: endian.patch: -p1 + Image-Size-3.300_Fix_JPEG_00_Markers.patch: -p1 PATCH-FIX-UPSTREAM do not fail on JPEG files with 0x00XX markers # foo.patch: -p1 # bar.patch: #preamble: |-