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