]> git.pld-linux.org Git - packages/compat-ncurses5.git/blob - ncurses.spec
- revision up to 13,
[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:     13
9 Copyright:   distributable
10 Group:       Libraries
11 Source0:     ftp://ftp.clark.net/pub/dickey/ncurses/%{name}-%{version}.tar.gz
12 Patch0:      ncurses-4.2-updates-981202.patch.gz
13 Patch1:      ncurses-4.2-arm.patch
14 Patch2:      ncurses-4.2-hjl.patch
15 Patch3:      ncurses-4.2-rh.patch
16 Patch4:      ncurses-4.2-setuid2.patch
17 BuildRoot:   /tmp/%{name}-%{version}-root
18
19 %description
20 The curses library routines give the user a terminal-independent method of
21 updating character screens with reasonable optimization.  This
22 implementation is ``new curses'' (ncurses) and is the approved replacement
23 for 4.4BSD classic curses, which is being discontinued. 
24
25 %description -l de
26 Die curses-Library-Routinen geben dem Benutzer eine Terminal-unabhängige 
27 Methode zur optimierten Aktualisierung von zeichenbasierenden 
28 Bildschirminhalten an die Hand. Die vorliegende Implementierung ist NEW 
29 CURSES (ncurses), die offizielle Nachfolgerversion für 4.4BSC (die 
30 klassische curses-Version), welche nicht weitergeführt wird. 
31
32 %description -l fr
33 Les routines de la bibliothèque curses donnent à l'utilisateur une méthode
34 indépendante du terminal pour la mise à jour des écrans en mode texte avec une
35 optimisation correcte. Ceci est l'implantation du « nouveau curses » (ncurses)
36 et est le remplacement du curses 4.4BSD classique qui est abandonné.
37
38 %description -l pl
39 Biblioteka curses udostêpnia funkcje pozwalaj±ce u¿ytkownikom odwo³ywanie
40 siê do zawarto¶ci terminala niezale¿nie od jego typu. Pakiet tez zawiera
41 implementacjê klasycznej biblioteki curses (z systemu 4.4BSD) o nazwie
42 ncurses (new curses) i jest zarazem jej przysz³ym zamiennikiem.
43
44 %description -l tr
45 curses kitaplýðý ile kullanýcýya kullanýlan terminal tipinden baðýmsýz olarak
46 karakter tabanlý ekranlara eriþim olanaðý saðlanabilmektedir. Bu uyarlama
47 'new curses' (ncurses), BSD deki klasik curses'in geliþmiþ halidir.
48
49 %package devel
50 Summary:     Heade files for develop ncurses based application
51 Summary(pl): Pliki nag³ówkowe dla ncurses
52 Group:       Development/Libraries
53 Requires:    %{name} = %{version}
54
55 %description devel
56 This package includes the header files and libraries necessary to develop
57 applications that use ncurses.
58
59 %description -l pl devel
60 Pakiet ten zawiera pliki nag³ówkowe - niezbêdne do pisania/kompilowania
61 programów z wykorzystaniem ncurses.
62
63 %package static
64 Summary:     Static ncurses libraries
65 Summary(pl): Biblioteki statyczne ncurses
66 Group:       Development/Libraries
67 Requires:    %{name}-devel = %{version}
68
69 %description static
70 Static ncurses libraries.
71
72 %description -l pl static
73 Pakiet ten zawiera biblioteki statyczne dla ncurses.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78 %patch1 -p1
79 %patch2 -p0
80 %patch3 -p1
81 %patch4 -p1
82
83 %build
84 CFLAGS="$RPM_OPT_FLAGS -DPURE_TERMINFO" LDFLAGS="-s" \
85 ./configure \
86         --prefix=/usr \
87         --with-install-prefix=$RPM_BUILD_ROOT \
88         --with-normal \
89         --with-shared \
90         --without-cxx \
91         --without-ada \
92         --without-profile \
93         --without-debug
94
95 make
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT/{lib,usr/include/ncurses}
100
101 make install INSTALL_PREFIX=$RPM_BUILD_ROOT \
102         includedir=/usr/include/ncurses
103 ln -sf ../l/linux $RPM_BUILD_ROOT/usr/share/terminfo/c/console
104 ln -sf ncurses/curses.h $RPM_BUILD_ROOT/usr/include/ncurses.h
105 for I in curses unctrl eti form menu panel term; do
106         ln -sf ncurses/$I.h $RPM_BUILD_ROOT/usr/include/$I.h
107 done
108 # remove the linux terminfo entries 
109 # (broken on sparc, see termfiles_sparc pkg)
110 %ifarch sparc
111 rm -f $RPM_BUILD_ROOT/usr/lib/terminfo/l/linux
112 rm -f $RPM_BUILD_ROOT/usr/lib/terminfo/l/linux-m
113 %endif
114
115 strip $RPM_BUILD_ROOT/usr/lib/lib*.so.*.* || :
116
117 mv $RPM_BUILD_ROOT/usr/lib/libncurses.so.*.* $RPM_BUILD_ROOT/lib
118 ln -sf ../../lib/libncurses.so.4.2 $RPM_BUILD_ROOT/usr/lib/libncurses.so
119
120 for i in $RPM_BUILD_ROOT/usr/man/man1/*m ; do
121         mv $i $RPM_BUILD_ROOT/usr/man/man1/`basename $i m`
122 done
123 for i in $RPM_BUILD_ROOT/usr/man/man3/*x ; do
124         mv $i $RPM_BUILD_ROOT/usr/man/man3/`basename $i x`
125 done
126
127 gzip -9nf $RPM_BUILD_ROOT/usr/man/man{1,3,5,7}/*
128
129 %post   -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %files
136 %defattr(644, root, root, 755)
137 %attr(755, root, root) /usr/lib/lib*.so.*.*
138 %attr(755, root, root) /lib/lib*.so.*.*
139 /usr/share/terminfo
140 /usr/share/tabset
141 %attr(755, root, root) /usr/bin/*
142 %attr(644, root,  man) /usr/man/man[157]/*
143
144 %files devel
145 %defattr(644, root, root, 755)
146 %doc README ANNOUNCE c++ test
147 /usr/lib/lib*.so
148 /usr/include/*
149 %attr(644, root,  man) /usr/man/man3/*
150
151 %files static
152 %attr(644, root, root) /usr/lib/lib*.a
153
154 %changelog
155 * Fri Dec  6 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
156   [4.2-13]
157 - added gzipping man pages,
158 - changed man pages permission from 755 to 644,
159 - --with-debug configure parameter changed to --without-debug and
160   --without-profile, --without-cxx, --without-ada,
161 - added LDFLAGS="-s" to ./configure enviroment,
162 - splification in devel %files,
163 - changed sufixes man pages file names to *.1 and *.3.
164
165 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
166   [4.2-11]
167 - added more patches from rawhide ncurses,
168 - use INSTALL_PREFIX instead prefix on "make install" (without this some
169   binaries like tset have internal paths padded with Buildroot),
170 - fixed pl translation.
171
172 * Tue Sep  9 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
173 - added pl translation.
174
175 * Thu Sep  8 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
176   [4.2-10]
177 - added "rm -rf $RPM_BUILD_ROOT" on start %install,
178 - shares libncurses moved to /lib.
179
180 * Tue Sep  1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
181   [4.2-9]
182 - changed Buildroot to /tmp/%%{name}-%%{version}-root,
183 - added using %%{name} and %%{version} in Source,
184 - added static subpackage,
185 - changeded dependences to "Requires: %%{name} = %%{version}" in devel
186   subpackage,
187 - added striping shared libraries,
188 - added %attr and %defattr macros in %files (allow build package from
189   non-root account).
190
191 * Mon Jul 20 1998 Cristian Gafton <gafton@redhat.com>
192 - added lots of patches. This spec file is starting to look ugly
193
194 * Wed Jul 01 1998 Alan Cox <alan@redhat.com>
195 - Fix setuid trusting. Open termcap/info files as the real user.
196
197 * Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
198 - added terminfo entry for the poor guys using lat1 and/or lat-2 on their
199   consoles... Enjoy linux-lat ! Thanks, Erik !
200
201 * Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
202 - new patch to get xterm-color and nxterm terminfo entries
203 - aliased them to rxvt, as that seems to satisfy everybody
204
205 * Sun Apr 12 1998 Cristian Gafton <gafton@redhat.com>
206 - added %clean section
207
208 * Tue Apr 07 1998 Cristian Gafton <gafton@redhat.com>
209 - removed /usr/lib/terminfo symlink - we shouldn't need that
210
211 * Mon Apr 06 1998 Cristian Gafton <gafton@redhat.com>
212 - updated to 4.2 + patches
213 - added BuildRoot
214
215 * Sat Apr 04 1998 Cristian Gafton <gafton@redhat.com>
216 - rebuilt with egcs on alpha
217
218 * Wed Dec 31 1997 Erik Troan <ewt@redhat.com>
219 - version 7 didn't rebuild properly on the Alpha somehow -- no real changes
220   are in this version
221
222 * Tue Dec 09 1997 Erik Troan <ewt@redhat.com>
223 - TIOCGWINSZ wasn't used properly
224
225 * Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
226 - built against glibc, linked shared libs against -lc
This page took 0.095308 seconds and 4 git commands to generate.