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