From 4fc7eb591b8eef9336443ad88fe88aae3b11ba33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Thu, 5 May 2016 12:29:04 +0200
Subject: Adjust tests to gtk3-3.21.1

---
 Gtk3-0.026-Fix-Pango-font-syntax.patch | 37 ++++++++++++++++++++++++++++++++++
 perl-Gtk3.spec                         |  8 +++++++-
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 Gtk3-0.026-Fix-Pango-font-syntax.patch

diff --git a/Gtk3-0.026-Fix-Pango-font-syntax.patch 
b/Gtk3-0.026-Fix-Pango-font-syntax.patch
new file mode 100644
index 0000000..b5d3083
--- /dev/null
+++ b/Gtk3-0.026-Fix-Pango-font-syntax.patch
@@ -0,0 +1,37 @@
+From e2bb149ce9a14a43f6cc58e5664b8cbaac53278b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
+Date: Thu, 5 May 2016 11:22:39 +0200
+Subject: [PATCH] Fix Pango font syntax
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since gtk3-3.21.1, t/overrides.t fails because of old Pango CSS
+syntax:
+
+(overrides.t:2291): Gtk-WARNING **: Theme parsing error: <data>:1:30: Using 
Pango syntax for the font: style property is deprecated; please use CSS syntax
+<data>:1:17not a number at /builddir/build/BUILD/Gtk3-0.026/blib/lib/Gtk3.pm 
line 958.
+
+CPAN RT#114162
+
+Signed-off-by: Petr Písař <[email protected]>
+---
+ t/overrides.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/overrides.t b/t/overrides.t
+index 0488692..fa42f88 100644
+--- a/t/overrides.t
++++ b/t/overrides.t
+@@ -101,7 +101,7 @@ SKIP: {
+     unless Gtk3::CHECK_VERSION (3, 2, 0);
+ 
+   note('Gtk3::CssProvider');
+-  my $css = "GtkButton {font: Cantarelll 10}";
++  my $css = "GtkButton {font-family: Cantarelll; font-size: 10pt}";
+   my $expect = qr/Cantarelll/;
+   my $p = Gtk3::CssProvider->new;
+ 
+-- 
+2.5.5
+
diff --git a/perl-Gtk3.spec b/perl-Gtk3.spec
index c311e94..56f1b0f 100644
--- a/perl-Gtk3.spec
+++ b/perl-Gtk3.spec
@@ -2,12 +2,14 @@
 
 Name:           perl-Gtk3
 Version:        0.026
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Perl interface to the 3.x series of the GTK+ toolkit
 License:        LGPLv2+
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Gtk3/
 Source0:        
http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/Gtk3-%{version}.tar.gz
+# Adjust tests to gtk3-3.21.1, bug #1332962, CPAN RT#114162
+Patch0:         Gtk3-0.026-Fix-Pango-font-syntax.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
 BuildRequires:  findutils
@@ -52,6 +54,7 @@ interface library. Find out more about GTK+ at 
<http://www.gtk.org/>.
 
 %prep
 %setup -q -n Gtk3-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
@@ -77,6 +80,9 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 %{_mandir}/man3/*
 
 %changelog
+* Thu May 05 2016 Petr Pisar <[email protected]> - 0.026-2
+- Adjust tests to gtk3-3.21.1 (bug #1332962)
+
 * Fri Apr 01 2016 Jitka Plesnikova <[email protected]> - 0.026-1
 - 0.026 bump
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Gtk3.git/commit/?h=master&id=4fc7eb591b8eef9336443ad88fe88aae3b11ba33
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to