diff --git a/newt-0.52.7-snack.patch b/newt-0.52.7-snack.patch deleted file mode 100644 index 96d1c83..0000000 --- a/newt-0.52.7-snack.patch +++ /dev/null @@ -1,18 +0,0 @@ -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-0.52.7-utf8.patch b/newt-0.52.7-utf8.patch deleted file mode 100644 index 4986ffa..0000000 --- a/newt-0.52.7-utf8.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- showchars.c -+++ showchars.c -@@ -17,6 +17,8 @@ - } - - int main(void) { -+ SLutf8_enable(-1); -+ - SLtt_get_terminfo(); - - SLtt_Use_Ansi_Colors = 1; ---- showkey.c -+++ showkey.c -@@ -5,6 +5,8 @@ - int i; - char * buf; - -+ SLutf8_enable(-1); -+ - SLtt_get_terminfo(); - SLang_init_tty(4, 0, 0); - ---- whiptail.c -+++ whiptail.c -@@ -390,6 +390,8 @@ - { 0, 0, 0, 0, 0 } - }; - -+ SLutf8_enable(-1); -+ - setlocale (LC_ALL, ""); - bindtextdomain (PACKAGE, LOCALEDIR); - textdomain (PACKAGE); diff --git a/newt-0.52.7-whiptail.patch b/newt-0.52.7-whiptail.patch deleted file mode 100644 index 24009f3..0000000 --- a/newt-0.52.7-whiptail.patch +++ /dev/null @@ -1,18 +0,0 @@ -Index: newt/whiptail.c -=================================================================== -RCS file: /usr/local/CVS/newt/whiptail.c,v -retrieving revision 1.21 -retrieving revision 1.22 -diff -u -r1.21 -r1.22 ---- newt/whiptail.c 31 Jan 2007 13:48:15 -0000 1.21 -+++ newt/whiptail.c 25 Jun 2007 10:37:18 -0000 1.22 -@@ -569,7 +569,8 @@ - case MODE_RADIOLIST: - rc = checkList(text, height, width, optCon, 1, flags, &selections); - if (rc == DLG_OKAY) { -- fprintf(output, "%s", selections[0]); -+ if (selections[0]) -+ fprintf(output, "%s", selections[0]); - free(selections); - } - break; diff --git a/newt-0.52.7.tar.bz2 b/newt-0.52.7.tar.bz2 deleted file mode 100644 index 3ef1ca2..0000000 --- a/newt-0.52.7.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3d42db7ae88ae1139c314ffec9b26dc929705545c5c87e4cd516edd4cf7514b -size 137763 diff --git a/newt-0.52.9.tar.bz2 b/newt-0.52.9.tar.bz2 new file mode 100644 index 0000000..c244cf9 --- /dev/null +++ b/newt-0.52.9.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a7335796fe69b18ac30faf219d8fe175a183dde4d286425d0ea9042c81fe005 +size 138580 diff --git a/newt-rpmlintrc b/newt-rpmlintrc index 3e9c733..d08b034 100644 --- a/newt-rpmlintrc +++ b/newt-rpmlintrc @@ -1 +1,4 @@ -addFilter("python-naming-policy-not-applied .*/python2.5/site-packages/snack.py") +# newt-devel just needs the lib package +addFilter("no-dependency-on newt") +# newt-devel should require python-devel +addFilter("useless-explicit-requires python") diff --git a/newt.changes b/newt.changes index 0a91804..28597f2 100644 --- a/newt.changes +++ b/newt.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Apr 7 17:10:48 CEST 2008 - lrupp@suse.de + +- update to 0.52.9: + + handle component destruction (patch by Richard W.M. Jones) + + fix newtWinEntry definition + + don't use uninitialized values in newtWinMenu + + remove workarounds for old bug in SLsmg_write_nstring + + improve SIGWINCH handling in form + + don't abort from whiptail gauge on SIGWINCH + + redisplay also last line + + update Polish translation + + enable slang utf8 mode (rh#425992) + + support --disable-nls option (patch by Natanael Copa) + + redraw screen when using entry in euc encodings +- removed upstreamed patches +- devel package should require poptd-, python- and slang-devel and + recommend the main package (not really needed) +- updated rpmlintrc + ------------------------------------------------------------------- Mon Dec 17 18:33:12 CET 2007 - lrupp@suse.de diff --git a/newt.spec b/newt.spec index e70f965..22dfaba 100644 --- a/newt.spec +++ b/newt.spec @@ -1,7 +1,7 @@ # -# spec file for package newt (Version 0.52.7) +# spec file for package newt (Version 0.52.9) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -10,19 +10,17 @@ # norootforbuild + Name: newt Url: http://cvs.fedora.redhat.com/viewcvs/devel/newt/ Summary: Nifty Erik's Windowing Toolkit -Version: 0.52.7 -Release: 62 +Version: 0.52.9 +Release: 1 %define soname 0_52 License: LGPL v2.1 or later Group: System/Libraries Source: %name-%version.tar.bz2 Source10: %name-rpmlintrc -Patch1: newt-0.52.7-snack.patch -Patch2: newt-0.52.7-whiptail.patch -Patch3: newt-0.52.7-utf8.patch Requires: libnewt%soname = %version BuildRequires: popt-devel python-devel slang-devel %if 0%{?suse_version} < 1020 @@ -52,6 +50,7 @@ Authors: Erik Troan %package -n libnewt0_52 +License: LGPL v2.1 or later Summary: Shared libraries for Nifty Erik's Windowing Toolkit Group: System/Libraries # @@ -72,10 +71,13 @@ Authors: Erik Troan %package devel +License: LGPL v2.1 or later Summary: Development files for the Newt windowing toolkit Requires: libnewt%soname = %{version} -Requires: python -Requires: slang-devel +Requires: python-devel +Requires: slang-devel +Requires: popt-devel +Recommends: newt = %{version} Group: Development/Libraries/C and C++ # @@ -95,6 +97,7 @@ Authors: Erik Troan %package doc +License: LGPL v2.1 or later Summary: Tutorial for Nifty Erik's Windowing Toolkit Group: Documentation/Howto # @@ -114,13 +117,14 @@ Authors: Erik Troan %package static +License: LGPL v2.1 or later Summary: Static libraries of Nifty Erik's Windowing Toolkit Requires: newt-devel = %{version} Group: Development/Libraries/C and C++ # %description static -This package contains the static libraries needed to compile programms +This package contains the static libraries needed to compile programs based on newt which don't need the shared libraries. Newt is a programming library for color text-mode widget-based user @@ -135,6 +139,7 @@ Authors: Erik Troan %package python +License: GPL v2 only; GPL v2 or later; LGPL v2.1 or later Summary: Python bindings for newt Group: System/Libraries Requires: newt = %{version} @@ -152,14 +157,8 @@ Authors: %prep %setup -q -%patch1 -p1 -b .snack -%patch2 -p1 -b .whiptail -%if 0%{?suse_version} > 1000 -%patch3 -%endif %build -## export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --without-tcl # gpm support seems to smash the stack # --with-gpm-support @@ -169,9 +168,9 @@ make %{?jobs:-j%jobs} all %install make PYTHONVERS="python%{py_ver}" instroot="%buildroot" install install-sh # currently we don't support these languages -#for lang in dz mg tl wo; do -# rm -rf %buildroot%_datadir/locale/$lang -#done +for lang in wo; do + rm -rf %buildroot%_datadir/locale/$lang +done # # prepare defaultdocdir with examples and scripts # @@ -229,11 +228,28 @@ rm -rf %buildroot %{py_sitedir}/* %changelog -* Mon Dec 17 2007 - lrupp@suse.de +* Mon Apr 07 2008 lrupp@suse.de +- update to 0.52.9: + + handle component destruction (patch by Richard W.M. Jones) + + fix newtWinEntry definition + + don't use uninitialized values in newtWinMenu + + remove workarounds for old bug in SLsmg_write_nstring + + improve SIGWINCH handling in form + + don't abort from whiptail gauge on SIGWINCH + + redisplay also last line + + update Polish translation + + enable slang utf8 mode (rh#425992) + + support --disable-nls option (patch by Natanael Copa) + + redraw screen when using entry in euc encodings +- removed upstreamed patches +- devel package should require poptd-, python- and slang-devel and + recommend the main package (not really needed) +- updated rpmlintrc +* Mon Dec 17 2007 lrupp@suse.de - split libnewt0_52 to follow the shared library packaging policy - build on older distributions - build parallel -* Thu Oct 11 2007 - lrupp@suse.de +* Thu Oct 11 2007 lrupp@suse.de - split python module to -python subpackage - add back support for list of Entries in EntryWindow prompts in snack (RH#248878) (newt-0.52.7-snack.patch) @@ -241,9 +257,9 @@ rm -rf %buildroot (newt-0.52.7-whiptail.patch) - fix handling of UTF-8 characters (#289291) (newt-0.52.7-utf8.patch) -* Tue Sep 11 2007 - cthiel@suse.de +* Tue Sep 11 2007 cthiel@suse.de - removed bogus Provides: snack (to avoid name clash with package snack) -* Tue Jun 26 2007 - lrupp@suse.de +* Tue Jun 26 2007 lrupp@suse.de - update to 0.52.7: + add support to snack for multiple selection and border in listbox and cursorAtEnd in entry (patch by Shawn Starr) @@ -252,7 +268,7 @@ rm -rf %buildroot + free helplines and windows in newtFinished, check for overflow (RH#239992) - remove included patches - created doc package for tutorial (N#287087) -* Wed Jun 13 2007 - lrupp@suse.de +* Wed Jun 13 2007 lrupp@suse.de - included patches from Miroslav Lichvar: + fix cursor positioning when setting entry or checkbox flags (newt-0.52.6-cursor.patch) @@ -266,17 +282,17 @@ rm -rf %buildroot - disable gpm-support - seems to smash the stack - remove libbz2-1 from buildreq - re-arange buildrequires -* Tue Jun 05 2007 - ro@suse.de +* Tue Jun 05 2007 ro@suse.de - buildreq: libbz2 -> libbz2-1 -* Sun Apr 01 2007 - lrupp@suse.de +* Sun Apr 01 2007 lrupp@suse.de - added distribution specfic parts for build service - added libbz2 to BuildRequires for suse_version > 1020 -* Wed Mar 07 2007 - lrupp@suse.de +* Wed Mar 07 2007 lrupp@suse.de - update to 0.52.6: + add newtSetColor() to allow changing individual colors + add newtPopWindowNoRefresh() (patch by Forest Bond) - branched newt-static package containing static library -* Wed Feb 14 2007 - lrupp@suse.de +* Wed Feb 14 2007 lrupp@suse.de - update to 0.52.5 + provide option to change text of buttons (rh#126768) + don't add escape key to hot keys by default (rh#216157) @@ -286,14 +302,14 @@ rm -rf %buildroot + update translations from debian - removed unnecessary ldconfig call in devel package - removed obsolete newt-0.52.4-if1close.patch -* Thu Dec 21 2006 - lrupp@suse.de +* Thu Dec 21 2006 lrupp@suse.de - new upstream version 0.52.4: patches included upstream + fix entry corruption when reading multibyte characters and double width character handling + avoid overflow/crash in scale - makefile, configure and spec cleanup - package whiptail.1 and locale files -* Fri Sep 22 2006 - lrupp@suse.de +* Fri Sep 22 2006 lrupp@suse.de - fix build with python 2.5 (thanks to aj) - useful fixes from RH bugzilla included: * #137957 : fix screen corruption @@ -306,7 +322,7 @@ rm -rf %buildroot * fix checkboxtree positioning * unfocus when displaying help * fix double width character handling in checkboxtree and listbox -* Tue May 09 2006 - lrupp@suse.de +* Tue May 09 2006 lrupp@suse.de - add "Provides: snack" to specfile - do not build whiptcl to avoid dependency on tcl (RH #177346) (whiptcl is currently not used by anything) @@ -315,62 +331,62 @@ rm -rf %buildroot - Fix a crash in checkboxtree.c (RH #165347) - draw correct dialog sizes on the screen (see RH #185950) - applying patch from Tomas Mraz (thanks) -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Mon Dec 12 2005 - lrupp@suse.de +* Mon Dec 12 2005 lrupp@suse.de - new version 0.52.2 - include whiptcl.so -* Thu Nov 10 2005 - lrupp@suse.de +* Thu Nov 10 2005 lrupp@suse.de - only do gpmclose if gpmopen succeeed (see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118530) - include example files (peanuts.py, popcorn.py) in devel package - use "-fPIC -Wall -fno-strict-aliasing" in CFLAGS -* Mon Sep 26 2005 - mls@suse.de +* Tue Sep 27 2005 mls@suse.de - make devel package require base package -* Mon Jul 25 2005 - lrupp@suse.de 0.51.6 +* Mon Jul 25 2005 lrupp@suse.de 0.51.6 - use of %%run_ldconfig -* Fri Jun 17 2005 - lrupp@suse.de 0.51.6 +* Fri Jun 17 2005 lrupp@suse.de 0.51.6 - use more macros: fix build on 64bit -* Fri Jun 17 2005 - lrupp@suse.de 0.51.6 +* Fri Jun 17 2005 lrupp@suse.de 0.51.6 - use $RPM_OPT_FLAGS - delete /usr/lib/phyton in build to avoid errors from abuild => we've a symlink to /usr/lib/python2.4 -* Thu Jun 16 2005 - ro@suse.de +* Thu Jun 16 2005 ro@suse.de - fix files pagaged twice (real path and over symlink) -* Tue Feb 15 2005 - ro@suse.de +* Tue Feb 15 2005 ro@suse.de - added python deps -* Mon Jan 24 2005 - ro@suse.de +* Mon Jan 24 2005 ro@suse.de - fix lib64 build -* Tue Nov 30 2004 - cwh@suse.de +* Tue Nov 30 2004 cwh@suse.de - updated to 0.51.6 -* Wed Jun 02 2004 - ro@suse.de +* Wed Jun 02 2004 ro@suse.de - get rid of some compiler warnings -* Thu Feb 26 2004 - hmacht@suse.de +* Thu Feb 26 2004 hmacht@suse.de - building as non-root -* Tue Feb 24 2004 - cwh@suse.de +* Tue Feb 24 2004 cwh@suse.de - added soname link to package -* Mon Sep 15 2003 - cwh@suse.de +* Mon Sep 15 2003 cwh@suse.de - removed wrong "Provides: snack" from spec-file -* Wed Aug 20 2003 - ro@suse.de +* Thu Aug 21 2003 ro@suse.de - expand filelist - fix lib64 issues -* Wed Aug 20 2003 - cwh@suse.de +* Wed Aug 20 2003 cwh@suse.de - fixed to compile with tcl8.4 -* Tue Jan 16 2001 - schwab@suse.de +* Tue Jan 16 2001 schwab@suse.de - Fix missing -fPIC in Makefile. - Fix use of varargs. -* Wed Nov 29 2000 - ro@suse.de +* Wed Nov 29 2000 ro@suse.de - changed neededforbuild to -* Wed Nov 29 2000 - smid@suse.cz +* Wed Nov 29 2000 smid@suse.cz - subpackage renamed: newtd => newt-devel -* Fri Nov 24 2000 - ro@suse.de +* Fri Nov 24 2000 ro@suse.de - fixes for 2.0-python -* Sun Oct 29 2000 - kukuk@suse.de +* Sun Oct 29 2000 kukuk@suse.de - Add python-devel to need for build -* Mon May 22 2000 - smid@suse.cz +* Mon May 22 2000 smid@suse.cz - fixed to compile with tcl8.3 -* Wed May 10 2000 - nadvornik@suse.cz +* Wed May 10 2000 nadvornik@suse.cz - update to 0.50.8 - added BuildRoot -* Mon Jan 17 2000 - nashif@suse.de +* Mon Jan 17 2000 nashif@suse.de - Initial Release ( Version 0.50)