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