2006-12-21 15:29:33 +00:00
|
|
|
#
|
2007-06-28 17:36:00 +00:00
|
|
|
# spec file for package newt (Version 0.52.7)
|
2006-12-21 15:29:33 +00:00
|
|
|
#
|
2007-02-15 17:05:34 +00:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-21 15:29:33 +00:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
|
#
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
Name: newt
|
2007-10-11 20:00:42 +00:00
|
|
|
Url: ftp://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/newt-0.52.7-4.fc8.src.rpm
|
2006-12-21 15:29:33 +00:00
|
|
|
Summary: Nifty Erik's Windowing Toolkit
|
2007-06-28 17:36:00 +00:00
|
|
|
Version: 0.52.7
|
2007-10-11 20:00:42 +00:00
|
|
|
Release: 39
|
2007-09-11 19:27:27 +00:00
|
|
|
License: LGPL v2 or later
|
2006-12-21 15:29:33 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-06-28 17:36:00 +00:00
|
|
|
Source10: %name-rpmlintrc
|
2007-10-11 20:00:42 +00:00
|
|
|
Patch1: newt-0.52.7-snack.patch
|
|
|
|
|
Patch2: newt-0.52.7-whiptail.patch
|
|
|
|
|
Patch3: newt-0.52.7-utf8.patch
|
2006-12-21 15:29:33 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-11 20:00:42 +00:00
|
|
|
BuildRequires: popt-devel python-devel slang-devel
|
2007-06-28 17:36:00 +00:00
|
|
|
# needed for tutorial.pdf
|
|
|
|
|
BuildRequires: docbook-toys
|
2007-06-14 13:44:43 +00:00
|
|
|
%{py_requires}
|
2007-04-01 23:00:44 +00:00
|
|
|
#
|
2007-10-11 20:00:42 +00:00
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for the Newt windowing toolkit
|
2007-03-07 22:15:32 +00:00
|
|
|
Provides: newtd = %{version}
|
2006-12-21 15:29:33 +00:00
|
|
|
Requires: newt = %{version}
|
2007-06-28 17:36:00 +00:00
|
|
|
Requires: python
|
2007-06-14 13:44:43 +00:00
|
|
|
Requires: slang-devel %{name} = %{version}
|
2006-12-21 15:29:33 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-02-15 17:05:34 +00:00
|
|
|
Obsoletes: newtd <= %{version}
|
2007-04-01 23:00:44 +00:00
|
|
|
#
|
2007-10-11 20:00:42 +00:00
|
|
|
|
2007-06-28 17:36:00 +00:00
|
|
|
%package doc
|
|
|
|
|
Summary: Tutorial for Nifty Erik's Windowing Toolkit
|
|
|
|
|
Group: Documentation/Howto
|
|
|
|
|
#
|
2007-10-11 20:00:42 +00:00
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
%package static
|
|
|
|
|
Summary: Nifty Erik's Windowing Toolkit
|
|
|
|
|
Requires: newt-devel = %{version}
|
2007-06-28 17:36:00 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-10-11 20:00:42 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
%package python
|
|
|
|
|
Summary: Python bindings for newt
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Requires: newt = %{version}
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Newt is a programming library for color text-mode widget-based user
|
|
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
|
|
|
|
check boxes, radio buttons, labels, plain text fields, scrollbars,
|
|
|
|
|
etc., to text mode user interfaces.
|
|
|
|
|
|
|
|
|
|
This package also contains the shared library needed by programs built
|
|
|
|
|
with newt, as well as a Dialog replacement called whiptail.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the header files and libraries necessary for
|
|
|
|
|
developing applications which use newt.
|
|
|
|
|
|
|
|
|
|
Newt is a development library for text mode user interfaces.
|
|
|
|
|
|
|
|
|
|
Install newt-devel if you want to develop applications which depend on
|
|
|
|
|
newt.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-06-28 17:36:00 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains a tutorial about the Newt windowing toolkit.
|
|
|
|
|
|
|
|
|
|
Newt is a programming library for color text-mode widget-based user
|
|
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
|
|
|
|
check boxes, radio buttons, labels, plain text fields, scrollbars,
|
|
|
|
|
etc., to text mode user interfaces.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
|
Newt is a programming library for color text-mode widget-based user
|
|
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
|
|
|
|
check boxes, radio buttons, labels, plain text fields, scrollbars,
|
|
|
|
|
etc., to text mode user interfaces.
|
|
|
|
|
|
|
|
|
|
This package also contains the shared library needed by programs built
|
|
|
|
|
with newt, as well as a Dialog replacement called whiptail.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-11 20:00:42 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
|
The newt-python package contains the Python bindings for the newt
|
|
|
|
|
library providing a python API for creating text mode ionterfaces.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2007-10-11 20:00:42 +00:00
|
|
|
%patch1 -p1 -b .snack
|
|
|
|
|
%patch2 -p1 -b .whiptail
|
|
|
|
|
%patch3
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
%build
|
2007-10-11 20:00:42 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2007-06-14 13:44:43 +00:00
|
|
|
%configure --without-tcl
|
|
|
|
|
# gpm support seems to smash the stack
|
|
|
|
|
# --with-gpm-support
|
2007-06-28 17:36:00 +00:00
|
|
|
## make depend
|
2007-10-11 20:00:42 +00:00
|
|
|
make all
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make instroot=%buildroot install PYTHONVERS=python%{py_ver}
|
|
|
|
|
make instroot=%buildroot install-sh PYTHONVERS=python%{py_ver}
|
|
|
|
|
# currently we don't support these languages
|
|
|
|
|
for lang in dz mg tl wo; do
|
|
|
|
|
rm -rf %buildroot%_datadir/locale/$lang
|
|
|
|
|
done
|
2007-10-11 20:00:42 +00:00
|
|
|
install -d -m 755 %buildroot/%_defaultdocdir/%name/examples
|
|
|
|
|
# install COPYING file
|
|
|
|
|
install -m 644 COPYING %buildroot/%_defaultdocdir/%name/
|
|
|
|
|
# install example scripts
|
|
|
|
|
install -m 755 peanuts.py %buildroot/%_defaultdocdir/%name/examples/
|
|
|
|
|
install -m 755 popcorn.py %buildroot/%_defaultdocdir/%name/examples/
|
|
|
|
|
# create tutorial.pdf documentation
|
|
|
|
|
install -m 644 tutorial.sgml %buildroot/%_defaultdocdir/%name/
|
2007-06-28 17:36:00 +00:00
|
|
|
pushd %buildroot/%_defaultdocdir/%name/ 1>/dev/null
|
|
|
|
|
db2pdf tutorial.sgml
|
|
|
|
|
rm tutorial.{aux,log,out} CATALOG.* *.dsl
|
|
|
|
|
popd 1>/dev/null
|
2006-12-21 15:29:33 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr (-,root,root)
|
2007-06-28 17:36:00 +00:00
|
|
|
%dir %_defaultdocdir/%name
|
|
|
|
|
%doc %_defaultdocdir/%name/COPYING
|
2006-12-21 15:29:33 +00:00
|
|
|
%{_bindir}/whiptail
|
|
|
|
|
%{_libdir}/libnewt.so.*
|
|
|
|
|
%{_mandir}/man1/whiptail.1*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%{_includedir}/newt.h
|
|
|
|
|
%{_libdir}/libnewt.so
|
|
|
|
|
|
2007-06-28 17:36:00 +00:00
|
|
|
%files doc
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%doc %_defaultdocdir/%name/tutorial.*
|
|
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
%files static
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%{_libdir}/libnewt.a
|
|
|
|
|
|
2007-10-11 20:00:42 +00:00
|
|
|
%files python
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %_defaultdocdir/%name/examples
|
|
|
|
|
%doc %_defaultdocdir/%name/examples/*.py
|
|
|
|
|
%{py_sitedir}/*
|
2007-03-07 22:15:32 +00:00
|
|
|
%changelog
|
2007-10-11 20:00:42 +00:00
|
|
|
* 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)
|
|
|
|
|
- fix segfault in whiptail when no entry is selected in radiolist
|
|
|
|
|
(newt-0.52.7-whiptail.patch)
|
|
|
|
|
- fix handling of UTF-8 characters (#289291)
|
|
|
|
|
(newt-0.52.7-utf8.patch)
|
2007-09-11 19:27:27 +00:00
|
|
|
* Tue Sep 11 2007 - cthiel@suse.de
|
|
|
|
|
- removed bogus Provides: snack (to avoid name clash with package snack)
|
2007-06-28 17:36:00 +00:00
|
|
|
* 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)
|
|
|
|
|
+ fix scrollbar positioning in listbox
|
|
|
|
|
+ cope with backward system time jumps (RH#240691)
|
|
|
|
|
+ free helplines and windows in newtFinished, check for overflow (RH#239992)
|
|
|
|
|
- remove included patches
|
|
|
|
|
- created doc package for tutorial (N#287087)
|
2007-06-14 13:44:43 +00:00
|
|
|
* 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)
|
|
|
|
|
+ fix counting of items in checkboxtree
|
|
|
|
|
(newt-0.52.6-countitems.patch)
|
|
|
|
|
+ fix some memory leaks
|
|
|
|
|
(newt-0.52.6-memleaks.patch)
|
|
|
|
|
+ fix entry scrolling (RH#234829) and
|
|
|
|
|
+ fix multibyte character handling in entry
|
|
|
|
|
(newt-0.52.6-entry.patch)
|
|
|
|
|
- disable gpm-support - seems to smash the stack
|
|
|
|
|
- remove libbz2-1 from buildreq
|
|
|
|
|
- re-arange buildrequires
|
2007-06-05 18:05:24 +00:00
|
|
|
* Tue Jun 05 2007 - ro@suse.de
|
|
|
|
|
- buildreq: libbz2 -> libbz2-1
|
2007-04-01 23:00:44 +00:00
|
|
|
* Sun Apr 01 2007 - lrupp@suse.de
|
|
|
|
|
- added distribution specfic parts for build service
|
|
|
|
|
- added libbz2 to BuildRequires for suse_version > 1020
|
2007-03-07 22:15:32 +00:00
|
|
|
* 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
|
2007-02-15 17:05:34 +00:00
|
|
|
* 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)
|
|
|
|
|
+ fix cursor position in checkboxtree, radio button and checkbox
|
|
|
|
|
+ don't force monochrome terminals to output colors
|
|
|
|
|
+ highlight active compact button on monochrome terminals
|
|
|
|
|
+ update translations from debian
|
|
|
|
|
- removed unnecessary ldconfig call in devel package
|
|
|
|
|
- removed obsolete newt-0.52.4-if1close.patch
|
2006-12-21 15:29:33 +00:00
|
|
|
* 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
|
|
|
|
|
- fix build with python 2.5 (thanks to aj)
|
|
|
|
|
- useful fixes from RH bugzilla included:
|
|
|
|
|
* #137957 : fix screen corruption
|
|
|
|
|
* #81352 : fix help dialog
|
|
|
|
|
* #83203 : make textbox with scrollbar focusable
|
|
|
|
|
* #86074 : turn off cursor when entry terminated form
|
|
|
|
|
* #186053 : better handling of listbox and checkboxtree focus
|
|
|
|
|
* #187545 : be more color friendly to 8-color terminals
|
|
|
|
|
* #189981 : fix handling windows larger than screen size
|
|
|
|
|
* fix checkboxtree positioning
|
|
|
|
|
* unfocus when displaying help
|
|
|
|
|
* fix double width character handling in checkboxtree and listbox
|
|
|
|
|
* 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)
|
|
|
|
|
- Apply patch by Bill Nottingham (thanks) to improve scrollbar appearance
|
|
|
|
|
(RH #174771)
|
|
|
|
|
- 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
|
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
|
* Mon Dec 12 2005 - lrupp@suse.de
|
|
|
|
|
- new version 0.52.2
|
|
|
|
|
- include whiptcl.so
|
|
|
|
|
* 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
|
|
|
|
|
- make devel package require base package
|
|
|
|
|
* Mon Jul 25 2005 - lrupp@suse.de 0.51.6
|
|
|
|
|
- use of %%run_ldconfig
|
|
|
|
|
* 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
|
|
|
|
|
- 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
|
|
|
|
|
- fix files pagaged twice (real path and over symlink)
|
|
|
|
|
* Tue Feb 15 2005 - ro@suse.de
|
|
|
|
|
- added python deps
|
|
|
|
|
* Mon Jan 24 2005 - ro@suse.de
|
|
|
|
|
- fix lib64 build
|
|
|
|
|
* Tue Nov 30 2004 - cwh@suse.de
|
|
|
|
|
- updated to 0.51.6
|
|
|
|
|
* Wed Jun 02 2004 - ro@suse.de
|
|
|
|
|
- get rid of some compiler warnings
|
|
|
|
|
* Thu Feb 26 2004 - hmacht@suse.de
|
|
|
|
|
- building as non-root
|
|
|
|
|
* Tue Feb 24 2004 - cwh@suse.de
|
|
|
|
|
- added soname link to package
|
|
|
|
|
* Mon Sep 15 2003 - cwh@suse.de
|
|
|
|
|
- removed wrong "Provides: snack" from spec-file
|
|
|
|
|
* Wed Aug 20 2003 - ro@suse.de
|
|
|
|
|
- expand filelist
|
|
|
|
|
- fix lib64 issues
|
|
|
|
|
* Wed Aug 20 2003 - cwh@suse.de
|
|
|
|
|
- fixed to compile with tcl8.4
|
|
|
|
|
* Tue Jan 16 2001 - schwab@suse.de
|
|
|
|
|
- Fix missing -fPIC in Makefile.
|
|
|
|
|
- Fix use of varargs.
|
|
|
|
|
* Wed Nov 29 2000 - ro@suse.de
|
|
|
|
|
- changed neededforbuild <tcld> to <tcl-devel>
|
|
|
|
|
* Wed Nov 29 2000 - smid@suse.cz
|
|
|
|
|
- subpackage renamed: newtd => newt-devel
|
|
|
|
|
* Fri Nov 24 2000 - ro@suse.de
|
|
|
|
|
- fixes for 2.0-python
|
|
|
|
|
* Sun Oct 29 2000 - kukuk@suse.de
|
|
|
|
|
- Add python-devel to need for build
|
|
|
|
|
* Mon May 22 2000 - smid@suse.cz
|
|
|
|
|
- fixed to compile with tcl8.3
|
|
|
|
|
* Wed May 10 2000 - nadvornik@suse.cz
|
|
|
|
|
- update to 0.50.8
|
|
|
|
|
- added BuildRoot
|
|
|
|
|
* Mon Jan 17 2000 - nashif@suse.de
|
|
|
|
|
- Initial Release ( Version 0.50)
|