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