Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-GDGraph for openSUSE:Factory 
checked in at 2022-03-01 17:04:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-GDGraph (Old)
 and      /work/SRC/openSUSE:Factory/.perl-GDGraph.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-GDGraph"

Tue Mar  1 17:04:00 2022 rev:24 rq:958277 version:1.54

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-GDGraph/perl-GDGraph.changes        
2017-04-12 18:16:58.483521942 +0200
+++ /work/SRC/openSUSE:Factory/.perl-GDGraph.new.1958/perl-GDGraph.changes      
2022-03-01 17:04:50.468353698 +0100
@@ -1,0 +2,13 @@
+Mon Feb 28 09:34:18 UTC 2022 - Pedro Monreal <pmonr...@suse.com>
+
+- Fix line endings in samples/sample64.pl
+- Update the spec file with spec-cleaner
+
+-------------------------------------------------------------------
+Mon Feb 28 09:24:11 UTC 2022 - Pedro Monreal <pmonr...@suse.com>
+
+- Fix logo_xbm_noext test
+  * Upstream PR: https://github.com/mgjv/GDGraph/pull/1
+  * Add perl-GDGraph-XBM-Magic.patch
+
+-------------------------------------------------------------------

New:
----
  perl-GDGraph-XBM-Magic.patch

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

Other differences:
------------------
++++++ perl-GDGraph.spec ++++++
--- /var/tmp/diff_new_pack.HwbaoH/_old  2022-03-01 17:04:50.852353800 +0100
+++ /var/tmp/diff_new_pack.HwbaoH/_new  2022-03-01 17:04:50.856353801 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-GDGraph
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,32 +12,32 @@
 # 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 GDGraph
 Name:           perl-GDGraph
 Version:        1.54
 Release:        0
-%define cpan_name GDGraph
 Summary:        Produces charts with GD
-License:        (Artistic-1.0 or GPL-1.0+) and GPL-2.0+
+License:        (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/GDGraph/
-Source0:        
http://www.cpan.org/authors/id/R/RU/RUZ/%{cpan_name}-%{version}.tar.gz
+URL:            https://metacpan.org/release/GDGraph
+Source0:        
https://cpan.metacpan.org/modules/by-module/GD/GDGraph-%{version}.tar.gz
 Source1:        cpanspec.yml
-BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Patch0:         perl-GDGraph-XBM-Magic.patch
 BuildRequires:  perl
 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.76
 BuildRequires:  perl-macros
 BuildRequires:  perl(Capture::Tiny) >= 0.30
-BuildRequires:  perl(GD) >= 1.18
+BuildRequires:  perl(GD) >= 1.23
 BuildRequires:  perl(GD::Text) >= 0.80
 BuildRequires:  perl(Test::Exception) >= 0.400000
 BuildRequires:  perl(Test::More) >= 0.88
-Requires:       perl(GD) >= 1.18
+Requires:       perl(GD) >= 1.23
 Requires:       perl(GD::Text) >= 0.80
+BuildArch:      noarch
 %{perl_requires}
 
 %description
@@ -45,13 +45,15 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
+perl -pi -e 's/\r\n/\n/' samples/sample64.pl
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor
+%make_build
 
 %check
-%{__make} test
+%make_build test
 
 %install
 %perl_make_install
@@ -60,6 +62,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc CHANGES Dustismo.LICENSE Dustismo_Sans.ttf README samples
+%license Dustismo.LICENSE
+%doc CHANGES Dustismo_Sans.ttf README samples
 
 %changelog

++++++ cpanspec.yml ++++++
--- /var/tmp/diff_new_pack.HwbaoH/_old  2022-03-01 17:04:50.888353809 +0100
+++ /var/tmp/diff_new_pack.HwbaoH/_new  2022-03-01 17:04:50.892353810 +0100
@@ -4,14 +4,12 @@
 #sources:
 #  - source1
 #  - source2
-#patches:
-#  foo.patch: -p1
-#  bar.patch:
+patches:
+  perl-GDGraph-XBM-Magic.patch: -p1
 #preamble: |-
 # BuildRequires:  gcc-c++
-#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 
+post_prep: |-
+  perl -pi -e 's/\r\n/\n/' samples/sample64.pl
 #post_install: |-
 # sed on %{name}.files
 # Dustismo font is GPL-2.0+ licensed

++++++ perl-GDGraph-XBM-Magic.patch ++++++
>From 96862391296b235c60e0e36140f8ea498f70a74d Mon Sep 17 00:00:00 2001
From: Reini Urban <rur...@cpan.org>
Date: Tue, 1 Feb 2022 15:10:53 +0100
Subject: [PATCH] fix logo_xbm_noext test

causing t/bugfixes.t to fail with latest GD
provide xbm magic, which has no newFromXbmData method.
---
 Graph.pm        | 6 +++++-
 t/images/main.c | 8 ++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 t/images/main.c

diff --git a/Graph.pm b/Graph.pm
index 816c99a..f12d588 100644
--- a/Graph.pm
+++ b/Graph.pm
@@ -347,7 +347,8 @@ sub _read_logo_file
             pack("H8",'ffd8ffe0') => "jpeg",
             'GIF8' => "gif",
             '.PNG' => "png",
-            '/* X'=> "xpm", # technically '/* XPM */', but I'm hashing, here
+            '/* X' => "xpm", # technically '/* XPM */', but I'm hashing, here
+            '#def' => "xbm",
         );
         if (my $match = $magic{ substr $logodata, 0, 4 }) {
             push @tried, $match;
@@ -362,6 +363,9 @@ sub _read_logo_file
                     $glogo = GD::Image->$gdimport(\*LOGO);
                 }
             }
+        } elsif ($logo_path =~ /_xbm_/) { # no magic possible for xbm
+            push @tried, 'xbm';
+            $glogo = GD::Image->newFromXbm($logo_path);
         # should this actually be "if (!$glogo), rather than an else?          
  
         } else { # Hail Mary, full of Grace!  Blessed art thou among women...
             push @tried, 'libgd best-guess';
diff --git a/t/images/main.c b/t/images/main.c
new file mode 100644
index 0000000..6d64b11
--- /dev/null
+++ b/t/images/main.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+#include "logo_xbm_noext.c"
+
+void main() {
+  FILE *f = fopen ("logo_xbm_noext", "w");
+  fwrite (logo_bits, sizeof(logo_bits), 1, f);
+  fclose (f);
+}

Reply via email to