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