From 6f64eda4e8baf69d4d901c9242c9440855b0dc00 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Jun 12 2008 22:10:19 +0000 Subject: - Fix an attribute error when importing wxPython (compat) module (redhat bugzilla 450073, 450074) --- diff --git a/wxPython-src-2.8.7.1-bug450073.patch b/wxPython-src-2.8.7.1-bug450073.patch new file mode 100644 index 0000000..8375d0a --- /dev/null +++ b/wxPython-src-2.8.7.1-bug450073.patch @@ -0,0 +1,12 @@ +diff -up wxPython-src-2.8.7.1/wxPython/wxPython/_misc.py~ wxPython-src-2.8.7.1/wxPython/wxPython/_misc.py +--- wxPython-src-2.8.7.1/wxPython/wxPython/_misc.py~ 2008-06-12 23:45:44.000000000 +0200 ++++ wxPython-src-2.8.7.1/wxPython/wxPython/_misc.py 2008-06-12 23:45:44.000000000 +0200 +@@ -453,7 +453,7 @@ wxDateTime_ConvertYearToBC = wx._misc.Da + wxDateTime_GetCurrentMonth = wx._misc.DateTime_GetCurrentMonth + wxDateTime_IsLeapYear = wx._misc.DateTime_IsLeapYear + wxDateTime_GetCentury = wx._misc.DateTime_GetCentury +-wxDateTime_GetNumberOfDaysinYear = wx._misc.DateTime_GetNumberOfDaysinYear ++wxDateTime_GetNumberOfDaysInYear = wx._misc.DateTime_GetNumberOfDaysInYear + wxDateTime_GetNumberOfDaysInMonth = wx._misc.DateTime_GetNumberOfDaysInMonth + wxDateTime_GetMonthName = wx._misc.DateTime_GetMonthName + wxDateTime_GetWeekDayName = wx._misc.DateTime_GetWeekDayName diff --git a/wxPython.spec b/wxPython.spec index ba28ce7..67bb56b 100644 --- a/wxPython.spec +++ b/wxPython.spec @@ -5,7 +5,7 @@ Name: wxPython Version: 2.8.7.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: GUI toolkit for the Python programming language @@ -13,6 +13,7 @@ Group: Development/Languages License: LGPL URL: http://www.wxpython.org/ Source0: http://dl.sf.net/wxpython/wxPython-src-%{version}.tar.bz2 +Patch0: wxPython-src-2.8.7.1-bug450073.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # make sure to keep this updated as appropriate BuildRequires: wxGTK-devel >= 2.8.7 @@ -49,6 +50,7 @@ programs which use the wxPython toolkit. %prep %setup -q -n wxPython-src-%{version} +%patch0 -p1 %build @@ -101,6 +103,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Jun 12 2008 Hans de Goede - 2.8.7.1-5 +- Fix an attribute error when importing wxPython (compat) module + (redhat bugzilla 450073, 450074) + * Sat Jun 6 2008 Matthew Miller - 2.8.7.1-4 - gratuitously bump package release number to work around build system glitch. again, but it will work this time.