]>
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 |
1f69be4c | 19 | Release: 8 |
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} |
b0b405d4 | 306 | %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 . |
0590ad17 JB |
349 | for t in narrowc widec; do |
350 | install -d obj-$t | |
351 | cd obj-$t | |
740d1fbf | 352 | ../%configure \ |
34d400f8 | 353 | --with-install-prefix=$RPM_BUILD_ROOT \ |
354 | --with-normal \ | |
355 | --with-shared \ | |
3768c26d | 356 | --with%{!?with_ada:out}-ada \ |
af792b88 | 357 | --with%{!?with_cxx:out}-cxx \ |
358 | --with%{!?with_cxx:out}-cxx-binding \ | |
d8fc1baa | 359 | --with%{!?debug:out}-debug \ |
740d1fbf | 360 | --with%{!?with_gpm:out}-gpm \ |
34d400f8 | 361 | --without-profile \ |
f98533be | 362 | --with-termlib \ |
652b7e23 AM |
363 | --with-largefile \ |
364 | --disable-lp64 \ | |
365 | --with-chtype='long' \ | |
366 | --with-mmask-t='long' \ | |
86edd651 | 367 | --with-manpage-aliases \ |
ff180380 | 368 | --with-manpage-format=normal \ |
0590ad17 | 369 | --without-manpage-symlinks \ |
b0b405d4 | 370 | --with-ada-include=%{_libdir}/gcc/$gcc_target/$gcc_version/adainclude/ \ |
371 | --with-ada-objects=%{_libdir}/gcc/$gcc_target/$gcc_version/adalib/ \ | |
abe0dae1 | 372 | `[ "$t" != "widec" ] && echo --with-termlib=tinfo` \ |
67ab943f | 373 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --enable-ext-colors --includedir=%{_includedir}w` |
46e682ba AM |
374 | |
375 | %{__make} | |
376 | ||
0590ad17 JB |
377 | cd .. |
378 | done | |
f0a3cad1 | 379 | |
380 | %install | |
697b1c3d | 381 | rm -rf $RPM_BUILD_ROOT |
b125fe8f | 382 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_mandir}} |
697b1c3d | 383 | |
0590ad17 JB |
384 | for t in widec narrowc; do |
385 | %{__make} -C obj-$t install \ | |
ff180380 | 386 | INSTALL_PREFIX=$RPM_BUILD_ROOT |
0590ad17 | 387 | done |
03a65fe5 | 388 | |
9144fb94 | 389 | ln -sf ../l/linux $RPM_BUILD_ROOT%{_datadir}/terminfo/c/console |
03a65fe5 | 390 | |
02913cb5 JB |
391 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.so.* $RPM_BUILD_ROOT/%{_lib} |
392 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib} | |
393 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfo.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libtinfo.so | |
394 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcurses.so | |
395 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libncurses.so | |
f028bbe4 | 396 | ln -sf libncursesw.a $RPM_BUILD_ROOT%{_libdir}/libcursesw.a |
397 | ln -sf libncursesw.so $RPM_BUILD_ROOT%{_libdir}/libcursesw.so | |
4dca32b3 | 398 | |
6311b3f9 | 399 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
34d400f8 | 400 | |
83df94a1 JB |
401 | %clean |
402 | rm -rf $RPM_BUILD_ROOT | |
34d400f8 | 403 | |
e0340545 | 404 | %post -p /sbin/ldconfig |
405 | %postun -p /sbin/ldconfig | |
f0a3cad1 | 406 | |
e0340545 | 407 | %post ext -p /sbin/ldconfig |
408 | %postun ext -p /sbin/ldconfig | |
f0a3cad1 | 409 | |
410 | %files | |
03a65fe5 | 411 | %defattr(644,root,root,755) |
ff180380 | 412 | %doc ANNOUNCE README |
740d1fbf JB |
413 | %attr(755,root,root) %{_bindir}/captoinfo |
414 | %attr(755,root,root) %{_bindir}/clear | |
415 | %attr(755,root,root) %{_bindir}/infocmp | |
416 | %attr(755,root,root) %{_bindir}/infotocap | |
417 | %attr(755,root,root) %{_bindir}/reset | |
02913cb5 | 418 | %attr(755,root,root) %{_bindir}/tabs |
740d1fbf JB |
419 | %attr(755,root,root) %{_bindir}/tic |
420 | %attr(755,root,root) %{_bindir}/toe | |
421 | %attr(755,root,root) %{_bindir}/tput | |
422 | %attr(755,root,root) %{_bindir}/tset | |
02913cb5 JB |
423 | %attr(755,root,root) /%{_lib}/libncurses.so.*.* |
424 | %attr(755,root,root) %ghost /%{_lib}/libncurses.so.5 | |
425 | %attr(755,root,root) /%{_lib}/libtinfo.so.*.* | |
426 | %attr(755,root,root) %ghost /%{_lib}/libtinfo.so.5 | |
427 | %attr(755,root,root) %{_libdir}/libncursesw.so.*.* | |
67ab943f | 428 | %attr(755,root,root) %ghost %{_libdir}/libncursesw.so.6 |
02913cb5 | 429 | %attr(755,root,root) %{_libdir}/libtinfow.so.*.* |
67ab943f | 430 | %attr(755,root,root) %ghost %{_libdir}/libtinfow.so.6 |
03a65fe5 | 431 | |
9144fb94 | 432 | %{_datadir}/tabset |
a58274aa | 433 | |
9144fb94 | 434 | %dir %{_datadir}/terminfo |
b4ea1dfd | 435 | %{_datadir}/terminfo/E |
ff180380 | 436 | %dir %{_datadir}/terminfo/[dklsvx] |
a58274aa | 437 | |
5dd40f65 | 438 | %{_datadir}/terminfo/d/dumb |
c6a56298 | 439 | %{_datadir}/terminfo/k/klone+color |
1f69be4c | 440 | %{_datadir}/terminfo/k/konsole* |
9144fb94 | 441 | %{_datadir}/terminfo/l/linux* |
b4ea1dfd | 442 | %{_datadir}/terminfo/s/screen* |
9144fb94 | 443 | %{_datadir}/terminfo/v/vt100 |
444 | %{_datadir}/terminfo/v/vt220 | |
445 | %{_datadir}/terminfo/v/vt220-8 | |
446 | %{_datadir}/terminfo/v/vt52 | |
447 | %{_datadir}/terminfo/x/xterm* | |
03a65fe5 | 448 | |
e31aaaa7 | 449 | %{_mandir}/man[157]/* |
6311b3f9 | 450 | %lang(fi) %{_mandir}/fi/man1/* |
451 | %lang(fr) %{_mandir}/fr/man1/* | |
452 | %lang(hu) %{_mandir}/hu/man1/* | |
453 | %lang(id) %{_mandir}/id/man1/* | |
454 | %lang(it) %{_mandir}/it/man1/* | |
455 | %lang(pl) %{_mandir}/pl/man[157]/* | |
03a65fe5 | 456 | |
03a65fe5 | 457 | %files -n terminfo |
458 | %defattr(644,root,root,755) | |
c6a56298 | 459 | %{_datadir}/terminfo/[1-9ALMNPQXa-ce-jm-rt-uwz] |
ff180380 | 460 | %{_datadir}/terminfo/[dklsvx]/* |
58e6c940 | 461 | %exclude %{_datadir}/terminfo/d/dumb |
c6a56298 | 462 | %exclude %{_datadir}/terminfo/k/klone+color |
14fb6b63 | 463 | %exclude %{_datadir}/terminfo/k/konsole* |
58e6c940 AF |
464 | %exclude %{_datadir}/terminfo/l/linux* |
465 | %exclude %{_datadir}/terminfo/s/screen* | |
466 | %exclude %{_datadir}/terminfo/v/vt100 | |
467 | %exclude %{_datadir}/terminfo/v/vt220 | |
468 | %exclude %{_datadir}/terminfo/v/vt220-8 | |
469 | %exclude %{_datadir}/terminfo/v/vt52 | |
470 | %exclude %{_datadir}/terminfo/x/xterm* | |
f0a3cad1 | 471 | |
472 | %files devel | |
03a65fe5 | 473 | %defattr(644,root,root,755) |
57666f05 | 474 | %doc doc/html/ncurses-intro.html |
740d1fbf | 475 | %attr(755,root,root) %{_bindir}/ncurses5-config |
67ab943f | 476 | %attr(755,root,root) %{_bindir}/ncursesw6-config |
ff180380 JB |
477 | %attr(755,root,root) %{_libdir}/libcurses.so |
478 | %attr(755,root,root) %{_libdir}/libncurses.so | |
479 | %attr(755,root,root) %{_libdir}/libtinfo.so | |
0590ad17 JB |
480 | %attr(755,root,root) %{_libdir}/libcursesw.so |
481 | %attr(755,root,root) %{_libdir}/libncursesw.so | |
482 | %attr(755,root,root) %{_libdir}/libtinfow.so | |
00ed8ef1 | 483 | %dir %{_includedir} |
06c46e64 | 484 | %{_includedir}/curses.h |
485 | %{_includedir}/eti.h | |
abe0dae1 | 486 | %{_includedir}/nc_tparm.h |
06c46e64 | 487 | %{_includedir}/ncurses.h |
43c9b3d0 | 488 | %{_includedir}/ncurses_dll.h |
06c46e64 | 489 | %{_includedir}/term.h |
abe0dae1 | 490 | %{_includedir}/term_entry.h |
06c46e64 | 491 | %{_includedir}/termcap.h |
abe0dae1 | 492 | %{_includedir}/tic.h |
06c46e64 | 493 | %{_includedir}/unctrl.h |
0590ad17 JB |
494 | %dir %{_includedir}w |
495 | %{_includedir}w/curses.h | |
496 | %{_includedir}w/eti.h | |
abe0dae1 | 497 | %{_includedir}w/nc_tparm.h |
0590ad17 JB |
498 | %{_includedir}w/ncurses.h |
499 | %{_includedir}w/ncurses_dll.h | |
500 | %{_includedir}w/term.h | |
abe0dae1 | 501 | %{_includedir}w/term_entry.h |
0590ad17 | 502 | %{_includedir}w/termcap.h |
abe0dae1 | 503 | %{_includedir}w/tic.h |
0590ad17 | 504 | %{_includedir}w/unctrl.h |
e31aaaa7 | 505 | %{_mandir}/man3/* |
ff180380 JB |
506 | %exclude %{_mandir}/man3/form* |
507 | %exclude %{_mandir}/man3/menu* | |
508 | %exclude %{_mandir}/man3/panel* | |
6311b3f9 | 509 | %lang(pl) %{_mandir}/pl/man3/* |
f0a3cad1 | 510 | |
511 | %files static | |
56de83d6 | 512 | %defattr(644,root,root,755) |
0681fcad | 513 | %{_libdir}/libncurses.a |
f98533be | 514 | %{_libdir}/libtinfo.a |
0590ad17 JB |
515 | %{_libdir}/libncursesw.a |
516 | %{_libdir}/libtinfow.a | |
ff180380 JB |
517 | |
518 | %files ext | |
519 | %defattr(644,root,root,755) | |
7295bc7f MB |
520 | %attr(755,root,root) %{_libdir}/libform.so.* |
521 | %attr(755,root,root) %{_libdir}/libmenu.so.* | |
522 | %attr(755,root,root) %{_libdir}/libpanel.so.* | |
523 | %attr(755,root,root) %{_libdir}/libformw.so.* | |
524 | %attr(755,root,root) %{_libdir}/libmenuw.so.* | |
525 | %attr(755,root,root) %{_libdir}/libpanelw.so.* | |
ff180380 JB |
526 | |
527 | %files ext-devel | |
528 | %defattr(644,root,root,755) | |
529 | %attr(755,root,root) %{_libdir}/libform.so | |
530 | %attr(755,root,root) %{_libdir}/libmenu.so | |
531 | %attr(755,root,root) %{_libdir}/libpanel.so | |
0590ad17 JB |
532 | %attr(755,root,root) %{_libdir}/libformw.so |
533 | %attr(755,root,root) %{_libdir}/libmenuw.so | |
534 | %attr(755,root,root) %{_libdir}/libpanelw.so | |
ff180380 JB |
535 | %{_includedir}/form.h |
536 | %{_includedir}/menu.h | |
537 | %{_includedir}/panel.h | |
0590ad17 JB |
538 | %{_includedir}w/form.h |
539 | %{_includedir}w/menu.h | |
540 | %{_includedir}w/panel.h | |
ff180380 JB |
541 | %{_mandir}/man3/form* |
542 | %{_mandir}/man3/menu* | |
543 | %{_mandir}/man3/panel* | |
544 | ||
545 | %files ext-static | |
546 | %defattr(644,root,root,755) | |
0681fcad | 547 | %{_libdir}/libform.a |
0681fcad | 548 | %{_libdir}/libmenu.a |
ff180380 | 549 | %{_libdir}/libpanel.a |
0590ad17 JB |
550 | %{_libdir}/libformw.a |
551 | %{_libdir}/libmenuw.a | |
552 | %{_libdir}/libpanelw.a | |
17ef06ef | 553 | |
af792b88 | 554 | %if %{with cxx} |
ec2eb5ae | 555 | %files c++-devel |
17ef06ef | 556 | %defattr(644,root,root,755) |
83df94a1 | 557 | %doc c++/{demo.cc,README-first,NEWS,PROBLEMS} |
06c46e64 | 558 | %{_includedir}/cursesapp.h |
559 | %{_includedir}/cursesf.h | |
560 | %{_includedir}/cursesm.h | |
561 | %{_includedir}/cursesp.h | |
562 | %{_includedir}/cursesw.h | |
563 | %{_includedir}/etip.h | |
564 | %{_includedir}/cursslk.h | |
0590ad17 JB |
565 | %{_includedir}w/cursesapp.h |
566 | %{_includedir}w/cursesf.h | |
567 | %{_includedir}w/cursesm.h | |
568 | %{_includedir}w/cursesp.h | |
569 | %{_includedir}w/cursesw.h | |
570 | %{_includedir}w/etip.h | |
571 | %{_includedir}w/cursslk.h | |
17ef06ef | 572 | |
ec2eb5ae | 573 | %files c++-static |
17ef06ef | 574 | %defattr(644,root,root,755) |
0681fcad | 575 | %{_libdir}/libncurses++.a |
0590ad17 | 576 | %{_libdir}/libncurses++w.a |
a52a33b5 | 577 | %endif |
3768c26d AF |
578 | |
579 | %if %{with ada} | |
580 | %files ada-devel | |
581 | %defattr(644,root,root,755) | |
582 | %doc Ada95/{README,TODO} | |
02913cb5 | 583 | %attr(755,root,root) %{_bindir}/adacurses-config |
67ab943f | 584 | %attr(755,root,root) %{_bindir}/adacursesw-config |
b0b405d4 | 585 | %{_libdir}/gcc/*/*/adainclude/* |
586 | %{_libdir}/gcc/*/*/adalib/* | |
3768c26d | 587 | %endif |