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