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