From 3d3716200ab55b7be77b40d106e8bd9e11df1146 Mon Sep 17 00:00:00 2001
From: Tom Callaway <s...@fedoraproject.org>
Date: Mon, 17 Apr 2017 14:49:16 -0400
Subject: 0.9931

---
 .gitignore                        |  1 +
 perl-Wx-0.9931-keymap-fixes.patch | 12 ++++++++++++
 perl-Wx.spec                      | 12 +++++++++---
 sources                           |  2 +-
 4 files changed, 23 insertions(+), 4 deletions(-)
 create mode 100644 perl-Wx-0.9931-keymap-fixes.patch

diff --git a/.gitignore b/.gitignore
index 782c499..34b3eb1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@ Wx-0.92.tar.gz
 /Wx-0.9926.tar.gz
 /Wx-0.9927.tar.gz
 /Wx-0.9928.tar.gz
+/Wx-0.9931.tar.gz
diff --git a/perl-Wx-0.9931-keymap-fixes.patch 
b/perl-Wx-0.9931-keymap-fixes.patch
new file mode 100644
index 0000000..9d386bb
--- /dev/null
+++ b/perl-Wx-0.9931-keymap-fixes.patch
@@ -0,0 +1,12 @@
+diff -up Wx-0.9931/Constant.xs.fixes Wx-0.9931/Constant.xs
+--- Wx-0.9931/Constant.xs.fixes        2017-04-17 14:41:38.466618321 -0400
++++ Wx-0.9931/Constant.xs      2017-04-17 14:41:43.873484635 -0400
+@@ -1817,7 +1817,7 @@ static double constant( const char* name
+   case 'K':
+     if( strnEQ( name, "WXK_", 4 ) )
+     {
+-#if WXPERL_W_VERSION_LT( 3, 0, 2 )
++#if WXPERL_W_VERSION_GE( 2, 9, 2 )
+         r( WXK_NONE );                  // keycode
+         r( WXK_CONTROL_A );             // keycode
+         r( WXK_CONTROL_B );             // keycode
diff --git a/perl-Wx.spec b/perl-Wx.spec
index cf6587a..3d0d2cf 100644
--- a/perl-Wx.spec
+++ b/perl-Wx.spec
@@ -11,13 +11,15 @@
 # cat provides.txt | uniq | sort -n
 
 Name:           perl-Wx
-Version:        0.9928
-Release:        4%{?dist}
+Version:        0.9931
+Release:        1%{?dist}
 Summary:        Interface to the wxWidgets cross-platform GUI toolkit
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Wx/
 Source0:        
http://search.cpan.org/CPAN/authors/id/M/MD/MDOOTSON/Wx-%{version}.tar.gz
+# https://rt.cpan.org/Public/Bug/Display.html?id=121224
+Patch0:         perl-Wx-0.9931-keymap-fixes.patch
 BuildRequires:  wxGTK-devel
 BuildRequires:  perl-devel
 BuildRequires:  perl-generators
@@ -657,6 +659,7 @@ you can download it from http://wxperl.sourceforge.net/.
 
 %prep
 %setup -q -n Wx-%{version}
+%patch0 -p1 -b .keymap
 
 chmod -c a-x README.txt docs/todo.txt samples/*/*.pl
 find . -type f -name "*.pm" -o -name "*.h" -o -name "*.cpp" |
@@ -677,7 +680,7 @@ perl Makefile.PL --wx-unicode \
   --wx-version=`wx-config --version | cut -d . -f 1-2` \
   --wx-toolkit=gtk2 \
   INSTALLDIRS=vendor \
-  OPTIMIZE="$RPM_OPT_FLAGS"
+  OPTIMIZE="$RPM_OPT_FLAGS -Wno-unused-variable -Wno-unused-but-set-variable 
-Wno-unused-local-typedefs"
 make %{?_smp_mflags}
 
 %install
@@ -700,6 +703,9 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 %{_mandir}/man3/*.3pm*
 
 %changelog
+* Mon Apr 17 2017 Tom Callaway <s...@fedoraproject.org> - 0.9931-1
+- update to 0.9931
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.9928-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
diff --git a/sources b/sources
index c8c24eb..25bc729 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cc4dc063b100fca45818d5eb4e2cd3b1  Wx-0.9928.tar.gz
+SHA512 (Wx-0.9931.tar.gz) = 
3edb2e5009a68cd95f4ef02e75d80a0976b46d188db6801d62cf8385ab5770e0cbe8fa6d8f49829093abbb650b101fb9bdf537f5f1c4ded0b494a0393c81266c
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Wx.git/commit/?h=master&id=3d3716200ab55b7be77b40d106e8bd9e11df1146
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to