]>
Commit | Line | Data |
---|---|---|
2a7ed9e5 JB |
1 | # |
2 | # Conditional build: | |
0eedcc8a PS |
3 | %bcond_without ada # do not build Ada95 bindings |
4 | %bcond_without cxx # do not build C++ ncurses bindings and demo programs | |
af792b88 | 5 | # # (this is neccessary to build ncurses linked with uClibc). |
740d1fbf JB |
6 | %bcond_without gpm # build without (dynamically loadable) libgpm support |
7 | # | |
e19822a8 | 8 | %ifarch sparc64 |
9 | %undefine with_ada | |
10 | %endif | |
11 | ||
97c6246c | 12 | Summary: curses terminal control library |
512ffe0d ER |
13 | Summary(de.UTF-8): curses-Terminal-Control-Library |
14 | Summary(es.UTF-8): Biblioteca de control de terminal curses | |
15 | Summary(fr.UTF-8): La bibliothéque de contrôle de terminal curses | |
16 | Summary(pl.UTF-8): Biblioteki do kontrolowania terminala | |
17 | Summary(pt_BR.UTF-8): Biblioteca de controle de terminal curses | |
18 | Summary(ru.UTF-8): ncurses - новая библиотека управления терминалами | |
19 | Summary(tr.UTF-8): Terminal kontrol kitaplığı | |
20 | Summary(uk.UTF-8): ncurses - нова бібліотека керування терміналами | |
97c6246c | 21 | Name: ncurses |
71b8d3de | 22 | Version: 5.7 |
acc4c401 | 23 | Release: 14 |
5824d6c7 | 24 | License: distributable |
97c6246c | 25 | Group: Libraries |
2721ec82 | 26 | Source0: ftp://dickey.his.com/ncurses/%{name}-%{version}.tar.gz |
71b8d3de | 27 | # Source0-md5: cce05daf61a64501ef6cd8da1f727ec6 |
32f51c2e | 28 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
86edd651 | 29 | # Source1-md5: 3b05ee835dc20c306e9af2a9d3fbf1f1 |
e0340545 | 30 | |
71b8d3de | 31 | # source: ftp://dickey.his.com/ncurses/5.7/ |
32 | Patch0: %{name}-5.7-20081115.patch.gz | |
78985a0e | 33 | Patch1: %{name}-5.7-20081122.patch.gz |
92d2c35f | 34 | Patch2: %{name}-5.7-20081129.patch.gz |
67ab943f AM |
35 | Patch3: %{name}-5.7-20081206.patch.gz |
36 | Patch4: %{name}-5.7-20081213.patch.gz | |
37 | Patch5: %{name}-5.7-20081220.patch.gz | |
38 | Patch6: %{name}-5.7-20081227.patch.gz | |
39 | Patch7: %{name}-5.7-20090103.patch.gz | |
40 | Patch8: %{name}-5.7-20090104.patch.gz | |
41 | Patch9: %{name}-5.7-20090105.patch.gz | |
42 | Patch10: %{name}-5.7-20090110.patch.gz | |
43 | Patch11: %{name}-5.7-20090117.patch.gz | |
44 | Patch12: %{name}-5.7-20090124.patch.gz | |
45 | Patch13: %{name}-5.7-20090207.patch.gz | |
46 | Patch14: %{name}-5.7-20090214.patch.gz | |
e0340545 | 47 | |
652b7e23 AM |
48 | Patch100: %{name}-screen_hpa_fix.patch |
49 | Patch101: %{name}-xterm_hpa_fix.patch | |
740d1fbf JB |
50 | Patch102: %{name}-meta.patch |
51 | Patch103: %{name}-xterm-home-end.patch | |
52 | Patch104: %{name}-mouse_trafo-warning.patch | |
53 | Patch105: %{name}-gnome-terminal.patch | |
54 | # not sure about this one, now all xterms have kbs defined (to ^H, not \177) | |
55 | # and only XTerm.ad.pl sets backspace to \177 instead of ^H | |
56 | Patch106: %{name}-xterm-kbs.patch | |
652b7e23 | 57 | # disable rain demo; triggers gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14998 |
740d1fbf | 58 | Patch107: %{name}-no-rain-demo.patch |
c77491d3 | 59 | URL: http://dickey.his.com/ncurses/ncurses.html |
3f8bb7f1 | 60 | BuildRequires: automake |
d8fc1baa | 61 | %{?with_ada:BuildRequires: gcc-ada} |
740d1fbf | 62 | %{?with_gpm:BuildRequires: gpm-devel} |
d8fc1baa | 63 | %{?with_cxx:BuildRequires: libstdc++-devel} |
33687491 | 64 | BuildRequires: sharutils |
3a897939 | 65 | Obsoletes: libncurses5 |
c6a56298 | 66 | Conflicts: terminfo < 5.4-0.6 |
f6c378e0 | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f0a3cad1 | 68 | |
06c46e64 | 69 | %define _includedir %{_prefix}/include/ncurses |
70 | ||
f0a3cad1 | 71 | %description |
cf6b9bab | 72 | The curses library routines give the user a terminal-independent |
73 | method of updating character screens with reasonable optimization. | |
74 | This implementation is ``new curses'' (ncurses) and is the approved | |
75 | replacement for 4.4BSD classic curses, which is being discontinued. | |
f0a3cad1 | 76 | |
2af46c3d | 77 | %description -l de.UTF-8 |
cf6b9bab | 78 | Die curses-Library-Routinen geben dem Benutzer eine |
2af46c3d | 79 | Terminal-unabhängige Methode zur optimierten Aktualisierung von |
cf6b9bab | 80 | zeichenbasierenden Bildschirminhalten an die Hand. Die vorliegende |
81 | Implementierung ist NEW CURSES (ncurses), die offizielle | |
2af46c3d JR |
82 | Nachfolgerversion für 4.4BSC (die klassische curses-Version), welche |
83 | nicht weitergeführt wird. | |
84 | ||
85 | %description -l es.UTF-8 | |
86 | Las rutinas de la biblioteca curses ofrecen al usuario un método | |
87 | independiente de terminal para actualización de las pantallas de | |
88 | caracteres con optimización razonable. Este soporte es "nuevo curses" | |
89 | (ncurses) y es el substituto aprobado para los clásicos curses 4.4BSD, | |
5a161ae4 | 90 | que se quedaban desfasados. |
91 | ||
2af46c3d JR |
92 | %description -l fr.UTF-8 |
93 | Les routines de la bibliothèque curses donnent à l'utilisateur une | |
94 | méthode indépendante du terminal pour la mise à jour des écrans en | |
cf6b9bab | 95 | mode texte avec une optimisation correcte. Ceci est l'implantation du |
2af46c3d JR |
96 | « nouveau curses » (ncurses) et est le remplacement du curses 4.4BSD |
97 | classique qui est abandonné. | |
f0a3cad1 | 98 | |
2af46c3d JR |
99 | %description -l pl.UTF-8 |
100 | Biblioteka curses udostępnia funkcje pozwalające użytkownikom na | |
101 | odwoływanie się do zawartości terminala niezależnie od jego typu. | |
102 | Pakiet ten zawiera implementację klasycznej biblioteki curses (z | |
cf6b9bab | 103 | systemu 4.4BSD) o nazwie ncurses (new curses) i jest zarazem jej |
2af46c3d | 104 | przyszłym zamiennikiem. |
6d59ecec | 105 | |
2af46c3d JR |
106 | %description -l pt_BR.UTF-8 |
107 | As rotinas da biblioteca curses fornecem ao usuário um método | |
108 | independente de terminal para atualização das telas de caracteres com | |
109 | otimização razoável. Essa implementação é "novo curses" (ncurses) e é | |
110 | o substituto aprovado para os clássicos curses 4.4BSD, que estão se | |
5a161ae4 | 111 | tornando obsoletos. |
112 | ||
2af46c3d JR |
113 | %description -l ru.UTF-8 |
114 | Программы библиотеки curses предоставляют пользователям возможность | |
115 | терминально-независимого обновления символьных экранов с достаточной | |
116 | оптимизацией. Эта реализация - "новые curses" (ncurses), которая | |
117 | является одобренной заменой классической библиотеки curses из 4.4BSD, | |
118 | в настоящее время "снятой с производства". В PLD Linux ncurses | |
119 | является жизненно необходимой, без нее не будут функционировать многие | |
120 | программы, составляющие базовую систему. Практически все программы, | |
121 | которые выводят что-либо на терминал, используют ncurses. В PLD Linux | |
122 | ни библиотека termcap, ни традиционный файл /etc/termcap, не | |
123 | используются... | |
124 | ||
125 | %description -l tr.UTF-8 | |
126 | curses kitaplığı ile kullanıcıya kullanılan terminal tipinden bağımsız | |
127 | olarak karakter tabanlı ekranlara erişim olanağı sağlanabilmektedir. | |
128 | Bu uyarlama 'new curses' (ncurses), BSD deki klasik curses'in gelişmiş | |
dd3fb4d2 | 129 | halidir. |
f0a3cad1 | 130 | |
2af46c3d JR |
131 | %description -l uk.UTF-8 |
132 | Програми бібліотеки curses дають користувачам можливість | |
133 | термінально-незалежного поновлення символьних екранів з достатньою | |
134 | оптимізацією. Ця реалізація - "нові curses" (ncurses), котра є | |
135 | схваленою заміною класичної бібліотеки curses з 4.4BSD, яка наразі | |
136 | "знята з виробництва". В PLD Linux ncurses є життєво необхідною, без | |
137 | неї не буде працювати більшость програм, що складають базову систему. | |
138 | Практично всі програми, котрі виводять щось на термінал, | |
139 | використовують ncurses. В PLD Linux ані бібліотека termcap, ані | |
140 | традиційний файл /etc/termcap не використовуються... | |
5f271f80 | 141 | |
66084646 | 142 | %package -n terminfo |
97c6246c | 143 | Summary: Complete terminfo database |
512ffe0d ER |
144 | Summary(es.UTF-8): Banco de datos terminfo para terminales extras (menos usados) |
145 | Summary(pl.UTF-8): Kompletna baza terminfo | |
146 | Summary(pt_BR.UTF-8): Base de dados terminfo para terminais adicionais (menos usados) | |
f3076edf | 147 | Group: Applications/Terminal |
2a7ed9e5 | 148 | Requires: %{name} = %{version}-%{release} |
b4ea1dfd | 149 | Obsoletes: ncurses-extraterms |
03a65fe5 | 150 | |
151 | %description -n terminfo | |
fb25d758 | 152 | This package contains complete terminfo database. If you just use the |
cf6b9bab | 153 | Linux console, xterm and VT100, you probably will not need this this - |
154 | a minimal %{_datadir}/terminfo tree for these terminal is already | |
155 | included in the ncurses package. | |
03a65fe5 | 156 | |
2af46c3d | 157 | %description -n terminfo -l es.UTF-8 |
5a161ae4 | 158 | Banco de datos terminfo para terminales extras. Las capacidades de los |
2af46c3d | 159 | terminales más usados ya están en el paquete principal ncurses. |
5a161ae4 | 160 | |
2af46c3d JR |
161 | %description -n terminfo -l pl.UTF-8 |
162 | Pakiet ten zawiera kompletną bazę terminfo. Jeżeli używasz terminali | |
163 | linux, console, xterm, vt100 prawdopodobnie nie bedziesz potrzebował | |
164 | tego pakietu gdyż definicje tych terminali są włączone w pakiet | |
cf6b9bab | 165 | ncurses. |
03a65fe5 | 166 | |
2af46c3d JR |
167 | %description -n terminfo -l pt_BR.UTF-8 |
168 | Base de dados terminfo para terminais extras. As definições dos | |
169 | terminais mais usados já estão no pacote principal ncurses. | |
5a161ae4 | 170 | |
66084646 | 171 | %package devel |
97c6246c | 172 | Summary: Header files for develop ncurses based application |
512ffe0d ER |
173 | Summary(es.UTF-8): Bibliotecas de desarrollo para ncurses |
174 | Summary(pl.UTF-8): Pliki nagłówkowe do bibliotek ncurses | |
175 | Summary(pt_BR.UTF-8): Bibliotecas de desenvolvimento para ncurses | |
176 | Summary(ru.UTF-8): Хедеры и библиотеки для разработки программ с ncurses | |
177 | Summary(uk.UTF-8): Хедери та бібліотеки для розробки програм з ncurses | |
97c6246c | 178 | Group: Development/Libraries |
32786e39 | 179 | Requires: %{name} = %{version}-%{release} |
3a897939 | 180 | Obsoletes: libncurses5-devel |
f6c378e0 | 181 | Obsoletes: libtermcap-devel |
f0a3cad1 | 182 | |
183 | %description devel | |
cf6b9bab | 184 | This package includes the header files and libraries necessary to |
185 | develop applications that use ncurses. | |
f0a3cad1 | 186 | |
2af46c3d JR |
187 | %description devel -l es.UTF-8 |
188 | Este paquete incluye las bibliotecas y archivos de inclusión | |
5a161ae4 | 189 | necesarios al desarrollo de aplicaciones que usan ncurses. |
190 | ||
2af46c3d JR |
191 | %description devel -l pl.UTF-8 |
192 | Pakiet ten zawiera pliki nagłówkowe niezbędne do pisania/kompilowania | |
193 | programów z wykorzystaniem bibliotek ncurses. | |
6d59ecec | 194 | |
2af46c3d JR |
195 | %description devel -l pt_BR.UTF-8 |
196 | Este pacote inclui as bibliotecas e arquivos de inclusão necessários | |
197 | ao desenvolvimento de aplicações que usam ncurses. | |
5a161ae4 | 198 | |
2af46c3d JR |
199 | %description devel -l ru.UTF-8 |
200 | Этот пакет содержит хедеры и библиотеки, необходимые для разработки | |
201 | программ, использующих ncurses. | |
5f271f80 | 202 | |
2af46c3d JR |
203 | %description devel -l uk.UTF-8 |
204 | Цей пакет містить хедери та бібліотеки, необхідні для розробки | |
205 | програм, що використовують ncurses. | |
5f271f80 | 206 | |
66084646 | 207 | %package static |
97c6246c | 208 | Summary: Static libraries for ncurses |
512ffe0d ER |
209 | Summary(es.UTF-8): Static libraries for ncurses development |
210 | Summary(pl.UTF-8): Biblioteki statyczne ncurses | |
211 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ncurses | |
212 | Summary(ru.UTF-8): Статические библиотеки для разработки программ с ncurses | |
213 | Summary(uk.UTF-8): Статичні бібліотеки для розробки програм з ncurses | |
97c6246c | 214 | Group: Development/Libraries |
32786e39 | 215 | Requires: %{name}-devel = %{version}-%{release} |
f0a3cad1 | 216 | |
217 | %description static | |
03a65fe5 | 218 | This package includes the static libraries necessary to develop |
219 | applications that use ncurses. | |
f0a3cad1 | 220 | |
2af46c3d | 221 | %description static -l es.UTF-8 |
5a161ae4 | 222 | Static libraries for ncurses development. |
223 | ||
2af46c3d | 224 | %description static -l pl.UTF-8 |
03a65fe5 | 225 | Pakiet ten zawiera biblioteki statyczne ncurses. |
6d59ecec | 226 | |
2af46c3d JR |
227 | %description static -l pt_BR.UTF-8 |
228 | Bibliotecas estáticas para desenvolvimento com ncurses. | |
5a161ae4 | 229 | |
2af46c3d JR |
230 | %description static -l ru.UTF-8 |
231 | Этот пакет содержит статические библиотеки, необходимые для разработки | |
232 | программ, использующих ncurses. | |
5f271f80 | 233 | |
2af46c3d JR |
234 | %description static -l uk.UTF-8 |
235 | Цей пакет містить статичні бібліотеки, необхідні для розробки програм, | |
236 | що використовують ncurses. | |
5f271f80 | 237 | |
ff180380 JB |
238 | %package ext |
239 | Summary: Additional ncurses libraries | |
512ffe0d | 240 | Summary(pl.UTF-8): Dodatkowe biblioteki ncurses |
ff180380 JB |
241 | Group: Libraries |
242 | Requires: %{name} = %{version}-%{release} | |
243 | ||
244 | %description ext | |
245 | This package contains addidion ncurses libraries like libforms, | |
246 | libmenu and libpanel for easy making full screen curse application. | |
247 | ||
2af46c3d | 248 | %description ext -l pl.UTF-8 |
ff180380 | 249 | Pakiet ten zawiera dodatkowe biblioteki libforms, libmenu i libpanel |
2af46c3d | 250 | służące do łatwego tworzenia aplikacji pełnoekranowych korzystających |
ff180380 JB |
251 | z ncurses. |
252 | ||
253 | %package ext-devel | |
254 | Summary: Header files for additional ncurses libraries | |
512ffe0d | 255 | Summary(pl.UTF-8): Pliki nagłówkowe dodatkowych bibliotek ncurses |
ff180380 JB |
256 | Group: Development/Libraries |
257 | Requires: %{name}-devel = %{version}-%{release} | |
258 | Requires: %{name}-ext = %{version}-%{release} | |
259 | ||
260 | %description ext-devel | |
261 | Header files for additional ncurses libraries (form, menu, panel). | |
262 | ||
2af46c3d JR |
263 | %description ext-devel -l pl.UTF-8 |
264 | Pliki nagłówkowe dodatkowych bibliotek ncurses (form, menu, panel). | |
ff180380 JB |
265 | |
266 | %package ext-static | |
267 | Summary: Static versions of additional ncurses libraries | |
512ffe0d | 268 | Summary(pl.UTF-8): Statyczne wersje dodatkowych bibliotek ncurses |
ff180380 JB |
269 | Group: Development/Libraries |
270 | Requires: %{name}-ext-devel = %{version}-%{release} | |
271 | ||
272 | %description ext-static | |
273 | Static versions of additional ncurses libraries (form, menu, panel). | |
274 | ||
2af46c3d | 275 | %description ext-static -l pl.UTF-8 |
ff180380 JB |
276 | Statyczne wersje dodatkowych bibliotek ncurses (form, menu, panel). |
277 | ||
ec2eb5ae | 278 | %package c++-devel |
f98533be | 279 | Summary: Header files for develop C++ ncurses based application |
512ffe0d | 280 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki C++ ncurses |
f98533be | 281 | Group: Development/Libraries |
32786e39 | 282 | Requires: %{name}-devel = %{version}-%{release} |
17ef06ef | 283 | |
ec2eb5ae | 284 | %description c++-devel |
cf6b9bab | 285 | This package includes the header files and libraries necessary to |
286 | develop applications that use C++ ncurses. | |
17ef06ef | 287 | |
2af46c3d JR |
288 | %description c++-devel -l pl.UTF-8 |
289 | Pakiet ten zawiera pliki nagłówkowe niezbędne do kompilacji programów | |
652b7e23 | 290 | z wykorzystaniem biblioteki c++-ncurses. |
17ef06ef | 291 | |
ec2eb5ae | 292 | %package c++-static |
97c6246c | 293 | Summary: Static libraries for C++ ncurses |
512ffe0d | 294 | Summary(pl.UTF-8): Biblioteki statyczne C++ ncurses |
97c6246c | 295 | Group: Development/Libraries |
32786e39 | 296 | Requires: %{name}-c++-devel = %{version}-%{release} |
17ef06ef | 297 | |
ec2eb5ae | 298 | %description c++-static |
17ef06ef | 299 | This package includes the static libraries necessary to develop |
ec2eb5ae | 300 | applications that use C++ ncurses. |
17ef06ef | 301 | |
2af46c3d | 302 | %description c++-static -l pl.UTF-8 |
ec2eb5ae | 303 | Pakiet ten zawiera biblioteki statyczne C++ ncurses. |
17ef06ef | 304 | |
3768c26d AF |
305 | %package ada-devel |
306 | Summary: Header files for develop Ada95 ncurses based application | |
512ffe0d | 307 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Ada95 ncurses |
3768c26d | 308 | Group: Development/Libraries |
32786e39 | 309 | Requires: %{name}-devel = %{version}-%{release} |
0e7aa014 | 310 | %{?with_ada:%requires_eq gcc-ada} |
3768c26d AF |
311 | |
312 | %description ada-devel | |
313 | This package includes the header files and libraries necessary to | |
314 | develop applications that use Ada95 ncurses. | |
315 | ||
2af46c3d JR |
316 | %description ada-devel -l pl.UTF-8 |
317 | Ten pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do | |
318 | tworzenia aplikacji używających ncurses w języku Ada95. | |
7465015b | 319 | |
f0a3cad1 | 320 | %prep |
7465015b | 321 | %setup -q |
ef504cf9 | 322 | %patch0 -p1 |
78985a0e | 323 | %patch1 -p1 |
92d2c35f | 324 | %patch2 -p1 |
67ab943f AM |
325 | %patch3 -p1 |
326 | %patch4 -p1 | |
327 | %patch5 -p1 | |
328 | %patch6 -p1 | |
329 | %patch7 -p1 | |
330 | %patch8 -p1 | |
331 | %patch9 -p1 | |
332 | %patch10 -p1 | |
333 | %patch11 -p1 | |
334 | %patch12 -p1 | |
335 | %patch13 -p1 | |
336 | %patch14 -p1 | |
46e682ba | 337 | |
652b7e23 AM |
338 | %patch100 -p1 |
339 | %patch101 -p1 | |
740d1fbf | 340 | %patch102 -p1 |
652b7e23 AM |
341 | %patch103 -p1 |
342 | %patch104 -p1 | |
343 | %patch105 -p1 | |
344 | %patch106 -p1 | |
345 | %patch107 -p1 | |
f0a3cad1 | 346 | |
347 | %build | |
f16a01b0 | 348 | unset TERMINFO || : |
b0b405d4 | 349 | gcc_target=$(gcc -dumpmachine) |
350 | gcc_version=$(gcc -dumpversion) | |
2b82261e | 351 | CFLAGS="%{rpmcflags} -DPURE_TERMINFO -D_FILE_OFFSET_BITS=64" |
3f8bb7f1 | 352 | cp -f /usr/share/automake/config.sub . |
e39bc433 | 353 | |
e034c592 | 354 | %if "%{pld_release}" == "ti" |
355 | for t in narrowc widec; do | |
356 | %else | |
86745d8b | 357 | for t in narrowc wideclowcolor widec; do |
e034c592 | 358 | %endif |
0590ad17 JB |
359 | install -d obj-$t |
360 | cd obj-$t | |
740d1fbf | 361 | ../%configure \ |
34d400f8 | 362 | --with-install-prefix=$RPM_BUILD_ROOT \ |
363 | --with-normal \ | |
364 | --with-shared \ | |
3768c26d | 365 | --with%{!?with_ada:out}-ada \ |
af792b88 | 366 | --with%{!?with_cxx:out}-cxx \ |
367 | --with%{!?with_cxx:out}-cxx-binding \ | |
d8fc1baa | 368 | --with%{!?debug:out}-debug \ |
740d1fbf | 369 | --with%{!?with_gpm:out}-gpm \ |
34d400f8 | 370 | --without-profile \ |
f98533be | 371 | --with-termlib \ |
652b7e23 AM |
372 | --with-largefile \ |
373 | --disable-lp64 \ | |
374 | --with-chtype='long' \ | |
375 | --with-mmask-t='long' \ | |
86edd651 | 376 | --with-manpage-aliases \ |
ff180380 | 377 | --with-manpage-format=normal \ |
0590ad17 | 378 | --without-manpage-symlinks \ |
b0b405d4 | 379 | --with-ada-include=%{_libdir}/gcc/$gcc_target/$gcc_version/adainclude/ \ |
380 | --with-ada-objects=%{_libdir}/gcc/$gcc_target/$gcc_version/adalib/ \ | |
e034c592 | 381 | %if "%{pld_release}" == "ti" |
382 | `[ "$t" != "widec" ] && echo --with-termlib=tinfo` \ | |
383 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --includedir=%{_includedir}w` | |
384 | %else | |
86745d8b | 385 | `[ "$t" = "narrowc" ] && echo --with-termlib=tinfo` \ |
bfe1efd6 AM |
386 | `[ "$t" = "wideclowcolor" ] && echo --with-termlib=tinfow --enable-widec --disable-ext-colors --includedir=%{_includedir}wlc` \ |
387 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --enable-ext-colors --includedir=%{_includedir}w` | |
e034c592 | 388 | %endif |
46e682ba | 389 | |
9784f57c | 390 | %{__make} -j1 |
46e682ba | 391 | |
0590ad17 JB |
392 | cd .. |
393 | done | |
f0a3cad1 | 394 | |
395 | %install | |
697b1c3d | 396 | rm -rf $RPM_BUILD_ROOT |
b125fe8f | 397 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_mandir}} |
697b1c3d | 398 | |
e034c592 | 399 | %if "%{pld_release}" == "ti" |
400 | for t in widec narrowc; do | |
401 | %else | |
faa32778 | 402 | for t in narrowc widec; do |
e034c592 | 403 | %endif |
0590ad17 | 404 | %{__make} -C obj-$t install \ |
ff180380 | 405 | INSTALL_PREFIX=$RPM_BUILD_ROOT |
0590ad17 | 406 | done |
03a65fe5 | 407 | |
9144fb94 | 408 | ln -sf ../l/linux $RPM_BUILD_ROOT%{_datadir}/terminfo/c/console |
03a65fe5 | 409 | |
02913cb5 JB |
410 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.so.* $RPM_BUILD_ROOT/%{_lib} |
411 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib} | |
412 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfo.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libtinfo.so | |
413 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcurses.so | |
414 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libncurses.so | |
f028bbe4 | 415 | ln -sf libncursesw.a $RPM_BUILD_ROOT%{_libdir}/libcursesw.a |
416 | ln -sf libncursesw.so $RPM_BUILD_ROOT%{_libdir}/libcursesw.so | |
4dca32b3 | 417 | |
e034c592 | 418 | %if "%{pld_release}" != "ti" |
86745d8b | 419 | cp -a obj-wideclowcolor/lib/lib*w.so.5* $RPM_BUILD_ROOT%{_libdir} |
e034c592 | 420 | %endif |
e39bc433 | 421 | |
6311b3f9 | 422 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
34d400f8 | 423 | |
83df94a1 JB |
424 | %clean |
425 | rm -rf $RPM_BUILD_ROOT | |
34d400f8 | 426 | |
e0340545 | 427 | %post -p /sbin/ldconfig |
428 | %postun -p /sbin/ldconfig | |
f0a3cad1 | 429 | |
e0340545 | 430 | %post ext -p /sbin/ldconfig |
431 | %postun ext -p /sbin/ldconfig | |
f0a3cad1 | 432 | |
433 | %files | |
03a65fe5 | 434 | %defattr(644,root,root,755) |
ff180380 | 435 | %doc ANNOUNCE README |
740d1fbf JB |
436 | %attr(755,root,root) %{_bindir}/captoinfo |
437 | %attr(755,root,root) %{_bindir}/clear | |
438 | %attr(755,root,root) %{_bindir}/infocmp | |
439 | %attr(755,root,root) %{_bindir}/infotocap | |
440 | %attr(755,root,root) %{_bindir}/reset | |
02913cb5 | 441 | %attr(755,root,root) %{_bindir}/tabs |
740d1fbf JB |
442 | %attr(755,root,root) %{_bindir}/tic |
443 | %attr(755,root,root) %{_bindir}/toe | |
444 | %attr(755,root,root) %{_bindir}/tput | |
445 | %attr(755,root,root) %{_bindir}/tset | |
02913cb5 JB |
446 | %attr(755,root,root) /%{_lib}/libncurses.so.*.* |
447 | %attr(755,root,root) %ghost /%{_lib}/libncurses.so.5 | |
448 | %attr(755,root,root) /%{_lib}/libtinfo.so.*.* | |
449 | %attr(755,root,root) %ghost /%{_lib}/libtinfo.so.5 | |
450 | %attr(755,root,root) %{_libdir}/libncursesw.so.*.* | |
e39bc433 | 451 | %attr(755,root,root) %ghost %{_libdir}/libncursesw.so.5 |
e034c592 | 452 | %if "%{pld_release}" != "ti" |
67ab943f | 453 | %attr(755,root,root) %ghost %{_libdir}/libncursesw.so.6 |
e034c592 | 454 | %endif |
02913cb5 | 455 | %attr(755,root,root) %{_libdir}/libtinfow.so.*.* |
e39bc433 | 456 | %attr(755,root,root) %ghost %{_libdir}/libtinfow.so.5 |
e034c592 | 457 | %if "%{pld_release}" != "ti" |
67ab943f | 458 | %attr(755,root,root) %ghost %{_libdir}/libtinfow.so.6 |
e034c592 | 459 | %endif |
03a65fe5 | 460 | |
9144fb94 | 461 | %{_datadir}/tabset |
a58274aa | 462 | |
9144fb94 | 463 | %dir %{_datadir}/terminfo |
b4ea1dfd | 464 | %{_datadir}/terminfo/E |
cfa7950f | 465 | %dir %{_datadir}/terminfo/[dgklprsvx] |
a58274aa | 466 | |
5dd40f65 | 467 | %{_datadir}/terminfo/d/dumb |
cfa7950f | 468 | %{_datadir}/terminfo/g/gnome* |
c6a56298 | 469 | %{_datadir}/terminfo/k/klone+color |
1f69be4c | 470 | %{_datadir}/terminfo/k/konsole* |
9144fb94 | 471 | %{_datadir}/terminfo/l/linux* |
cfa7950f AM |
472 | %{_datadir}/terminfo/p/putty* |
473 | %{_datadir}/terminfo/r/rxvt* | |
b4ea1dfd | 474 | %{_datadir}/terminfo/s/screen* |
9144fb94 | 475 | %{_datadir}/terminfo/v/vt100 |
476 | %{_datadir}/terminfo/v/vt220 | |
477 | %{_datadir}/terminfo/v/vt220-8 | |
478 | %{_datadir}/terminfo/v/vt52 | |
479 | %{_datadir}/terminfo/x/xterm* | |
03a65fe5 | 480 | |
e31aaaa7 | 481 | %{_mandir}/man[157]/* |
6311b3f9 | 482 | %lang(fi) %{_mandir}/fi/man1/* |
483 | %lang(fr) %{_mandir}/fr/man1/* | |
484 | %lang(hu) %{_mandir}/hu/man1/* | |
485 | %lang(id) %{_mandir}/id/man1/* | |
486 | %lang(it) %{_mandir}/it/man1/* | |
487 | %lang(pl) %{_mandir}/pl/man[157]/* | |
03a65fe5 | 488 | |
03a65fe5 | 489 | %files -n terminfo |
490 | %defattr(644,root,root,755) | |
c6a56298 | 491 | %{_datadir}/terminfo/[1-9ALMNPQXa-ce-jm-rt-uwz] |
ff180380 | 492 | %{_datadir}/terminfo/[dklsvx]/* |
58e6c940 | 493 | %exclude %{_datadir}/terminfo/d/dumb |
cfa7950f | 494 | %exclude %{_datadir}/terminfo/g/gnome* |
c6a56298 | 495 | %exclude %{_datadir}/terminfo/k/klone+color |
14fb6b63 | 496 | %exclude %{_datadir}/terminfo/k/konsole* |
58e6c940 | 497 | %exclude %{_datadir}/terminfo/l/linux* |
cfa7950f AM |
498 | %exclude %{_datadir}/terminfo/p/putty* |
499 | %exclude %{_datadir}/terminfo/r/rxvt* | |
58e6c940 AF |
500 | %exclude %{_datadir}/terminfo/s/screen* |
501 | %exclude %{_datadir}/terminfo/v/vt100 | |
502 | %exclude %{_datadir}/terminfo/v/vt220 | |
503 | %exclude %{_datadir}/terminfo/v/vt220-8 | |
504 | %exclude %{_datadir}/terminfo/v/vt52 | |
505 | %exclude %{_datadir}/terminfo/x/xterm* | |
f0a3cad1 | 506 | |
507 | %files devel | |
03a65fe5 | 508 | %defattr(644,root,root,755) |
57666f05 | 509 | %doc doc/html/ncurses-intro.html |
740d1fbf | 510 | %attr(755,root,root) %{_bindir}/ncurses5-config |
e034c592 | 511 | %if "%{pld_release}" == "ti" |
512 | %attr(755,root,root) %{_bindir}/ncursesw5-config | |
513 | %else | |
67ab943f | 514 | %attr(755,root,root) %{_bindir}/ncursesw6-config |
e034c592 | 515 | %endif |
ff180380 JB |
516 | %attr(755,root,root) %{_libdir}/libcurses.so |
517 | %attr(755,root,root) %{_libdir}/libncurses.so | |
518 | %attr(755,root,root) %{_libdir}/libtinfo.so | |
0590ad17 JB |
519 | %attr(755,root,root) %{_libdir}/libcursesw.so |
520 | %attr(755,root,root) %{_libdir}/libncursesw.so | |
521 | %attr(755,root,root) %{_libdir}/libtinfow.so | |
00ed8ef1 | 522 | %dir %{_includedir} |
06c46e64 | 523 | %{_includedir}/curses.h |
524 | %{_includedir}/eti.h | |
abe0dae1 | 525 | %{_includedir}/nc_tparm.h |
06c46e64 | 526 | %{_includedir}/ncurses.h |
43c9b3d0 | 527 | %{_includedir}/ncurses_dll.h |
06c46e64 | 528 | %{_includedir}/term.h |
abe0dae1 | 529 | %{_includedir}/term_entry.h |
06c46e64 | 530 | %{_includedir}/termcap.h |
abe0dae1 | 531 | %{_includedir}/tic.h |
06c46e64 | 532 | %{_includedir}/unctrl.h |
0590ad17 JB |
533 | %dir %{_includedir}w |
534 | %{_includedir}w/curses.h | |
535 | %{_includedir}w/eti.h | |
abe0dae1 | 536 | %{_includedir}w/nc_tparm.h |
0590ad17 JB |
537 | %{_includedir}w/ncurses.h |
538 | %{_includedir}w/ncurses_dll.h | |
539 | %{_includedir}w/term.h | |
abe0dae1 | 540 | %{_includedir}w/term_entry.h |
0590ad17 | 541 | %{_includedir}w/termcap.h |
abe0dae1 | 542 | %{_includedir}w/tic.h |
0590ad17 | 543 | %{_includedir}w/unctrl.h |
e31aaaa7 | 544 | %{_mandir}/man3/* |
ff180380 JB |
545 | %exclude %{_mandir}/man3/form* |
546 | %exclude %{_mandir}/man3/menu* | |
547 | %exclude %{_mandir}/man3/panel* | |
6311b3f9 | 548 | %lang(pl) %{_mandir}/pl/man3/* |
f0a3cad1 | 549 | |
550 | %files static | |
56de83d6 | 551 | %defattr(644,root,root,755) |
0681fcad | 552 | %{_libdir}/libncurses.a |
f98533be | 553 | %{_libdir}/libtinfo.a |
0590ad17 JB |
554 | %{_libdir}/libncursesw.a |
555 | %{_libdir}/libtinfow.a | |
ff180380 JB |
556 | |
557 | %files ext | |
558 | %defattr(644,root,root,755) | |
e034c592 | 559 | %if "%{pld_release}" == "ti" |
560 | %attr(755,root,root) %{_libdir}/libform.so.* | |
561 | %attr(755,root,root) %{_libdir}/libmenu.so.* | |
562 | %attr(755,root,root) %{_libdir}/libpanel.so.* | |
563 | %attr(755,root,root) %{_libdir}/libformw.so.* | |
564 | %attr(755,root,root) %{_libdir}/libmenuw.so.* | |
565 | %attr(755,root,root) %{_libdir}/libpanelw.so.* | |
566 | %else | |
e39bc433 JR |
567 | %attr(755,root,root) %{_libdir}/libform.so.*.* |
568 | %attr(755,root,root) %ghost %{_libdir}/libform.so.[56] | |
569 | %attr(755,root,root) %{_libdir}/libmenu.so.*.* | |
570 | %attr(755,root,root) %ghost %{_libdir}/libmenu.so.[56] | |
571 | %attr(755,root,root) %{_libdir}/libpanel.so.*.* | |
572 | %attr(755,root,root) %ghost %{_libdir}/libpanel.so.[56] | |
573 | %attr(755,root,root) %{_libdir}/libformw.so.*.* | |
574 | %attr(755,root,root) %ghost %{_libdir}/libformw.so.[56] | |
575 | %attr(755,root,root) %{_libdir}/libmenuw.so.*.* | |
576 | %attr(755,root,root) %ghost %{_libdir}/libmenuw.so.[56] | |
577 | %attr(755,root,root) %{_libdir}/libpanelw.so.*.* | |
578 | %attr(755,root,root) %ghost %{_libdir}/libpanelw.so.[56] | |
e034c592 | 579 | %endif |
ff180380 JB |
580 | |
581 | %files ext-devel | |
582 | %defattr(644,root,root,755) | |
583 | %attr(755,root,root) %{_libdir}/libform.so | |
584 | %attr(755,root,root) %{_libdir}/libmenu.so | |
585 | %attr(755,root,root) %{_libdir}/libpanel.so | |
0590ad17 JB |
586 | %attr(755,root,root) %{_libdir}/libformw.so |
587 | %attr(755,root,root) %{_libdir}/libmenuw.so | |
588 | %attr(755,root,root) %{_libdir}/libpanelw.so | |
ff180380 JB |
589 | %{_includedir}/form.h |
590 | %{_includedir}/menu.h | |
591 | %{_includedir}/panel.h | |
0590ad17 JB |
592 | %{_includedir}w/form.h |
593 | %{_includedir}w/menu.h | |
594 | %{_includedir}w/panel.h | |
ff180380 JB |
595 | %{_mandir}/man3/form* |
596 | %{_mandir}/man3/menu* | |
597 | %{_mandir}/man3/panel* | |
598 | ||
599 | %files ext-static | |
600 | %defattr(644,root,root,755) | |
0681fcad | 601 | %{_libdir}/libform.a |
0681fcad | 602 | %{_libdir}/libmenu.a |
ff180380 | 603 | %{_libdir}/libpanel.a |
0590ad17 JB |
604 | %{_libdir}/libformw.a |
605 | %{_libdir}/libmenuw.a | |
606 | %{_libdir}/libpanelw.a | |
17ef06ef | 607 | |
af792b88 | 608 | %if %{with cxx} |
ec2eb5ae | 609 | %files c++-devel |
17ef06ef | 610 | %defattr(644,root,root,755) |
83df94a1 | 611 | %doc c++/{demo.cc,README-first,NEWS,PROBLEMS} |
06c46e64 | 612 | %{_includedir}/cursesapp.h |
613 | %{_includedir}/cursesf.h | |
614 | %{_includedir}/cursesm.h | |
615 | %{_includedir}/cursesp.h | |
616 | %{_includedir}/cursesw.h | |
617 | %{_includedir}/etip.h | |
618 | %{_includedir}/cursslk.h | |
0590ad17 JB |
619 | %{_includedir}w/cursesapp.h |
620 | %{_includedir}w/cursesf.h | |
621 | %{_includedir}w/cursesm.h | |
622 | %{_includedir}w/cursesp.h | |
623 | %{_includedir}w/cursesw.h | |
624 | %{_includedir}w/etip.h | |
625 | %{_includedir}w/cursslk.h | |
17ef06ef | 626 | |
ec2eb5ae | 627 | %files c++-static |
17ef06ef | 628 | %defattr(644,root,root,755) |
0681fcad | 629 | %{_libdir}/libncurses++.a |
0590ad17 | 630 | %{_libdir}/libncurses++w.a |
a52a33b5 | 631 | %endif |
3768c26d AF |
632 | |
633 | %if %{with ada} | |
634 | %files ada-devel | |
635 | %defattr(644,root,root,755) | |
636 | %doc Ada95/{README,TODO} | |
02913cb5 | 637 | %attr(755,root,root) %{_bindir}/adacurses-config |
67ab943f | 638 | %attr(755,root,root) %{_bindir}/adacursesw-config |
b0b405d4 | 639 | %{_libdir}/gcc/*/*/adainclude/* |
640 | %{_libdir}/gcc/*/*/adalib/* | |
3768c26d | 641 | %endif |