Hello community, here is the log from the commit of package perl-Gtk3 for openSUSE:Factory checked in at 2019-10-27 13:41:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Gtk3 (Old) and /work/SRC/openSUSE:Factory/.perl-Gtk3.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Gtk3" Sun Oct 27 13:41:22 2019 rev:2 rq:743017 version:0.036 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Gtk3/perl-Gtk3.changes 2019-07-31 14:32:13.329963452 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Gtk3.new.2990/perl-Gtk3.changes 2019-10-27 13:41:29.813301923 +0100 @@ -1,0 +2,18 @@ +Fri Oct 25 18:40:36 UTC 2019 - Tina Mueller <[email protected]> + +- Require typelib(GdkPixdata) only in suse 01550 and higher + +------------------------------------------------------------------- +Mon Oct 21 15:59:32 UTC 2019 - Tina Mueller <[email protected]> + +- Added manual dependencies: + * BuildRequires: typelib(GdkPixdata) = 2.0 + * BuildRequires: typelib(Gtk) = 3.0 + +------------------------------------------------------------------- +Wed Aug 28 05:14:10 UTC 2019 - Stephan Kulow <[email protected]> + +- updated to 0.036 + see /usr/share/doc/packages/perl-Gtk3/ + +------------------------------------------------------------------- Old: ---- Gtk3-0.035.tar.gz New: ---- Gtk3-0.036.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Gtk3.spec ++++++ --- /var/tmp/diff_new_pack.A0D6eY/_old 2019-10-27 13:41:30.201302392 +0100 +++ /var/tmp/diff_new_pack.A0D6eY/_new 2019-10-27 13:41:30.201302392 +0100 @@ -17,14 +17,15 @@ Name: perl-Gtk3 -Version: 0.035 +Version: 0.036 Release: 0 %define cpan_name Gtk3 Summary: Perl interface to the 3.x series of the gtk+ toolkit License: LGPL-2.1-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Gtk3/ +Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/X/XA/XAOC/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -32,11 +33,16 @@ BuildRequires: perl(Cairo::GObject) >= 1.000 BuildRequires: perl(Glib::Object::Introspection) >= 0.043 BuildRequires: perl(Test::Simple) >= 0.96 -BuildRequires: typelib(Gtk) = 3.0 Requires: perl(Cairo::GObject) >= 1.000 Requires: perl(Glib::Object::Introspection) >= 0.043 Requires: perl(Test::Simple) >= 0.96 %{perl_requires} +# MANUAL BEGIN +BuildRequires: typelib(Gtk) = 3.0 +%if 0%{?suse_version} >= 01550 +BuildRequires: typelib(GdkPixdata) = 2.0 +%endif +# MANUAL END %description The 'Gtk3' module allows a Perl developer to use the gtk+ graphical user @@ -57,8 +63,11 @@ %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test %install %perl_make_install ++++++ Gtk3-0.035.tar.gz -> Gtk3-0.036.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/META.json new/Gtk3-0.036/META.json --- old/Gtk3-0.035/META.json 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/META.json 2019-08-27 07:00:11.000000000 +0200 @@ -44,7 +44,7 @@ "x_IRC" : "irc://irc.gimp.org/#gtk-perl", "x_twitter" : "https://twitter.com/GTKPerl" }, - "version" : "0.035", + "version" : "0.036", "x_generated_by_perl" : "v5.28.1", "x_serialization_backend" : "Cpanel::JSON::XS version 4.08" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/META.yml new/Gtk3-0.036/META.yml --- old/Gtk3-0.035/META.yml 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/META.yml 2019-08-27 07:00:11.000000000 +0200 @@ -24,6 +24,6 @@ bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Gtk3 homepage: http://gtk2-perl.sourceforge.net repository: git://git.gnome.org/perl-Gtk3 -version: '0.035' +version: '0.036' x_generated_by_perl: v5.28.1 x_serialization_backend: 'YAML::Tiny version 1.73' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/Makefile.PL new/Gtk3-0.036/Makefile.PL --- old/Gtk3-0.035/Makefile.PL 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/Makefile.PL 2019-08-27 07:00:11.000000000 +0200 @@ -22,7 +22,7 @@ "Glib::Object::Introspection" => "0.043", "Test::Simple" => "0.96" }, - "VERSION" => "0.035", + "VERSION" => "0.036", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/NEWS new/Gtk3-0.036/NEWS --- old/Gtk3-0.035/NEWS 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/NEWS 2019-08-27 07:00:11.000000000 +0200 @@ -1,3 +1,10 @@ +Overview of changes in Gtk3 0.036 [2019-08-26] +============================================== + +* Use a temporary, writable directory as $HOME while running tests + (GNOME/perl-gtk3!1) +* Avoid using deprecated gdk_pixbuf_new_from_inline() (GNOME/perl-gtk3!2) + Overview of changes in Gtk3 0.035 [2019-05-01] ============================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/dist.ini new/Gtk3-0.036/dist.ini --- old/Gtk3-0.035/dist.ini 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/dist.ini 2019-08-27 07:00:11.000000000 +0200 @@ -1,5 +1,5 @@ name = Gtk3 -version = 0.035 +version = 0.036 author = Torsten Schoenfeld <[email protected]> license = LGPL_2_1 copyright_holder = Torsten Schoenfeld diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/lib/Gtk3.pm new/Gtk3-0.036/lib/Gtk3.pm --- old/Gtk3-0.035/lib/Gtk3.pm 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/lib/Gtk3.pm 2019-08-27 07:00:11.000000000 +0200 @@ -1,5 +1,5 @@ package Gtk3; -$Gtk3::VERSION = '0.035'; +$Gtk3::VERSION = '0.036'; =encoding utf8 =head1 NAME @@ -2121,30 +2121,41 @@ } =item * C<Gtk3::Gdk::Pixbuf::new_from_data> is reimplemented in terms of -C<new_from_inline> for correct memory management. No C<destroy_fn> and +C<new_from_bytes> (with gdk-pixbuf >= 2.32) or C<new_from_inline> (with +gtk-pixbuf < 2.32) for correct memory management. No C<destroy_fn> and C<destroy_fn_data> arguments are needed. =cut sub Gtk3::Gdk::Pixbuf::new_from_data { my ($class, $data, $colorspace, $has_alpha, $bits_per_sample, $width, $height, $rowstride) = @_; - die 'Only RGB is currently supported' unless $colorspace eq 'rgb'; - die 'Only 8 bits per pixel are currently supported' unless $bits_per_sample == 8; - my $length = Gtk3::Gdk::PIXDATA_HEADER_LENGTH () + - $rowstride*$height; - my $type = Gtk3::Gdk::PixdataType->new ([qw/sample_width_8 encoding_raw/]); - $type |= $has_alpha ? 'color_type_rgba' : 'color_type_rgb'; - my @header_numbers = (0x47646b50, - $length, - $$type, # FIXME: This kind of breaks encapsulation. - $rowstride, - $width, - $height); - # Convert to 8 bit unsigned chars, padding to 32 bit little-endian first. - my @header = map { unpack ("C*", pack ("N", $_)) } @header_numbers; - my $inline_data = _unpack_unless_array_ref ($data); - unshift @$inline_data, @header; - return Gtk3::Gdk::Pixbuf->new_from_inline ($inline_data); + if (Gtk3::Gdk::Pixbuf::CHECK_VERSION (2, 32, 0)) { + my $packed_data = ref($data) eq 'ARRAY' ? pack 'C*', @$data : $data; + return Gtk3::Gdk::Pixbuf->new_from_bytes( + Glib::Bytes->new($packed_data), + $colorspace, $has_alpha, + $bits_per_sample, $width, + $height, $rowstride); + } else { + die 'Only RGB is currently supported' unless $colorspace eq 'rgb'; + die 'Only 8 bits per pixel are currently supported' + unless $bits_per_sample == 8; + my $length = Gtk3::Gdk::PIXDATA_HEADER_LENGTH () + + $rowstride*$height; + my $type = Gtk3::Gdk::PixdataType->new ([qw/sample_width_8 encoding_raw/]); + $type |= $has_alpha ? 'color_type_rgba' : 'color_type_rgb'; + my @header_numbers = (0x47646b50, + $length, + $$type, # FIXME: This kind of breaks encapsulation. + $rowstride, + $width, + $height); + # Convert to 8 bit unsigned chars, padding to 32 bit little-endian first. + my @header = map { unpack ("C*", pack ("N", $_)) } @header_numbers; + my $inline_data = _unpack_unless_array_ref ($data); + unshift @$inline_data, @header; + return Gtk3::Gdk::Pixbuf->new_from_inline ($inline_data); + } } =item * C<Gtk3::Gdk::Pixbuf::new_from_inline> does not take a C<copy_pixels> @@ -2386,7 +2397,7 @@ } package Gtk3::Gdk::EventMask; -$Gtk3::Gdk::EventMask::VERSION = '0.035'; +$Gtk3::Gdk::EventMask::VERSION = '0.036'; use overload '==' => \&eq, '>=' => \≥ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gtk3-0.035/t/inc/setup.pl new/Gtk3-0.036/t/inc/setup.pl --- old/Gtk3-0.035/t/inc/setup.pl 2019-05-02 00:36:14.000000000 +0200 +++ new/Gtk3-0.036/t/inc/setup.pl 2019-08-27 07:00:11.000000000 +0200 @@ -21,4 +21,7 @@ return 0; } +use File::Temp qw{tempdir}; +$ENV{HOME} = tempdir(CLEANUP => 1); + 1; ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: preamble: |- BuildRequires: typelib(Gtk) = 3.0 %if 0%{?suse_version} >= 01550 BuildRequires: typelib(GdkPixdata) = 2.0 %endif #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_build: |- # rm unused.files #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module
