From 6e0ae11a975fc61ef7f02d489285d3e86e7e4b23 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 8 Aug 2007 15:18:58 +0000 Subject: [PATCH] - add back support for list of Entries in EntryWindow prompts in snack (#248878) - update license tag --- newt-0.52.7-snack.patch | 18 ++++++++++++++++++ newt.spec | 9 +++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 newt-0.52.7-snack.patch diff --git a/newt-0.52.7-snack.patch b/newt-0.52.7-snack.patch new file mode 100644 index 0000000..3503340 --- /dev/null +++ b/newt-0.52.7-snack.patch @@ -0,0 +1,18 @@ +Index: newt/snack.py +=================================================================== +RCS file: /usr/local/CVS/newt/snack.py,v +retrieving revision 1.69 +retrieving revision 1.70 +diff -u -r1.69 -r1.70 +--- newt/snack.py 13 Jun 2007 17:17:53 -0000 1.69 ++++ newt/snack.py 11 Jul 2007 17:00:28 -0000 1.70 +@@ -826,7 +826,8 @@ + for n in prompts: + if (type(n) == types.TupleType): + (n, e) = n +- e = Entry(entryWidth, e) ++ if (type(e) in types.StringTypes): ++ e = Entry(entryWidth, e) + else: + e = Entry(entryWidth) + diff --git a/newt.spec b/newt.spec index 4ec7d3e..442ab89 100644 --- a/newt.spec +++ b/newt.spec @@ -3,7 +3,7 @@ Summary: A library for text mode user interfaces Name: newt Version: 0.52.7 Release: 2%{?dist} -License: LGPL +License: LGPLv2 Group: System Environment/Libraries # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: @@ -13,6 +13,7 @@ Source: newt-%{version}.tar.gz BuildRequires: python, python-devel, slang-devel Provides: snack = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch1: newt-0.52.7-snack.patch %package devel Summary: Newt windowing toolkit development files @@ -59,6 +60,7 @@ providing a python API for creating text mode ionterfaces. %prep %setup -q +%patch1 -p1 -b .snack %build # gpm support seems to smash the stack w/ we use help in anaconda?? @@ -104,7 +106,10 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/*.py* %changelog -* Mon Jun 25 2007 Miroslav Lichvar - 0.52.7-2 +* Wed Aug 08 2007 Miroslav Lichvar - 0.52.7-2 +- add back support for list of Entries in EntryWindow prompts in snack + (#248878) +- update license tag - split python module to -python subpackage (Yanko Kaneti) - fix summary