File newt.spec.factory of Package newt
1
#
2
# spec file for package newt (Version 0.52.7)
3
#
4
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
5
# This file and all modifications and additions to the pristine
6
# package are under the same license as the package itself.
7
#
8
# Please submit bugfixes or comments via http://bugs.opensuse.org/
9
#
10
11
# norootforbuild
12
13
Name: newt
14
Url: http://cvs.fedora.redhat.com/viewcvs/devel/newt/
15
Summary: Nifty Erik's Windowing Toolkit
16
Version: 0.52.7
17
Release: 62
18
%define soname 0_52
19
License: LGPL v2.1 or later
20
Group: System/Libraries
21
Source: %name-%version.tar.bz2
22
Source10: %name-rpmlintrc
23
Patch1: newt-0.52.7-snack.patch
24
Patch2: newt-0.52.7-whiptail.patch
25
Patch3: newt-0.52.7-utf8.patch
26
Requires: libnewt%soname = %version
27
BuildRequires: popt-devel python-devel slang-devel
28
%if 0%{?suse_version} < 1020
29
BuildRequires: libpng-devel
30
%endif
31
# needed for tutorial.pdf
32
BuildRequires: docbook-toys
33
%if 0%{?sles_version} == 9
34
BuildRequires: jadetex
35
%endif
36
%{py_requires}
37
#
38
BuildRoot: %{_tmppath}/%{name}-%{version}-build
39
40
%description
41
Newt is a programming library for color text-mode widget-based user
42
interfaces. Newt can be used to add stacked windows, entry widgets,
43
check boxes, radio buttons, labels, plain text fields, scrollbars,
44
etc., to text mode user interfaces.
45
46
This package also contains a Dialog replacement called whiptail.
47
48
49
50
Authors:
51
--------
52
Erik Troan <ewt@redhat.com>
53
54
%package -n libnewt0_52
55
Summary: Shared libraries for Nifty Erik's Windowing Toolkit
56
Group: System/Libraries
57
#
58
59
%description -n libnewt0_52
60
This package contains the shared libraries needed by programs built
61
with newt.
62
63
Newt is a programming library for color text-mode widget-based user
64
interfaces. Newt can be used to add stacked windows, entry widgets,
65
check boxes, radio buttons, labels, plain text fields, scrollbars,
66
etc., to text mode user interfaces.
67
68
69
70
Authors:
71
--------
72
Erik Troan <ewt@redhat.com>
73
74
%package devel
75
Summary: Development files for the Newt windowing toolkit
76
Requires: libnewt%soname = %{version}
77
Requires: python
78
Requires: slang-devel
79
Group: Development/Libraries/C and C++
80
#
81
82
%description devel
83
This package contains the header files and libraries necessary for
84
developing applications which use newt.
85
86
Newt is a development library for text mode user interfaces.
87
88
Install newt-devel if you want to develop applications which depend on
89
newt.
90
91
92
93
Authors:
94
--------
95
Erik Troan <ewt@redhat.com>
96
97
%package doc
98
Summary: Tutorial for Nifty Erik's Windowing Toolkit
99
Group: Documentation/Howto
100
#
101
102
%description doc
103
This package contains a tutorial about the Newt windowing toolkit.
104
105
Newt is a programming library for color text-mode widget-based user
106
interfaces. Newt can be used to add stacked windows, entry widgets,
107
check boxes, radio buttons, labels, plain text fields, scrollbars,
108
etc., to text mode user interfaces.
109
110
111
112
Authors:
113
--------
114
Erik Troan <ewt@redhat.com>
115
116
%package static
117
Summary: Static libraries of Nifty Erik's Windowing Toolkit
118
Requires: newt-devel = %{version}
119
Group: Development/Libraries/C and C++
120
#
121
122
%description static
123
This package contains the static libraries needed to compile programms
124
based on newt which don't need the shared libraries.
125
126
Newt is a programming library for color text-mode widget-based user
127
interfaces. Newt can be used to add stacked windows, entry widgets,
128
check boxes, radio buttons, labels, plain text fields, scrollbars,
129
etc., to text mode user interfaces.
130
131
132
133
Authors:
134
--------
135
Erik Troan <ewt@redhat.com>
136
137
%package python
138
Summary: Python bindings for newt
139
Group: System/Libraries
140
Requires: newt = %{version}
141
#
142
143
%description python
144
The newt-python package contains the Python bindings for the newt
145
library providing a python API for creating text mode ionterfaces.
146
147
148
149
Authors:
150
--------
151
Erik Troan <ewt@redhat.com>
152
153
%prep
154
%setup -q
155
%patch1 -p1 -b .snack
156
%patch2 -p1 -b .whiptail
157
%if 0%{?suse_version} > 1000
158
%patch3
159
%endif
160
161
%build
162
## export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
163
%configure --without-tcl
164
# gpm support seems to smash the stack
165
# --with-gpm-support
166
## make depend
167
make %{?jobs:-j%jobs} all
168
169
%install
170
make PYTHONVERS="python%{py_ver}" instroot="%buildroot" install install-sh
171
# currently we don't support these languages
172
#for lang in dz mg tl wo; do
173
# rm -rf %buildroot%_datadir/locale/$lang
174
#done
175
#
176
# prepare defaultdocdir with examples and scripts
177
#
178
install -d -m 755 %buildroot/%_defaultdocdir/%name/examples
179
# install COPYING file
180
install -m 644 COPYING %buildroot/%_defaultdocdir/%name/
181
# install example scripts
182
install -m 755 peanuts.py %buildroot/%_defaultdocdir/%name/examples/
183
install -m 755 popcorn.py %buildroot/%_defaultdocdir/%name/examples/
184
#
185
# create tutorial.pdf documentation
186
#
187
install -m 644 tutorial.sgml %buildroot/%_defaultdocdir/%name/
188
pushd %buildroot/%_defaultdocdir/%name/ 1>/dev/null
189
db2pdf tutorial.sgml
190
rm tutorial.{aux,log,out} CATALOG.* *.dsl
191
popd 1>/dev/null
192
%find_lang %{name}
193
194
%clean
195
rm -rf %buildroot
196
197
%post -n libnewt%soname -p /sbin/ldconfig
198
199
%postun -n libnewt%soname -p /sbin/ldconfig
200
201
%files -f %{name}.lang
202
%defattr (-,root,root)
203
%dir %_defaultdocdir/%name
204
%doc %_defaultdocdir/%name/COPYING
205
%{_bindir}/whiptail
206
%{_mandir}/man1/whiptail.1*
207
208
%files -n libnewt0_52
209
%defattr (-,root,root)
210
%{_libdir}/libnewt.so.*
211
212
%files devel
213
%defattr (-,root,root)
214
%{_includedir}/newt.h
215
%{_libdir}/libnewt.so
216
217
%files doc
218
%defattr (-,root,root)
219
%doc %_defaultdocdir/%name/tutorial.*
220
221
%files static
222
%defattr (-,root,root)
223
%{_libdir}/libnewt.a
224
225
%files python
226
%defattr(-,root,root)
227
%dir %_defaultdocdir/%name/examples
228
%doc %_defaultdocdir/%name/examples/*.py
229
%{py_sitedir}/*
230
231
%changelog
232
* Mon Dec 17 2007 - lrupp@suse.de
233
- split libnewt0_52 to follow the shared library packaging policy
234
- build on older distributions
235
- build parallel
236
* Thu Oct 11 2007 - lrupp@suse.de
237
- split python module to -python subpackage
238
- add back support for list of Entries in EntryWindow prompts in
239
snack (RH#248878) (newt-0.52.7-snack.patch)
240
- fix segfault in whiptail when no entry is selected in radiolist
241
(newt-0.52.7-whiptail.patch)
242
- fix handling of UTF-8 characters (#289291)
243
(newt-0.52.7-utf8.patch)
244
* Tue Sep 11 2007 - cthiel@suse.de
245
- removed bogus Provides: snack (to avoid name clash with package snack)
246
* Tue Jun 26 2007 - lrupp@suse.de
247
- update to 0.52.7:
248
+ add support to snack for multiple selection and border in listbox
249
and cursorAtEnd in entry (patch by Shawn Starr)
250
+ fix scrollbar positioning in listbox
251
+ cope with backward system time jumps (RH#240691)
252
+ free helplines and windows in newtFinished, check for overflow (RH#239992)
253
- remove included patches
254
- created doc package for tutorial (N#287087)
255
* Wed Jun 13 2007 - lrupp@suse.de
256
- included patches from Miroslav Lichvar:
257
+ fix cursor positioning when setting entry or checkbox flags
258
(newt-0.52.6-cursor.patch)
259
+ fix counting of items in checkboxtree
260
(newt-0.52.6-countitems.patch)
261
+ fix some memory leaks
262
(newt-0.52.6-memleaks.patch)
263
+ fix entry scrolling (RH#234829) and
264
+ fix multibyte character handling in entry
265
(newt-0.52.6-entry.patch)
266
- disable gpm-support - seems to smash the stack
267
- remove libbz2-1 from buildreq
268
- re-arange buildrequires
269
* Tue Jun 05 2007 - ro@suse.de
270
- buildreq: libbz2 -> libbz2-1
271
* Sun Apr 01 2007 - lrupp@suse.de
272
- added distribution specfic parts for build service
273
- added libbz2 to BuildRequires for suse_version > 1020
274
* Wed Mar 07 2007 - lrupp@suse.de
275
- update to 0.52.6:
276
+ add newtSetColor() to allow changing individual colors
277
+ add newtPopWindowNoRefresh() (patch by Forest Bond)
278
- branched newt-static package containing static library
279
* Wed Feb 14 2007 - lrupp@suse.de
280
- update to 0.52.5
281
+ provide option to change text of buttons (rh#126768)
282
+ don't add escape key to hot keys by default (rh#216157)
283
+ fix cursor position in checkboxtree, radio button and checkbox
284
+ don't force monochrome terminals to output colors
285
+ highlight active compact button on monochrome terminals
286
+ update translations from debian
287
- removed unnecessary ldconfig call in devel package
288
- removed obsolete newt-0.52.4-if1close.patch
289
* Thu Dec 21 2006 - lrupp@suse.de
290
- new upstream version 0.52.4: patches included upstream
291
+ fix entry corruption when reading multibyte characters
292
and double width character handling
293
+ avoid overflow/crash in scale
294
- makefile, configure and spec cleanup
295
- package whiptail.1 and locale files
296
* Fri Sep 22 2006 - lrupp@suse.de
297
- fix build with python 2.5 (thanks to aj)
298
- useful fixes from RH bugzilla included:
299
* #137957 : fix screen corruption
300
* #81352 : fix help dialog
301
* #83203 : make textbox with scrollbar focusable
302
* #86074 : turn off cursor when entry terminated form
303
* #186053 : better handling of listbox and checkboxtree focus
304
* #187545 : be more color friendly to 8-color terminals
305
* #189981 : fix handling windows larger than screen size
306
* fix checkboxtree positioning
307
* unfocus when displaying help
308
* fix double width character handling in checkboxtree and listbox
309
* Tue May 09 2006 - lrupp@suse.de
310
- add "Provides: snack" to specfile
311
- do not build whiptcl to avoid dependency on tcl (RH #177346)
312
(whiptcl is currently not used by anything)
313
- Apply patch by Bill Nottingham (thanks) to improve scrollbar appearance
314
(RH #174771)
315
- Fix a crash in checkboxtree.c (RH #165347)
316
- draw correct dialog sizes on the screen (see RH #185950) - applying
317
patch from Tomas Mraz (thanks)
318
* Wed Jan 25 2006 - mls@suse.de
319
- converted neededforbuild to BuildRequires
320
* Mon Dec 12 2005 - lrupp@suse.de
321
- new version 0.52.2
322
- include whiptcl.so
323
* Thu Nov 10 2005 - lrupp@suse.de
324
- only do gpmclose if gpmopen succeeed
325
(see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118530)
326
- include example files (peanuts.py, popcorn.py) in devel package
327
- use "-fPIC -Wall -fno-strict-aliasing" in CFLAGS
328
* Mon Sep 26 2005 - mls@suse.de
329
- make devel package require base package
330
* Mon Jul 25 2005 - lrupp@suse.de 0.51.6
331
- use of %%run_ldconfig
332
* Fri Jun 17 2005 - lrupp@suse.de 0.51.6
333
- use more macros: fix build on 64bit
334
* Fri Jun 17 2005 - lrupp@suse.de 0.51.6
335
- use $RPM_OPT_FLAGS
336
- delete /usr/lib/phyton in build to avoid errors from abuild
337
=> we've a symlink to /usr/lib/python2.4
338
* Thu Jun 16 2005 - ro@suse.de
339
- fix files pagaged twice (real path and over symlink)
340
* Tue Feb 15 2005 - ro@suse.de
341
- added python deps
342
* Mon Jan 24 2005 - ro@suse.de
343
- fix lib64 build
344
* Tue Nov 30 2004 - cwh@suse.de
345
- updated to 0.51.6
346
* Wed Jun 02 2004 - ro@suse.de
347
- get rid of some compiler warnings
348
* Thu Feb 26 2004 - hmacht@suse.de
349
- building as non-root
350
* Tue Feb 24 2004 - cwh@suse.de
351
- added soname link to package
352
* Mon Sep 15 2003 - cwh@suse.de
353
- removed wrong "Provides: snack" from spec-file
354
* Wed Aug 20 2003 - ro@suse.de
355
- expand filelist
356
- fix lib64 issues
357
* Wed Aug 20 2003 - cwh@suse.de
358
- fixed to compile with tcl8.4
359
* Tue Jan 16 2001 - schwab@suse.de
360
- Fix missing -fPIC in Makefile.
361
- Fix use of varargs.
362
* Wed Nov 29 2000 - ro@suse.de
363
- changed neededforbuild <tcld> to <tcl-devel>
364
* Wed Nov 29 2000 - smid@suse.cz
365
- subpackage renamed: newtd => newt-devel
366
* Fri Nov 24 2000 - ro@suse.de
367
- fixes for 2.0-python
368
* Sun Oct 29 2000 - kukuk@suse.de
369
- Add python-devel to need for build
370
* Mon May 22 2000 - smid@suse.cz
371
- fixed to compile with tcl8.3
372
* Wed May 10 2000 - nadvornik@suse.cz
373
- update to 0.50.8
374
- added BuildRoot
375
* Mon Jan 17 2000 - nashif@suse.de
376
- Initial Release ( Version 0.50)
377