]> git.pld-linux.org Git - packages/compat-ncurses5.git/blob - ncurses.spec
- added ++devel and ++static packages
[packages/compat-ncurses5.git] / ncurses.spec
1 Summary:     curses terminal control library
2 Summary(de): curses-Terminal-Control-Library
3 Summary(fr): La bibliothéque de contrôle de terminal curses.
4 Summary(pl): Biblioteki do kontrolowania terminala
5 Summary(tr): Terminal kontrol kitaplýðý
6 Name:        ncurses
7 Version:     4.2
8 Release:     16
9 Copyright:   distributable
10 Group:       Libraries
11 Group(pl):   Biblioteki
12 Source0:     ftp://ftp.clark.net/pub/dickey/ncurses/%{name}-%{version}.tar.gz
13 Source1:     ftp://ftp.clark.net/pub/dickey/ncurses/4.2/patch-4.2-990213.sh
14 Source2:     captoinfo.1m.pl
15 Source3:     clear.1.pl
16 Source4:     term.7.pl
17 Patch0:      ncurses-rh.patch
18 Patch1:      ncurses-setuid.patch
19 Patch2:      ncurses-arm.patch
20 BuildRoot:   /tmp/%{name}-%{version}-root
21 BuildPrereq: sharutils, patch, bash, gawk, sed, gzip
22
23 %description
24 The curses library routines give the user a terminal-independent method of
25 updating character screens with reasonable optimization. This
26 implementation is ``new curses'' (ncurses) and is the approved replacement
27 for 4.4BSD classic curses, which is being discontinued. 
28
29 %description -l de
30 Die curses-Library-Routinen geben dem Benutzer eine Terminal-unabhängige
31 Methode zur optimierten Aktualisierung von zeichenbasierenden
32 Bildschirminhalten an die Hand. Die vorliegende Implementierung ist NEW
33 CURSES (ncurses), die offizielle Nachfolgerversion für 4.4BSC (die
34 klassische curses-Version), welche nicht weitergeführt wird.
35
36 %description -l fr
37 Les routines de la bibliothèque curses donnent à l'utilisateur une méthode
38 indépendante du terminal pour la mise à jour des écrans en mode texte avec une
39 optimisation correcte. Ceci est l'implantation du « nouveau curses » (ncurses)
40 et est le remplacement du curses 4.4BSD classique qui est abandonné.
41
42 %description -l pl
43 Biblioteka curses udostêpnia funkcje pozwalaj±ce u¿ytkownikom na odwo³ywanie
44 siê do zawarto¶ci terminala niezale¿nie od jego typu. Pakiet ten zawiera
45 implementacjê klasycznej biblioteki curses (z systemu 4.4BSD) o nazwie
46 ncurses (new curses) i jest zarazem jej przysz³ym zamiennikiem.
47
48 %description -l tr
49 curses kitaplýðý ile kullanýcýya kullanýlan terminal tipinden baðýmsýz olarak
50 karakter tabanlý ekranlara eriþim olanaðý saðlanabilmektedir. Bu uyarlama
51 'new curses' (ncurses), BSD deki klasik curses'in geliþmiþ halidir.
52
53 %package ext
54 Summary:     Additionan ncurses libraries
55 Summary(pl): Dodatkowe biblioteki ncurses
56 Group:       Libraries
57 Group(pl):   Biblioteki
58 Requires:    %{name} = %{version}
59
60 %description ext
61 This package contain addidion ncurses libraries like libforms, libmenu and
62 libpanel for easy making full screen curse application.
63
64 %description -l pl ext
65 Pakiet ten zawiera dodatkowe biblioteki libforms, libmenu i libpanel s³u¿±ce
66 do ³atwego tworzenia aplikacji pe³noekranowych korzystaj±cych z ncurses.
67
68 %package -n terminfo
69 Summary:     Complete terminfo database
70 Summary(pl): Kompletna baza terminfo 
71 Group:       Utilities/Terminal
72 Group(pl):   Narzêdzia/Terminal
73 Requires:    %{name} = %{version}
74
75 %description -n terminfo
76 This package contain cmplet terminfo database. If you just use the Linux
77 console, xterm and VT100, you probably will not need this this - a
78 minimal /usr/lib/terminfo tree for these terminal is already included in the
79 ncurses package.
80
81 %description -l pl -n terminfo
82 Pakiet ten zawiera kompletn± bazê terminfo. Je¿eli u¿ywasz terminali
83 linux, console, xterm, vt100 prawdopodobnie nie bedziesz potrzebowa³ tego
84 pakietu gdy¿ definicje tych terminali s± w³±czone w pakiet ncurses.
85
86 %package devel
87 Summary:     Header files for develop ncurses based application
88 Summary(pl): Pliki nag³ówkowe do bibliotek ncurses
89 Group:       Development/Libraries
90 Group(pl):   Programowanie/Biblioteki
91 Requires:    %{name} = %{version}
92 Requires:    %{name}-ext = %{version}
93
94 %description devel
95 This package includes the header files and libraries necessary to develop
96 applications that use ncurses.
97
98 %description -l pl devel
99 Pakiet ten zawiera pliki nag³ówkowe niezbêdne do pisania/kompilowania
100 programów z wykorzystaniem bibliotek ncurses.
101
102 %package static
103 Summary:     Static libraries for ncurses
104 Summary(pl): Biblioteki statyczne ncurses
105 Group:       Development/Libraries
106 Group(pl):   Programowanie/Biblioteki
107 Requires:    %{name}-devel = %{version}
108
109 %description static
110 This package includes the static libraries necessary to develop
111 applications that use ncurses.
112
113 %description -l pl static
114 Pakiet ten zawiera biblioteki statyczne ncurses.
115
116 %package ++devel
117 Summary:     Header files for develop ncurses++ based application
118 Summary(pl): Pliki nag³ówkowe do biblioteki ncurses++
119 Group:       Development/Libraries
120 Group(pl):   Programowanie/Biblioteki
121 Requires:    %{name}-devel = %{version}
122
123 %description ++devel
124 This package includes the header files and libraries necessary to develop
125 applications that use ncurses++.
126
127 %description -l pl ++devel
128 Pakiet ten zawiera pliki nag³ówkowe niezbêdne do pisania/kompilowania
129 programów z wykorzystaniem biblioteki ncurses++.
130
131 %package ++static
132 Summary:     Static libraries for ncurses++
133 Summary(pl): Biblioteki statyczne ncurses++
134 Group:       Development/Libraries
135 Group(pl):   Programowanie/Biblioteki
136 Requires:    %{name} = {%version}
137
138 %description ++static
139 This package includes the static libraries necessary to develop
140 applications that use ncurses++.
141
142 %description -l pl ++static
143 Pakiet ten zawiera biblioteki statyczne ncurses++.
144
145 %prep
146 %setup  -q
147 sh %{SOURCE1}
148 %patch0 -p1
149 %patch1 -p1
150 %patch2 -p1
151
152 %build
153 CFLAGS="$RPM_OPT_FLAGS -DPURE_TERMINFO" LDFLAGS="-s" \
154 ./configure %{_target} \
155         --prefix=/usr \
156         --with-install-prefix=$RPM_BUILD_ROOT \
157         --with-normal \
158         --with-shared \
159         --without-ada \
160         --without-profile \
161         --without-debug
162
163 make
164
165 %install
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT/{lib,usr/man/pl/man{1,7}}
168
169 make install INSTALL_PREFIX=$RPM_BUILD_ROOT \
170         includedir=/usr/include/ncurses
171
172 ln -sf ../l/linux $RPM_BUILD_ROOT/usr/share/terminfo/c/console
173
174 strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*so.*.*}
175
176 mv $RPM_BUILD_ROOT/usr/lib/libncurses.so.*.* $RPM_BUILD_ROOT/lib
177 ln -sf ../../lib/libncurses.so.4.2 $RPM_BUILD_ROOT/usr/lib/libncurses.so
178
179 install %{SOURCE2} $RPM_BUILD_ROOT/usr/man/pl/man1/captoinfo.1m
180 install %{SOURCE3} $RPM_BUILD_ROOT/usr/man/pl/man1/clear.1
181 install %{SOURCE4} $RPM_BUILD_ROOT/usr/man/pl/man7/term.7
182
183 install -d $RPM_BUILD_ROOT/usr/doc/examples/c++
184 install c++/demo.cc $RPM_BUILD_ROOT/usr/doc/examples/c++
185
186 rm -f $RPM_BUILD_ROOT/usr/lib/libncurses.so.4
187
188 gzip -9nf $RPM_BUILD_ROOT/usr/man/pl/man*/* README ANNOUNCE
189 gzip -9nf misc/*.doc
190
191 %post   -p /sbin/ldconfig
192 %postun -p /sbin/ldconfig
193
194 %post   ext -p /sbin/ldconfig
195 %postun ext -p /sbin/ldconfig
196
197 %clean
198 rm -rf $RPM_BUILD_ROOT
199
200 %files
201 %defattr(644,root,root,755)
202
203 %attr(755,root,root) /lib/libncurses.so.*.*
204
205 /usr/share/tabset
206
207 %dir /usr/share/terminfo
208 %dir /usr/share/terminfo/l
209 %dir /usr/share/terminfo/v
210 %dir /usr/share/terminfo/x
211
212 /usr/share/terminfo/l/linux*
213 /usr/share/terminfo/v/vt100
214 /usr/share/terminfo/v/vt220
215 /usr/share/terminfo/v/vt220-8
216 /usr/share/terminfo/v/vt52
217 /usr/share/terminfo/x/xterm*
218
219 %attr(755,root,root) /usr/bin/*
220
221 /usr/man/man[157]/*
222 %lang(pl) /usr/man/pl/man[17]/*
223
224 %files ext
225 %attr(755,root,root) /usr/lib/lib*so.*.*
226
227 %files -n terminfo
228 %defattr(644,root,root,755)
229
230 /usr/share/terminfo/[1-9NPXa-km-uwz]
231 /usr/share/terminfo/l/la120
232 /usr/share/terminfo/l/layer
233 /usr/share/terminfo/l/lisa
234 /usr/share/terminfo/l/lisaterm
235 /usr/share/terminfo/l/lisaterm-w
236 /usr/share/terminfo/l/liswb
237 /usr/share/terminfo/l/ln03
238 /usr/share/terminfo/l/ln03-w
239 /usr/share/terminfo/l/lpr
240 /usr/share/terminfo/l/luna
241 /usr/share/terminfo/l/luna68k
242 /usr/share/terminfo/v/v200-nam
243 /usr/share/terminfo/v/v320n
244 /usr/share/terminfo/v/v3220
245 /usr/share/terminfo/v/v5410
246 /usr/share/terminfo/v/vapple
247 /usr/share/terminfo/v/vc103
248 /usr/share/terminfo/v/vc203
249 /usr/share/terminfo/v/vc303
250 /usr/share/terminfo/v/vc303a
251 /usr/share/terminfo/v/vc403a
252 /usr/share/terminfo/v/vc404
253 /usr/share/terminfo/v/vc404-s
254 /usr/share/terminfo/v/vc414
255 /usr/share/terminfo/v/vc414h
256 /usr/share/terminfo/v/vc415
257 /usr/share/terminfo/v/venix
258 /usr/share/terminfo/v/versaterm
259 /usr/share/terminfo/v/vi200
260 /usr/share/terminfo/v/vi200-f
261 /usr/share/terminfo/v/vi200-rv
262 /usr/share/terminfo/v/vi300
263 /usr/share/terminfo/v/vi300-old
264 /usr/share/terminfo/v/vi50
265 /usr/share/terminfo/v/vi500
266 /usr/share/terminfo/v/vi50adm
267 /usr/share/terminfo/v/vi55
268 /usr/share/terminfo/v/vi550
269 /usr/share/terminfo/v/vi603
270 /usr/share/terminfo/v/viewpoint
271 /usr/share/terminfo/v/viewpoint3a+
272 /usr/share/terminfo/v/viewpoint60
273 /usr/share/terminfo/v/viewpoint90
274 /usr/share/terminfo/v/visa50
275 /usr/share/terminfo/v/visual603
276 /usr/share/terminfo/v/vitty
277 /usr/share/terminfo/v/vk100
278 /usr/share/terminfo/v/vp3a+
279 /usr/share/terminfo/v/vp60
280 /usr/share/terminfo/v/vp90
281 /usr/share/terminfo/v/vremote
282 /usr/share/terminfo/v/vs100
283 /usr/share/terminfo/v/vs100-x10
284 /usr/share/terminfo/v/vsc
285 /usr/share/terminfo/v/vt-61
286 /usr/share/terminfo/v/vt100-am
287 /usr/share/terminfo/v/vt100-bot-s
288 /usr/share/terminfo/v/vt100-nam
289 /usr/share/terminfo/v/vt100-nam-w
290 /usr/share/terminfo/v/vt100-nav
291 /usr/share/terminfo/v/vt100-nav-w
292 /usr/share/terminfo/v/vt100-s
293 /usr/share/terminfo/v/vt100-s-bot
294 /usr/share/terminfo/v/vt100-s-top
295 /usr/share/terminfo/v/vt100-top-s
296 /usr/share/terminfo/v/vt100-w
297 /usr/share/terminfo/v/vt100-w-am
298 /usr/share/terminfo/v/vt100-w-nam
299 /usr/share/terminfo/v/vt100-w-nav
300 /usr/share/terminfo/v/vt100nam
301 /usr/share/terminfo/v/vt102
302 /usr/share/terminfo/v/vt102-nsgr
303 /usr/share/terminfo/v/vt102-w
304 /usr/share/terminfo/v/vt125
305 /usr/share/terminfo/v/vt131
306 /usr/share/terminfo/v/vt132
307 /usr/share/terminfo/v/vt200
308 /usr/share/terminfo/v/vt200-js
309 /usr/share/terminfo/v/vt200-w
310 /usr/share/terminfo/v/vt220-js
311 /usr/share/terminfo/v/vt220-nam
312 /usr/share/terminfo/v/vt220-w
313 /usr/share/terminfo/v/vt220d
314 /usr/share/terminfo/v/vt300
315 /usr/share/terminfo/v/vt300-nam
316 /usr/share/terminfo/v/vt300-w
317 /usr/share/terminfo/v/vt300-w-nam
318 /usr/share/terminfo/v/vt320
319 /usr/share/terminfo/v/vt320-k3
320 /usr/share/terminfo/v/vt320-k311
321 /usr/share/terminfo/v/vt320-nam
322 /usr/share/terminfo/v/vt320-w
323 /usr/share/terminfo/v/vt320-w-nam
324 /usr/share/terminfo/v/vt320nam
325 /usr/share/terminfo/v/vt330
326 /usr/share/terminfo/v/vt340
327 /usr/share/terminfo/v/vt400
328 /usr/share/terminfo/v/vt400-24
329 /usr/share/terminfo/v/vt420
330 /usr/share/terminfo/v/vt420f
331 /usr/share/terminfo/v/vt420pc
332 /usr/share/terminfo/v/vt420pcdos
333 /usr/share/terminfo/v/vt50
334 /usr/share/terminfo/v/vt50h
335 /usr/share/terminfo/v/vt510
336 /usr/share/terminfo/v/vt510pc
337 /usr/share/terminfo/v/vt510pcdos
338 /usr/share/terminfo/v/vt520
339 /usr/share/terminfo/v/vt525
340 /usr/share/terminfo/v/vt61
341 /usr/share/terminfo/v/vt61.5
342 /usr/share/terminfo/x/x10term
343 /usr/share/terminfo/x/x1700
344 /usr/share/terminfo/x/x1700-lm
345 /usr/share/terminfo/x/x1720
346 /usr/share/terminfo/x/x1750
347 /usr/share/terminfo/x/x68k
348 /usr/share/terminfo/x/x68k-ite
349 /usr/share/terminfo/x/x820
350 /usr/share/terminfo/x/xenix
351 /usr/share/terminfo/x/xerox
352 /usr/share/terminfo/x/xerox-lm
353 /usr/share/terminfo/x/xerox1720
354 /usr/share/terminfo/x/xerox820
355 /usr/share/terminfo/x/xl83
356 /usr/share/terminfo/x/xtalk
357 /usr/share/terminfo/x/xwsh
358
359 %files devel
360 %defattr(644,root,root,755)
361 %doc {README,ANNOUNCE}.gz misc/*.doc.gz misc/*.html
362 %attr(755,root,root) /usr/lib/lib*.so
363 /usr/include/ncurses/curses.h
364 /usr/include/ncurses/eti.h
365 /usr/include/ncurses/form.h
366 /usr/include/ncurses/menu.h
367 /usr/include/ncurses/ncurses.h
368 /usr/include/ncurses/panel.h
369 /usr/include/ncurses/term.h
370 /usr/include/ncurses/termcap.h
371 /usr/include/ncurses/unctrl.h
372 /usr/man/man3/*
373
374 %files static
375 %defattr(644,root,root,755)
376 /usr/lib/libncurses.a
377 /usr/lib/libform.a
378 /usr/lib/libpanel.a
379 /usr/lib/libmenu.a
380
381 %files ++devel
382 %defattr(644,root,root,755)
383 %dir /usr/doc/examples
384 %dir /usr/doc/examples/c++
385 %dir /usr/include/ncurses
386 /usr/include/ncurses/cursesapp.h
387 /usr/include/ncurses/cursesf.h
388 /usr/include/ncurses/cursesm.h
389 /usr/include/ncurses/cursesp.h
390 /usr/include/ncurses/cursesw.h
391 /usr/include/ncurses/etip.h
392 /usr/include/ncurses/cursslk.h
393 /usr/doc/examples/c++/*
394
395 %files ++static
396 %defattr(644,root,root,755)
397 /usr/lib/libncurses++.a
398
399 %changelog
400 * Sun May 16 1999 Artur Wróblewski <wrobell@posexperts.com.pl>
401   [4.2-16]
402 - added ++devel and ++static packages
403 - added documentation to devel package
404 - some minor changes
405
406 * Mon Apr 19 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
407   []
408 - removed Conflicts: glibc (not neccesary now),
409 - recompiles on new rpm.
410
411 * Sun Mar 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
412   [4.2-14]
413 - compressed documentation,
414 - added so-links of shared libraries,
415 - added Group(pl) in devel subpackage,
416 - fixed double compressing of man pages,
417 - removed test/* from documentation.
418
419 * Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
420   [4.2-13]
421 - removed man group from man pages.
422
423 * Wed Feb 17 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
424   [4.2-12]
425 - updated to 990213 snapshot,
426 - removed hjl patch (now is in 990213 snap),
427 - added LDFLAGS="-s" to ./configure enviroment,
428 - removed removing linux, linux-m terminfo on sparc,
429 - added terminfo subbackage with full terminfo database (minimal
430   term db is in main package),
431 - added "Conflicts: glibc <= 2.0.7" in main,
432 - added pl man pages for captoinfo(1), clear(1), term(7),
433 - added separated subpackage ext with non base ncurses libraries (separating
434   this allow minimize minimal system size).
435
436 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
437   [4.2-4d]
438 - added more patches from rawhide ncurses,
439 - use INSTALL_PREFIX instead prefix on "make install" (without this some
440   binaries like tset have internal paths padded with Buildroot),
441 - shares libncurses moved to /lib,
442 - fixed pl translation.
443
444 * Sat Nov 07 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
445   [4.2-3d]
446 - added some patches .. ;)
447 - fixed ol translation,
448 - full %file description,
449 - fixed files permissions,
450 - minor changes.
451
452 * Tue Sep 09 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
453   [4.2-2d]
454 - translation modified for pl,
455 - build against GNU libc-2.1,
456 - fixed permissions of ELF binaries,
457 - moved Buildroot to /var/tmp/%{name}-%{version}-root
458 - added a static package,
459 - added %defattr support,
460 - build from non root's account, 
461 - start at invalid RH spec file.
This page took 0.13814 seconds and 4 git commands to generate.